Hi,
I'm trying to use the EMIF module of the RM48 using halcogen in order to use the 8MB SDRAM.
To configure it I've done the following steps:
1. Create a RM4x, TMDXRM48HDK project.
2. Set EMIF driver in Driver Enable Tab
3. Enable EMIF SDRAM in EMIF General
4. Set EMIF SDRAM Config with the ISSI datasheet
In CCS:
In sys_link.cmd:
I add -heap 0x7F0000
in MEMORY : SDRAM (RW) : origin=0x80000020 length=0x007FFFE0
and in SECTIONS : .sysmem : {} > SDRAM like in the RM48 Hercules Demo project.
in sys_main.c
I call emif_SDRAMInit() before the dynamic allocations.
The dynamic allocation seem work perfectly. However, the realloc function responds "NULL"
What can I do to solve this problem ?
Any help would be appreciated.
Martin V.