Hi all.
I am using TMS320C6678 and TMDXEVM6678LE to learn DSP. The bios is 6.32 and MCSDK is 2.0.5.17. To achieve my programming goal, I changed some codes in the mcip_master_main.c from the folder ...\mcsdk_2_00_05_17\demos\image_processing\ipc\master\src. As in my program, I want to use some global pointers. I declare these pointers out of the main function as follow: float *ptr1, *ptr2, ..., *ptr15. In the main function, I use Memory_alloc() API to dynamic allocate some memory for each ptr as follow:
ptr1= (float *) Memory_alloc(0, length_of_ptr1, 0, NULL);
if(ptr1 == NULL)
{
printf("\nSystem doesn't allocate a pointer for ptr1!\n");
exit(1);
}
printf("allocation done for ptr1\n");
After I download this program to TMDXEVM6678LE , the first 11 pointers can be allocated, however the last 4 cannot be allocated. And it also shows
[C66xx_0] ti.sysbios.heaps.HeapMem: line 296: out of memory: handle=0x822320, size=400
[C66xx_0] xdc.runtime.Error.raise: terminating execution
Can anybody give some suggestions? Thanks in advance.