VL53L8CX : firmware loading over SPI fails with timeout
Hello,
I'm currently using VL53L8CX with an STM32U535 on a custom PCB.
I'm using X-CUBE-TOF1 package.
I'm able to identify the sensor with SPI at 2MHz using vl53l8cx_is_alive function.
I was able to successfully init and use VL53L8 on U-585I-IOT02A dev board with the same code.
there is my function to send data throught SPI :

And to receive data :

The problem is in function vl53l8cx_init.
There is timeout in various function depending on SPI frequency and apb frequency
timeout can come from this line (325) or from _vl53l8cx_poll_for_mcu_boot function.

Often timeout appear at the third occurrence of _vl53l8cx_poll_for_mcu_boot function.
I'm clearly lost in the search for the causes of this problem. I tried to increase or decrease the SPI frequency but this only change the line where the timeout occurs.
I remain available for any further information.
Thx for every kind of help !
