CORTEX_NUM_VECTORS not defined early enough Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

CORTEX_NUM_VECTORS not defined early enough  Topic is solved

Postby faisal » Fri Apr 13, 2018 2:09 am

In cmparams.h, CORTEX_NUM_VECTORS needs to have the processor model defined so that it can correctly set the number of vectors (I'm looking at STM32L4xx) . However, the processor model is typically in board.h, which is included later on in the file. Thus, the number of vectors always defaults to 88 instead of 96 (I'm using the STM32L496xx, which should be 96). I ran across this problem when trying to use CAN2. The interrupt vector entry for CAN2 is towards the very end of the vector table, and are not initialized since the table prematurely stops at 88 entries.

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: CORTEX_NUM_VECTORS not defined early enough

Postby Giovanni » Fri Apr 13, 2018 9:44 am

Hi,

It was limited to the L4, changed the order in chparams.h, it should be fine now.

Fixed as bug #935.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 61 guests