I am currently writing DDR 3 initializaition program for C6A8168 in C.
In order to proceed with this, I used the CCSv4 GEL file to determine necessary initialization parameters, however, the program I wrote in the NOR Flash (using the same parameters as the GEL file) always gets stuck during the DDR3 boot process, returning EXCEPTION error.
To be more precise, the boot process hangs during the initialization of SDRRCR(SDRAM Refresh Control Register) even I am following the steps as described in the GEL program. The program comes to a halt right after the following process #2.
#1. SDRRCR = 0x0000613B
#2. SDRRCR = 0x1000613B
#3. SDRRCR = 0x10000000 + 0x1841
On the other hand, a different description is provided in your TRM, which goes:
1. SDRRCR = 0x80000000 + 0x1841
2. SDRRCR = 0x90000000 + 0x1841
3. SDRRCR = 0x10000000 + 0x1841
The above does go through without returning any error, however, DDR is NOT initialized and remains all "0".
Could you provide me with a workaround on this issue?
Thanks, and best regards.
Ken