2024-01-05 10:32 PM
Hi, I ran into a weird issue initializing a VL53L8CX over SPI where the firmware was seemingly failing to load correctly (the firmware checksum was wrong, and trying to read back some of the firmware from the sensor showed that it didn't match the data that was written). I found that I could get it to work if I increased the SPI frequency from 0.5 MHz to 2 MHz, and the threshold between working and not working seemed to be at around 1.1 MHz.
After experimenting a little more, I observed that it didn't seem to be the SPI frequency itself that matters, but rather the time that it takes to download the firmware - for example, it will fail if I add a 300 ms delay in
2024-01-07 08:24 PM
Hi kwc,
I did a same test and confirmed your finding, If I add delay, the sensor initiation will fail(time out). I will check this point with our R&D team.
For your case, I suggest you go ahead for your project, config your SPI speed to avoid such failure.
/* Download FW into VL53L8CX */
HAL_Delay(400);
status |= WrByte(&(p_dev->platform), 0x7fff, 0x09);
status |= WrMulti(&(p_dev->platform),0,
Br
Zhiyuan.Han
2024-01-29 06:44 PM - edited 2024-01-29 06:46 PM
Hi, do you have an update on whether there is a solution or workaround to allow a slower SPI frequency to work?
2024-05-07 07:44 AM
Please check the latest version o the package.
It may solve your issue.