AnsweredAssumed Answered

I.MX RT1021 BootLoader problems in XIP mode.

Question asked by qin cao on May 13, 2020
Latest reply on May 17, 2020 by jeremyzhou

Hi,Good morning.

I am using i.mx RT1020 to develop projects .Now,i want to develop a bootLoader that can jump to address other than 0x60000000。But i have some problems,the following steps:

 

1.I've written a bootloader than can store ".binary" app file to address 0x60400000.Execute the following instructions after running:

   

   JumpApplication1(0x60400000,0x60400004);

 __STATIC_FORCEINLINE void JumpApplication1(uint32_t topOfMainStack, uint32_t AppliAddr)

{
__ASM volatile ("mov r13, %0" : : "r" (topOfMainStack) : );
__ASM volatile ("mov r15, %0" : : "r" (AppliAddr) : );
}

2.So my app program performs the operation as attachment 1 and generates binary file as attachment 2 ,map file as attachment    3.

 

But the app program is not running after the jump。So I don't know what's wrong with the above operation。

Please give me your help。

Thanks。

Attachments

Outcomes