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.
解決済! 解決策の投稿を見る。