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, utzig, tfAteba, barthess

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

Minor enhancement, ARMCMx, GCC port: custom _unhandled_exception handler

Postby dismirlian » 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:

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

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

Postby Giovanni » Fri Jun 02, 2017 3:38 pm

Hi,

This change has already been committed on trunk last week.

Giovanni

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

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

Postby dismirlian » Fri Jun 02, 2017 6:42 pm

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

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

Postby Giovanni » Fri Jun 02, 2017 6:57 pm

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


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 16 guests