We are currently developing a project that will use the EPI to work with a SDRAM part. Our project will have a flash boot loader that will eventually call out the jump to our application binary. I can use the _system_pre_init function in our boot loader to setup the EPI before the memory initialization is done for the application code. However, I am wonder what I need to do before I JTAG debug our application code since the boot loader would not be called to setup the EPI.
If I have memory used in the SDRAM, the init will try initializing memory in the SDRAM before the EPI ever was setup, which will result in a hard fault of the processor. Does anyone have a suggestion on how to debug our application code, but also have the EPI setup before the memory initialization? We would like to avoid disabling the memory initialization if possible.