May 2020
Intermediate to advanced
496 pages
13h 54m
English
vApplicationStackOverflowHook provides a very simple way of eliminating most of the oddball behavior and halting the application. When enabling configCHECK_FOR_STACK_OVERFLOW #define in FreeRTOSConfig.h, any time a stack overflow is detected by FreeRTOS, vApplicationStackOverflowHook will be called.
There are two potential values for configCHECK_FOR_STACK_OVERFLOW:
The first method checks the task stack pointer as the task exits the running state. If the stack pointer is pointing to an invalid location ...