Skip to main content
Rami Rosenbaum (old)
Associate III
March 15, 2017
Question

stm32F101 memory remap with HAL

  • March 15, 2017
  • 1 reply
  • 700 views
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
    This topic has been closed for replies.

    1 reply

    Rami Rosenbaum (old)
    Associate III
    March 15, 2017
    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?