cancel
Showing results for 
Search instead for 
Did you mean: 

How to Use VL53L0X API With STM32H747I-DISCO (I2C3) – Functions Not Executing Inside FreeRTOS Task

rabbani_sk
Associate II

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 

0 REPLIES 0