CORTEX_NUM_VECTORS not defined early enough Topic is solved
CORTEX_NUM_VECTORS not defined early enough Topic is solved
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.
- 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
Hi,
It was limited to the L4, changed the order in chparams.h, it should be fine now.
Fixed as bug #935.
Giovanni
It was limited to the L4, changed the order in chparams.h, it should be fine now.
Fixed as bug #935.
Giovanni
Who is online
Users browsing this forum: No registered users and 61 guests