aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-05-19 19:05:29 +0200
committerRon Evans <[email protected]>2019-05-20 11:39:17 +0200
commitba85c82fbb6b9bc3e6ed0395fde0d303e57cd1e9 (patch)
treebc8628132f31d39da88d1b6ecb2cf8eae936f8f8 /targets
parent7b6ef65fe7b927594e4f62cb7a7334137f4c2d9e (diff)
downloadtinygo-ba85c82fbb6b9bc3e6ed0395fde0d303e57cd1e9.tar.gz
tinygo-ba85c82fbb6b9bc3e6ed0395fde0d303e57cd1e9.zip
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.
Diffstat (limited to 'targets')
-rw-r--r--targets/cortex-m.json3
1 files changed, 3 insertions, 0 deletions
diff --git a/targets/cortex-m.json b/targets/cortex-m.json
index e9db29788..a8e8f612a 100644
--- a/targets/cortex-m.json
+++ b/targets/cortex-m.json
@@ -19,5 +19,8 @@
"ldflags": [
"--gc-sections"
],
+ "extra-files": [
+ "src/device/arm/cortexm.s"
+ ],
"gdb": "arm-none-eabi-gdb"
}