Associate II
December 1, 2025
Solved
How to Use VL53L0X API With STM32H747I-DISCO (I2C3) – Functions Not Executing Inside FreeRTOS Task
- December 1, 2025
- 1 reply
- 456 views
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
