cancel
Showing results for 
Search instead for 
Did you mean: 

NVIC_SetVectorTable() API not available in HAL

KAgga.1
Associate III

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

4 REPLIES 4
gbm
Lead III

It's called NVIC_SetVector and it's defined in CMSIS core.

KAgga.1
Associate III

Thanks for replying.

I got the alternate, used VECT_TAB_OFFSET in system_stm32f4xx.c

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
KAgga.1
Associate III

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?