IngmarEckhardt / IngmarEckhardt/dwarfOS
print callstack before reset of mcu?
- Dominant language
- C
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Description:
Under specific conditions, the MCU may crash, such as when the stack grows into the used heap, causing the getMemory function to return negative values. This can lead to undefined behavior, such as incorrect jump addresses for pointers that are outside the RAM, causing the device to crash and reset. Assuming we have our stdout connected with the UART helper and are monitoring the serial output, the question arises: Can we implement an MCU state observer that prints error information and a call stack to stderr (which is also stdout in the standard setup)?
User Story:
As a developer, I need to investigate the possibility of implementing an MCU state observer that can print error information and a call stack to stderr, so that I can better understand and troubleshoot instances where the MCU crashes.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.