Minor enhancement, ARMCMx, GCC port: custom _unhandled_exception handler
Posted: Fri Jun 02, 2017 2:59 pm
Hi,
I want to override the _unhandled_exception handler, by defining this handler in my own code. For this to work, the ChibiOS vectors.c file should be modified to apply the "weak" attribute to the _unhandled_exception function:
I think this could be applied to the ChibiOS mainline. Or maybe there is another way for me to do this, without modifying vectors.c?
Thanks!!
Diego.
I want to override the _unhandled_exception handler, by defining this handler in my own code. For this to work, the ChibiOS vectors.c file should be modified to apply the "weak" attribute to the _unhandled_exception function:
Code: Select all
void _unhandled_exception(void) __attribute__((weak));
I think this could be applied to the ChibiOS mainline. Or maybe there is another way for me to do this, without modifying vectors.c?
Thanks!!
Diego.