Question
STM32 weak exception handler override in ASM not working (ARM-EABI-GCC)
Hello,
I think I tried almost everything. I couldn't find an easy portable way of overriding weak exception handlers when I write my handlers in ASM.
If I declare and export function in ASM it is simply ignored and weak one is used. Two ways I found of fixing it are:
- remove weak function declaration in startup_stm32l496xx.s
- add the following code in C:
extern void SVC_Handler(void);
void(*SVC_Handler_fp)(void) = &SVC_Handler;