cancel
Showing results for 
Search instead for 
Did you mean: 

stm32F101 memory remap with HAL

Rami Rosenbaum (old)
Associate II
Posted on March 15, 2017 at 10:14

Hi,

I'm working on a stm32F101CBT6 and need to support SW update - a proprietary bootloader will run at startup, and will quickly jump to the application.

I've done it before, on other stm32 chips, but with the StdPeriph_Lib.

I'm now working with the CubeMX HAL, and presume I should be using __HAL_SYSCFG_REMAPMEMORY_SRAM, but it's not defined in stm32f1xx_hal.h.

Any help?

#memory-remap
1 REPLY 1
Rami Rosenbaum (old)
Associate II
Posted on March 15, 2017 at 10:31

If I update SCB->VTOR at the start of main, UART works (so I presume all interrupts work):

int main(void)
{
 SCB->VTOR = 0x08002000;
 ...
}�?�?�?�?�?�?�?

Can anyone confirm that?