This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BIOS heapsize

Hi all

I am currently developing software for a board with a C6678 and 2GB DDR3 memory, using SYS/BIOS 6.34.04.22.

I'm using my own platform-file, where I have defined a memory segement "DDR3" of length 0x5c000000 at 0x84000000.

In my .cfg-file, I have created a heapMem instance of size 0x30000000 in section ".data_heap_sec" in that segment, and I have also set that instance to be the BIOS heap my stating: Memory.defaultHeapInstance = Program.gloabl.data_heap in the cfg-file.

Compiling and linking is fine, but looking in the map-file, it seems that my section ".data_heap_sec" is located at 0x84000000 (ok) but only of size 0x10000000 (not ok), and that the .text section follows directly after at 0x94000000.

However, if I in the code use the HeapMem_getStats, I get that the size is 0x30000000 and that I have almost that size free. Testting to allocate memory reveals that I can allocate 0x10000000 two times, and the second memory chunk is well within the next section (.text) and if I try to write to my allocated memory I the program crashes.

So, to me it seems to be a conflict between the cfg-file and the map-file, and between the map-file and what I get using the code.

Is there any size limitation I have missed regarding BIOS heap?

/OH