Enthernet Code
Enthernet Code
DIIDevHeads IoT Integration Server
Created by Boss lady on 5/26/2024 in #code-review
Resolving FreeRTOS Application Crashes with S/O Checking, Watchdogs, etc.
To investigate and resolve unexpected system failures in your FreeRTOS application, you can Enable Stack Overflow Checking by using the FreeRTOS provided mechanisms to check for stack overflows. You need to define the hook function vApplicationStackOverflowHook in your code. This function will be called if a stack overflow is detected. Also, ensure stack overflow checking is enabled in FreeRTOSConfig.h, Use Watchdog Timers, Analyze Core Dumps you can use tools like Segger J-Link to capture a snapshot of the system's state during a fault. To facilitate core dumps, you can use the HardFault_Handler to capture relevant information Use Trace Tools like FreeRTOS+Trace or Percepio Tracealyzer to trace task execution and find out where and why the system is failing. These tools provide detailed insights into task execution, timings, and system behavior.
6 replies