arm: print an error when a HardFault occurs

This is very useful for debugging. It differentiates between a stack
overflow and other errors (because it's easy to see when a stack
overflow occurs) and prints the old stack pointer and program counter if
available.
This commit is contained in:
Ayke van Laethem
2019-05-19 19:05:29 +02:00
committed by Ron Evans
parent 7b6ef65fe7
commit ba85c82fbb
3 changed files with 74 additions and 0 deletions
+3
View File
@@ -19,5 +19,8 @@
"ldflags": [
"--gc-sections"
],
"extra-files": [
"src/device/arm/cortexm.s"
],
"gdb": "arm-none-eabi-gdb"
}