Hi
My customer used Memory_alloc to allocate 1GB memory dynamically in his program, but he got the error message:
unsigned int *test_1g = (unsigned int*)Memory_alloc(0, 0x40000000, 128, NULL);
[C66xx_0] ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x82e560, size=1073741824
xdc.runtime.Error.raise: terminating execution
----------Platform Configuration----------
CPU: Intel Core i7 4770K 3.5GHz
MB: ASUS H87-PRO (Southbridge: Intel H87)
RAM: DDR3-1600 8GB
OS: Windows 7 Professional 64bit
DSP board: DSPC-8681 with 2GB memory per DSP
And he did some tests for various memory allocation
pBuffer = (unsigned char*)Memory_alloc(0, 0x18000000, 128, NULL); <---------------------------- 384MB, PASS
unsigned char *pBuffer1 = (unsigned char*)Memory_alloc(0, 0x8000000, 128, NULL); <-------- 128MB, PASS
unsigned char *pBuffer2 = (unsigned char*)Memory_alloc(0, 0x8000000, 128, NULL); <-------- 128MB, PASS
unsigned char *pBuffer3 = (unsigned char*)Memory_alloc(0, 0x8000000, 128, NULL); <-------- 128MB, FAIL
ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x82e560, size=134217728
xdc.runtime.Error.raise: terminating execution
Is my customer missing something else? Thank you.
Regards,
YC