2022-06-08 04:31 AM
Hello There,
I'm working on IAP app and need to relocate vector table and came across NVIC_SetVectorTable().
But I'm not able to find this API. I'm using CubeIDE and did generate the initial code with inbuilt cube mx.
Any help is appreciated.
Regards,
Keshav Aggarwal
2022-06-08 04:46 AM
It's called NVIC_SetVector and it's defined in CMSIS core.
2022-06-10 04:34 AM
Thanks for replying.
I got the alternate, used VECT_TAB_OFFSET in system_stm32f4xx.c
2022-06-10 04:44 AM
Could also use the symbol for the table address, and let the linker fix that based on the linker script established base address for the image.
2022-06-17 05:44 AM
Thanks for replying,
There is a change. I'm using dual bank configuration and active bank will be different after each update.
So, need to change vector table address dynamically. I'm thinking to changing it from main(). or what do you suggest?