VL53L5CX-SATEL and Rpi Linux Driver Build failure?
Hi, I am trying to build the user mode linux driver on my raspberry pi 4 for the VL53L5CX module, and when I follow the instructions in the guide for RPI, I cd into user/test and make, I get the following error:
../uld-driver/src/vl53l5cx_api.c: In function ‘_vl53l5cx_send_offset_data’:
../uld-driver/src/vl53l5cx_api.c:163:8: error: ‘memcpy’ accessing 484 bytes at offsets 1288 and 1296 overlaps 476 bytes at offset 1296 [-Werror=restrict]
(void)memcpy(p_dev->temp_buffer, &(p_dev->temp_buffer[8]),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VL53L5CX_OFFSET_BUFFER_SIZE - (uint16_t)4);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:29: all] Error 1I'm not sure why this is failing, I haven't modified the code in any way.
