From ba85c82fbb6b9bc3e6ed0395fde0d303e57cd1e9 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 19 May 2019 19:05:29 +0200 Subject: 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. --- targets/cortex-m.json | 3 +++ 1 file changed, 3 insertions(+) (limited to 'targets/cortex-m.json') 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" } -- cgit v1.2.3