Skip to main content
harry anders
Associate III
Jul 7, 2018 12:54 PM UTC
Solved

STM32F777 remapping/jumping to internal SRAM

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.
    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Jul 7, 2018 3:19 PM UTC
    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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

    2 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Jul 7, 2018 3:19 PM UTC
    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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    harry anders
    Associate III
    Jul 8, 2018 9:58 AM UTC
    Posted on July 08, 2018 at 09:58

    Thanks, that solved it for me.