Skip to main content
Associate III
Oct 9, 2025 1:13 PM UTC
Solved

Breakpoints in FreeRTOS are getting hit very weirdly!

vishnu_illikkal_0-1760014851384.png

vishnu_illikkal_2-1760014957943.png

 

vishnu_illikkal_1-1760014882857.png

Weird things are happening.

The breakpoint  i set in the void Read_ToF_From_VL53L0X_FreeRTOS_Task(void *pvParameters) task is not getting hit
this task calls VL53L0X_Measure_Distance function in which i set a breakpoint which is working ok !

vishnu_illikkal_3-1760015211774.png

 

also i put another breakpoint in the file VL53L0X_FreeRTOS_Queues.c which is called upon initialization
this is also not getting hit

is it a problem with teh specific folder?

vishnu_illikkal_4-1760015290938.png


but the VL53L0X_Core_Functions.c also on the same main dir

does the FreeRTOS dir have any problems?

Has anyone experienced this problem?

@Andrew Neil 

@mƎALLEm 
@TDK 

This topic has been closed for replies.
vishnu_illikkalBest answer
Associate III
Oct 10, 2025 3:58 AM UTC

Today I tried the same code in a new project! and the breakpoint worked correctly.

So i guess some weird configuration error happened in the old project.

Note that i haven't manually changed any config in my knowledge.

If there were any shortcut keys i don't know about then and also if I accidently pressed some.

5 replies

Associate III
Oct 9, 2025 1:15 PM UTC

Note:

The tasks which are not getting hit by the breakpoint are working properly i am getting its outputs.

 

TDK
Oct 9, 2025 1:20 PM UTC

What device? The number of hardware breakpoints is limited. If you try to set too many, you should get a message about it.

Consider clearing all breakpoints, verifying that none are set in the Breakpoints tab, then setting the one you want to see if it will work.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate III
Oct 9, 2025 1:22 PM UTC

STM32H750VBT6
i also tried to set only the breakpoints in the task Read_ToF_From_VL53L0X_FreeRTOS_Task  still not working

 

vishnu_illikkal_0-1760016534725.png

 

Associate III
Oct 9, 2025 1:37 PM UTC

I have a second board also, i tried the same code on that also. which is also showing the same problem.

vishnu_illikkalAuthorBest answer
Associate III
Oct 10, 2025 3:58 AM UTC

Today I tried the same code in a new project! and the breakpoint worked correctly.

So i guess some weird configuration error happened in the old project.

Note that i haven't manually changed any config in my knowledge.

If there were any shortcut keys i don't know about then and also if I accidently pressed some.