Page 1 of 1

Minor enhancement, ARMCMx, GCC port: custom _unhandled_exception handler

Posted: Fri Jun 02, 2017 2:59 pm
by dismirlian
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:

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.

Re: Minor enhancement, ARMCMx, GCC port: custom _unhandled_exception handler

Posted: Fri Jun 02, 2017 3:38 pm
by Giovanni
Hi,

This change has already been committed on trunk last week.

Giovanni

Re: Minor enhancement, ARMCMx, GCC port: custom _unhandled_exception handler

Posted: Fri Jun 02, 2017 6:42 pm
by dismirlian
Hi Giovanni,

I hadn't seen the trunk; I have 16.1.8, and I thought it was new enough.

Thanks!
Diego

Re: Minor enhancement, ARMCMx, GCC port: custom _unhandled_exception handler

Posted: Fri Jun 02, 2017 6:57 pm
by Giovanni
Hi,

16.8.x is the current "stable" branch, it is maintained for bug fixes only, all new features go in trunk and will be released as 17.6.0.

Giovanni