Hey,
I am facing issues in dynamic memory allocation on TMS320F28335 platform, using SYS BIOS (Compiler Ver: TI v6.2.0)
I have alligned my .sysmem and .esysmem to the required memory zones as -
.sysmem
: > TEST_ZONE1 | TEST_ZONE2 PAGE = 1
/* heap */
.esysmem : > TEST_ZONE1 | TEST_ZONE2
PAGE = 1 /* far heap */
And both my test zones (1,2) are mapped to the external memory zone - xintf zone 7
****************************************************************************************
When i use -
buffPtr = Memory_valloc(NULL ,totalLen_u16,0,0, NULL);
the ccs help says if the 1st arg is NULL, it should take the default heap.
It never assigns the buffPtr to test zones, but the ptr still lies in my internal memory -
my local ptrs sit in the - .stack section and global ptrs sit in the .bss and .ebss sections that are mapped to internal memory.
****************************************************************************************
When i use -
buffPtr = Memory_valloc(TEST_ZONE1,totalLen_u16,0,0, NULL);
It throws error saying the TEST_ZONE1 is not compatible with the iheap_Handle.
****************************************************************************************
No type-castings work, niether am i able to create a similar heap.
Please assist me in mapping my dynamically allocated buffers to external memory - i.e. to the test zones.
Also how should i create the iHeap.