afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

RTOS stack overflow check #67

Closed stenbergd closed 9 years ago

stenbergd commented 9 years ago

Implement functionality to handle RTOS/task stack overflow

configCHECK_FOR_STACK_OVERFLOW configUSE_MALLOC_FAILED_HOOK

Implement hook functions

Output info

adam-at-epsilon commented 9 years ago

This should be supported in utils/freeRTOS_hooks.c already.

configCHECK_FOR_STACK_OVERFLOW is set in FreeRTOSConfig.h but it hasn't been tested yet.

adam-at-epsilon commented 9 years ago

Programming an infinite recursion inside a thread triggers the stack overflow hook function.

Programming an infinite recursion inside the 'main' function before the scheduler starts does not trigger the overflow hook function.

stenbergd commented 9 years ago

Done.