Vector Table Mapping
Posted: Fri May 30, 2014 11:44 pm
I see that the STM32F4 port supports remapping the NVIC vector table by re-defining CORTEX_VTOR_INIT, located in ARMCMx/STM32F4xx/cmparams.h. However, I would like to re-define this variable on a per-project basis. Due to the order of inclusion, re-defining it in chconf.h or with a compiler -D directive will not override the definition of this macro. Can the definition in cmparams.h be changed to a default definition? Ie,
This way, it can be re-defined in chconf.h.
Code: Select all
#ifndef CORTEX_VTOR_INIT
#define CORTEX_VTOR_INIT 0x00000000
#endifThis way, it can be re-defined in chconf.h.