cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS configCHECK_FOR_STACK_OVERFLOW set to 1 but vApplicationStackOverflowHook greyed out

DiBosco
Senior II

Folks,

I have FreeRTOS running on an H563, trust zone not used. Created the basic setup from an ioc. I have an ocassional task starvation issue and want to double check there's no stack overflow (unlikely but must check).
If I set configCHECK_FOR_STACK_OVERFLOW to 1  in FreeRTOS.h

In cmsis_os2.c, vApplicationStackOverflowHook is still greyed out and hovering over configCHECK_FOR_STACK_OVERFLOW claims it's set to 0. control clicking on it takes me to the defintion where it is set to 1. 

Anyone know what is going on here please? And why is it set in FreeRTOS.h, not FreeRTOSConfig.h? 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

In STM32CubeIDE: Project->C/C++ Index->rebuild

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

View solution in original post

5 REPLIES 5

Did you build? Have you tried rebuilding the index?

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

Yep, naturally I built it. I don't know what you mean by rebuilding the index though, sorry. 

In STM32CubeIDE: Project->C/C++ Index->rebuild

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

That has done it, many thanks. 


@DiBosco wrote:

That has done it, many thanks. 


Great to hear. Please mark the reply containing the solution as solution (drop down menu on top right of post) so others know this problem is solved. Thanks in advance.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.