I'm using CCS v5.2 on the Stellaris LM3S9D96 with SYS/BIOS 6.33. Internal SRAM is at a premium, so I need to put less-accessed variables and buffers in an external SDRAM. It is the same SDRAM used on the DK-LM3S9D96 development kit, connected to the EPI.
Anyway, I have already declared a ".far" memory section and pointed it to the SDRAM address region in my CMD file. I've detailed my CMD file in this thread. As also mentioned in the linked thread, I added the Startup module to SYS/BIOS and am using the ResetFxn to call an initialization function for the external SDRAM, so it is ready before variable initialization.
The NDK/Global module defaults to putting its buffers in the .far section, and my .map file shows that it is indeed allocating. Since the program appears to run without any problems, including Ethernet functionality, it seems the communication to SDRAM is working.
Now, I need to allocate some variables and buffers of my own to SDRAM. It seems like I need to use the Memory_alloc function from the Memory module, but it has an argument for heap. If I don't specify anything, it will default to the standard heap which is in internal SRAM.
I guess I need to create a separate heap in SDRAM, but how do I do this?