Run the program after jumping to SDRAM

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

Run the program after jumping to SDRAM

255 Views
stanley-kylee
Contributor II

Hello.

 

Currently, RT1020-EVK is running based on XIP.

After every boot, I want to move the code from serial flash to SDRAM and then jump to the first point in SDRAM. (the program start point).

During operation with XIP, it is necessary to erase and write serial flash, but the erase operation takes too long.
There is a way to run it from SDRAM from scratch without using XIP, but the procedure to download the program is very complicated. (Not suitable for mass production)
So I try to jump after copying the program to SDRAM.

Anyway, after booting, I want to copy the first 2MByte area of serial flash to SDRAM and jump to the starting point of SDRAM.

Please check if what I did is correct.
(Probably there is a missing process.)

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

1. SEMC initialization

2. Copy serial flash data to SDRAM
    → Source(Serial Flash) : 0x60000000U ~ (0x60000000U + 2MByte)
    → Destination(SDRAM) : 0x80000000U ~ (0x80000000U + 2MByte)

3. Jump to SDRAM

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

When running after jumping to SDRAM in the same way as above, are there any more settings that need to be changed?

I attach the project file.
(source/semc_sdram.c)

Thanks in advance for your reply.

 

 

 

0 Kudos
0 Replies