Minor enhancement, ARMCMx, GCC port: custom _unhandled_exception handler

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
dismirlian
Posts: 65
Joined: Fri Dec 20, 2013 3:59 pm
Has thanked: 1 time
Been thanked: 16 times

Minor enhancement, ARMCMx, GCC port: custom _unhandled_exception handler

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post by Giovanni »

Hi,

This change has already been committed on trunk last week.

Giovanni
dismirlian
Posts: 65
Joined: Fri Dec 20, 2013 3:59 pm
Has thanked: 1 time
Been thanked: 16 times

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

Post by dismirlian »

Hi Giovanni,

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

Thanks!
Diego
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post 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
Post Reply