Skip to main content
harry anders
Associate III
July 7, 2018
Solved

STM32F777 remapping/jumping to internal SRAM

  • July 7, 2018
  • 1 reply
  • 823 views
Posted on July 07, 2018 at 14:54

Hi,

I was previously working on an stm32f429 MCU and successfully jumped to internal SRAM using:

__HAL_SYSCFG_REMAPMEMORY_SRAM();

I've ported my code to a new STM32F777 system and have realized the above function does not exist. Apparently the SYSCFG register does not have an option for remapping to internal SRAM.

How can I remap to interanl SRAM in STM32f7 MCUs? Do I have to program the BOOT_ADD0 & 1 registers and perform a soft reset?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean
    Posted on July 07, 2018 at 17:19

    I'm not sure of the necessity here. Can't you just use SCB->VTOR to change the vector table to RAM, and just to arbitrary code locations without remapping?

    1 reply

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    July 7, 2018
    Posted on July 07, 2018 at 17:19

    I'm not sure of the necessity here. Can't you just use SCB->VTOR to change the vector table to RAM, and just to arbitrary code locations without remapping?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    harry anders
    Associate III
    July 8, 2018
    Posted on July 08, 2018 at 09:58

    Thanks, that solved it for me.