XMC7000 FreeRTOS vTaskDelay in Debug Mode (

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Andreas_Heder
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

I have timing problems while debugging an FreeRTOS Example using VS-Code.

 

In Debug Mode the vTaskDelay function return about x10 times slower then expected.

The Problem occures:

in VS-Code while debugging with: System Idle Power Mode "System Deep Sleep"

Andreas_Heder_0-1675776405001.png

 

I have tested:

MTB --> both power modes --> no problems

VS-Code--> "Active" --> no problems

VS-Code--> "System Deep Sleep" --> Task Delay functions around 10x slower...

 

BR

Andreas

0 Likes
1 Solution
onour
Employee
Employee
10 replies posted 25 sign-ins 5 solutions authored

Hello,

After seeing with a collegue..
Can you try to change the macro "#define configUSE_TICKLESS_IDLE      2"  to 0 , you can find it in the file "FreeRTOSConfig.h" line 208. 
There is some issue with this maco, normally it should resolve your problem.

Best regards.

View solution in original post

5 Replies
Bhamy
Moderator
Moderator
Moderator
100 replies posted 10 likes given 10 likes received

Hi @Andreas_Heder ,

I am able to reproduce this issue with VS-Code debugging. It looks like there are some difference in the OpenOCD command line. I will check and get back to you.

Best regards,

Bhamy Narasimha Shenoy

0 Likes
onour
Employee
Employee
10 replies posted 25 sign-ins 5 solutions authored

Hello,

After seeing with a collegue..
Can you try to change the macro "#define configUSE_TICKLESS_IDLE      2"  to 0 , you can find it in the file "FreeRTOSConfig.h" line 208. 
There is some issue with this maco, normally it should resolve your problem.

Best regards.

Hey,

thats work! Thank you.

BR 

Andreas

0 Likes
Bhamy
Moderator
Moderator
Moderator
100 replies posted 10 likes given 10 likes received

Hi @Andreas_Heder,

Did you get chance to try the solution mentioned in the previous response?

Best regards,

Bhamy Narasimha Shenoy

0 Likes
Andreas_Heder
Level 3
Level 3
50 sign-ins 10 questions asked 10 replies posted

Hi @Bhamy ,

i will test it as soon as i can. I will come back to you with the result.

 

Many thanks

0 Likes