VL53L8 API not working
Hello, i've recently made a board including a VL53L8 Time of flight sensor connected to an STM32G071 over SPI.
I'm using the VL53LMZ api to connect to it and after modifying the platform.c file i've managed to talk to the sensor (vl53lmz_is_alive() sets the IsAlive flag to 1).
But all the other functions fail after that, i've managed to track down the problem using the debugger to the line 5 below:
/* Enable FW access */
if (p_dev->revision_id == (uint8_t)REVISION_L8) {
status |= WrByte(&(p_dev->platform), 0x7fff, 0x01);
status |= WrByte(&(p_dev->platform), 0x06, 0x01);
status |= _vl53lmz_poll_for_answer(p_dev, 1, 0, 0x21, 0xFF, 0x4);
} else {
within vl53lmz_init().
It looks like the L8's register that is being monitored by this function is set to 0 and never changes.
I have verified the transmitted data using an oscilloscope and it is sending / receiving the correct data.
Since there is very little information provided by ST other than "use the API" i can't figure out what register/data should be modified to fix the problem.
Thank you for your help.
