I'm trying to set the SDRAM in self refresh mode from the DSP bootloader without success.
I'm working on a custom board derived from the DA8XX EVAL board.
I have implemented what is documented in the SPRUFL7A in chapter 2.6.7, but the SDRAM goes into self refresh only if I execute the code via the JTAG emulator (either stepping through or just running). If I start the board with the exact same code but without the JTAG emulator connected the DSP bootloader hangs.
I added the following code to the DSP bootloader provided with the eval board:
// Set SDRFC register: LP_MODE = 1, MCLKSTOP_EN = 0, SR_PD = 0, REFRESH_RATE = keep original value
DDR->SDRCR = (DDR->SDRCR & 0x0000FFFF) | 0x80000000;
Any idea what could be wrong?