The process of booting to XIP and jumping to SDRAM

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

The process of booting to XIP and jumping to SDRAM

Jump to solution
938 Views
stanley-kylee
Contributor II

Hello.

I'm using RT1020-EVK. I want to run the main program from SDRAM.

Please check if the procedure below is correct.

------------------

# Preparation
- Boot area: XIP operation, copy the main program area of serial flash to SDRAM
- Program area: XIP operation removal, RAM operation setting, LED blinking

# Progress
1. The boot region is booted with XIP.
2. Copy the program area of serial flash to SDRAM.
3. Jump to the starting point of SDRAM (0x80000000).
4. The main program is running and the LED is blinking. (?)

------------------

# Questions
1. Is it possible with the above method?
1-1. If possible, how do I create a binary file?
       A binary file is created in which the boot area with a size of 128KB is arranged from address 0, and the program area with a size of 128KB is arranged from address 0x20000. If I download this from MCUXpresso, is all data normally downloaded to serial flash?
1-2. If that's not possible, what are the other ways?
       It is not possible to use directly SDRAM booting. This is because the method of making a binary file is very complicated and difficult to apply to mass production.

 

The reason for asking this question is that it takes a very long time to erase the blank area of the serial flash in which the firmware is running while booting with XIP. (link time)
(I need to write data to the last 2MByte area of serial flash driven by XIP when power is off)

Please help me. 
My RT1020-EVK's MCU fell into a communication failure state and tried to recover, but it doesn't come back to life. So direct testing is not possible. So I leave a question.
(I tried to enter the debug mode after booting into serial download mode, but it didn't work.)

Thanks in advance for your reply.
Have a happy day always.

 

Labels (1)
0 Kudos
1 Solution
927 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @stanley-kylee ,

Please refer to the attachment.

 

Regards,

Jing

View solution in original post

0 Kudos
1 Reply
928 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @stanley-kylee ,

Please refer to the attachment.

 

Regards,

Jing

0 Kudos