AnsweredAssumed Answered

Execute in NorFlash and jump to SDRAM

Question asked by Jason Lee on Oct 23, 2019
Latest reply on Oct 23, 2019 by jeremyzhou

Hi, all

      I have some issue about jump to SDRAM( 0x80000000 ) and execute it.

      I download two binary file to NorFlash( bootloader binary and application binary ), and the bootloader copy the application binary to SDRAM( address 0x80000000 ), then jump to SDRAM to execute it.

      The process of copying was perfomed normally, and the copied data in SDRAM is also correct. But jump to SDRAM failed.

      I wonder if there is some configuration work to be done when switch FLASH to SDRAM.

      Here is my code:


 __STATIC_FORCEINLINE void JumpSDRamApplication( uint32_t topOfMainStack, uint32_t AppliAddr )
__ASM volatile ("mov r13, %0" : : "r" (topOfMainStack) : );
__ASM volatile ("mov r15, %0" : : "r" (AppliAddr) : );

// SCB->VTOR = (uint32_t)BOOT_APP_ADDRESS;