Skip to content

Commit ef130a8

Browse files
authored
Made default Stack Overflow hook fail if configASSERT is defined
I beleive that the default implementation should fail if the user defines configASSERT. I believe this is a reasonable addition, given the fact configCHECK_FOR_STACK_OVERFLOW is already enabled by default. I hope it could save someone a lot of headache - as it happened to me when I overlooked my stack overflowing.
1 parent 03eba7d commit ef130a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMSIS/RTOS2/FreeRTOS/Source/cmsis_os2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,6 +2351,7 @@ __WEAK void vApplicationDaemonTaskStartupHook (void){}
23512351
__WEAK void vApplicationStackOverflowHook (TaskHandle_t xTask, signed char *pcTaskName) {
23522352
(void)xTask;
23532353
(void)pcTaskName;
2354+
configASSERT(0);
23542355
}
23552356
#endif
23562357

0 commit comments

Comments
 (0)