Using: RM48L952ZWT with HalCoGen and CCS
I have a custom board, not the Hercules HDK, which adds 128Mb (16MB) SDRAM, which the EE and I configured. We were able to get the SDRAM working. We tested the SDRAM by creating a function, doRamTest()
boolean doRamTest() { uint32 *lpuRam = (uint32 *)0x80000000; uint32 uRamCount = 0x1000000 / 4; // Write the pattern. uint32 uIndex = 0; uint32 uData = 0xFFFFFFFF; uint32 *lpuIndex = lpuRam; for (uIndex = 0; uIndex < uRamCount; uIndex++) { *lpuIndex = uData; uData--; lpuIndex++; } // Verify the pattern. uData = 0xFFFFFFFF; lpuIndex = lpuRam; for (uIndex = 0; uIndex < uRamCount; uIndex++) { if (uData != *lpuIndex) return FALSE; uData--; lpuIndex++; } return TRUE; }
The function successfully returns.
The CCS map file generated for my RM48L952ZWT Hercules chip with HalCoGen only uses the internal memory on the Hercules chip.
****************************************************************************** TI ARM Linker PC v5.2.7 ****************************************************************************** >> Linked Mon May 30 08:27:51 2016 OUTPUT FILE NAME: <CCMv3.out> ENTRY POINT SYMBOL: "_c_int00" address: 0003caa4 MEMORY CONFIGURATION name origin length used unused attr fill ---------------------- -------- --------- -------- -------- ---- -------- VECTORS 00000000 00000020 00000020 00000000 X FLASH0 00000020 0017ffe0 0005047b 0012fb65 R X FLASH1 00180000 00180000 00000000 00180000 R X STACKS 08000000 00001500 00000000 00001500 RW RAM 08001500 0003eb00 000050d8 00039a28 RW
I am half expecting to see 2 RAM regions along with bigger allocations for everything. Here are our HalCoGen settings:
How do I get my development environment to make use of the SDRAM?