diff --git a/cores/arduino/cortex_handlers.c b/cores/arduino/cortex_handlers.c index 7ffd2107d..953d1a6e1 100644 --- a/cores/arduino/cortex_handlers.c +++ b/cores/arduino/cortex_handlers.c @@ -196,6 +196,7 @@ extern uint32_t __bss_end__; extern uint32_t __StackTop; /* Exception Table */ +__attribute__ ((used)) __attribute__ ((section(".isr_vector"))) const DeviceVectors exception_table = { /* Configure Initial Stack Pointer, using linker-generated symbols */ @@ -407,6 +408,7 @@ extern uint32_t __bss_end__; extern uint32_t __StackTop; /* Exception Table */ +__attribute__ ((used)) __attribute__ ((section(".isr_vector"))) const DeviceVectors exception_table = { /* Configure Initial Stack Pointer, using linker-generated symbols */