2025-11-30 11:07 PM - last edited on 2025-11-30 11:39 PM by Peter BENSCH
Hello community,
I am working with the VL53L0X Time-of-Flight distance sensor and the official ST API driver (VL53L0X API package).
My hardware platform is:
STM32H747I-DISCO board (CM7 core)
I2C3 used to interface the VL53L0X
FreeRTOS running on CM7
Display controlled using TouchGFX
I copied the VL53L0X API (platform.c, platform.h, vl53l0x_api., vl53l0x_platform. etc.) into my STM32 project.
Issue:
When I call any API functions Inside a FreeRTOS task, the code does not proceed beyond the first API call.
The task appears to get stuck, and my LCD (TouchGFX) stops updating as well.
When I comment out these VL53L0X API functions, FreeRTOS and the LCD work normally.
FYI I have attached Latest API