where does the sdk initialise SDRAM for MIMXRT1060-EVK

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

where does the sdk initialise SDRAM for MIMXRT1060-EVK

768 Views
ALotOfKelp
Contributor I

I've been trying to understand the SDK's startup procedure, but I can't find any code that initialises the SEMC SDRAM. Where, if it exists, is the code? If it does not exist, how is SDRAM initialised?

0 Kudos
1 Reply

763 Views
jay_heng
NXP Employee
NXP Employee

There are two ways to init SDRAM in SDK projects:

1. To use DCD, there are dcd.c and dcd.h files in every demo source folder, DCD binary will be used by BootROM to init SDRAM, this way is mainly for XIP build (SDRAM is used to store .data rw section). Note: it can be used for Non-XIP build as well.

2. To use IDE macro file, For IAR, it is evkmimxrt1060_sdram_init.mac, this .mac will be called by IAR to init SDRAM before downloading application, this way is mainly for Non-XIP build (SDRAM is used to store .text ro section).