Skip to main content
RBack.1
Associate III
February 23, 2023
Question

Using MX to locate IVT in RAM

  • February 23, 2023
  • 1 reply
  • 3179 views

I am using the STM32F746VET6 which was setup with STM32CubeMX project. In the code it creates I see there's a STM32F746VETX_RAM.ld linker file and a #define VECT_TAB_SRAM to locate the IVT in RAM, but I don't see in MX where I specify that I want the autogenerated code to behave that way. Am I just missing something?

The reason I want the IVT in RAM is that I want to reconfigure which ISR is used for a timer depending upon a setting set through the SPI port. Doing this by overwriting an IVT in Flash would be a problem for my bootloader which has a CRC over the entire Flash range.

This topic has been closed for replies.

1 reply

Pavel A.
Super User
February 24, 2023

AFAIK CubeMX does not have option to place the vectors in RAM. Add the code (and link script stuff) for this manually.

RBack.1
RBack.1Author
Associate III
February 24, 2023

Thanks for this. I guess I'll stop looking and hopefully my changes don't get overwritten if I ever generate code from the MX project again.