suikan4github / murasaki

STM32 HAL class library
MIT License
18 stars 3 forks source link

Print the context information on the hard fault. #42

Closed suikan4github closed 5 years ago

suikan4github commented 5 years ago

Is your feature request related to a problem? Please describe. The hard fault is a serious problem but difficult to investigate.

Describe the solution you'd like Print out the return address of the fault, and print out the fault-related register. Note that need to confirm the stack mode. https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/

Describe alternatives you've considered

Additional context

suikan4github commented 5 years ago

Merged to develop. Ready to release.