Skip to main content
DiBosco
Senior
February 24, 2026
Solved

FreeRTOS configCHECK_FOR_STACK_OVERFLOW set to 1 but vApplicationStackOverflowHook greyed out

  • February 24, 2026
  • 1 reply
  • 307 views

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

Best answer by unsigned_char_array

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

1 reply

Lead II
February 24, 2026

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."
DiBosco
DiBoscoAuthor
Senior
February 24, 2026

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

Lead II
February 24, 2026

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."