Skip to main content
KAgga.1
Associate III
June 8, 2022
Question

NVIC_SetVectorTable() API not available in HAL

  • June 8, 2022
  • 4 replies
  • 2254 views

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

This topic has been closed for replies.

4 replies

gbm
Super User
June 8, 2022

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

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
KAgga.1
KAgga.1Author
Associate III
June 10, 2022

Thanks for replying.

I got the alternate, used VECT_TAB_OFFSET in system_stm32f4xx.c

Tesla DeLorean
Guru
June 10, 2022

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
KAgga.1
KAgga.1Author
Associate III
June 17, 2022

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?