2021-05-01 09:42 AM
I'm trying to use the new example available on st.com for VL53L3CX_SimpleRanging (available inside X-CUBE-TOF1) is an example application shows how to make ranging with a satellite board (VL53L3CX-SATEL green) connected directly to STM32F401RE without the X-NUCLEO-53LA3 expansion board.
I'm using the attached connections to STM32F401RE ,Using either VL53L3CX_SimpleRanging.bin or to import the project into STM32CUBE I recieve the same error ("CUSTOM_RANGING_SENSOR_Init failed
")
By tracing the error ,I found it comes from the following function:
static void MX_VL53L3CX_SimpleRanging_Init(void)
{
/* Initialize Virtual COM Port */
BSP_COM_Init(COM1);
printf("VL53L3CX Simple Ranging demo application\n");
status = CUSTOM_RANGING_SENSOR_Init(CUSTOM_VL53L3CX);
if (status)
{
printf("CUSTOM_RANGING_SENSOR_Init failed\n");
while(1);
}
}
Please help!
Solved! Go to Solution.
2023-05-23 04:55 AM
I had the same error, it turned out that the power supplied from the MCU is too low to power the sensor. Use external power supply and connect it to the satellite.
2021-08-24 01:08 PM
That call simply drops and lifts the XSDN line. and the only thing that can keep the sensor from responding is lack of power or the XSDN line being low.
My guess is PA1 is not configured correctly.
2023-05-23 04:55 AM
I had the same error, it turned out that the power supplied from the MCU is too low to power the sensor. Use external power supply and connect it to the satellite.