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?
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).