Execute in NorFlash and jump to SDRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Execute in NorFlash and jump to SDRAM

693 Views
liyuxiao_tech
Contributor I

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;
}

Labels (1)
0 Kudos
1 Reply

560 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Jason Lee

Thank you for your interest in NXP Semiconductor products and
the opportunity to serve you.
To provide the fastest possible support, I'd like to suggest you refer to a similar question that has been answered on our NXP community.
Please refer to https://community.nxp.com/thread/514100
to view the details.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos