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.
Hi,
I'm just modified the pinterrupt example based on my project requirement. I can produce the executable file but while debugging, I'm facing an issue internally Xdc_Runtime_error.
/* * ======== ti_sysbios_rts_MemAlloc_alloc ======== */ static Void *ti_sysbios_rts_MemAlloc_alloc(SizeT size) { Header *packet; SizeT allocSize; xdc_runtime_Error_Block eb; allocSize = size + sizeof(Header); /* * If size is very large and allocSize overflows, the result will be * smaller than size. In this case, don't try to allocate. */ if (allocSize < size) { return (NULL); } xdc_runtime_Error_init(&eb); packet = (Header *)xdc_runtime_Memory_alloc(NULL, allocSize, 0, &eb); if (packet == NULL) { return (NULL); } packet->header.actualBuf = (Ptr)packet; packet->header.size = allocSize; return (packet + 1); }
So, I tried to change the (target).cmd file Heapsize and program stacksize from a reference working ( sensor and collector example modified project ). #10099-D: program will not fit into available memory error occurred.
How do I edit .cmd file to allocate more space?
It would be immense help if anyone assist me.
Regards,
Keerthivasan
How do I edit .cmd file to allocate more space?
You mean what is the syntax? Perhaps start here:
https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html
Yes, Kier I need to increase the stack and heap size of a program based on my project requirement.
Is that enough to do that?
You probably need to read your particular compiler manual but, by way of example, in my C2000 project the first step is to make sure the appropriate size is set in the linker settings:
Then make sure that output sections .stack and .sysmen are allocated to a large enough physical range in the linker .cmd file:
#if 0 .esysmem : > RAMLS2 PAGE = DATA_MEM /* Malloc not used. */ #endif /* Stack */ .stack : > RAMM1 PAGE = DATA_MEM
In my case I'm not using malloc so don't need a heap.
Hope that helps.