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.

TMS320C6657: stuck in malloc function

Genius 13655 points
Part Number: TMS320C6657


Hello Champs,

Customer wanted to use malloc function.

#include <stdlib.h>

short*pnLoadMagRectFlag = (PIXELTYPE*)malloc(nTemplateSize*sizeof(short)); 
if(pnLoadMagRectFlag==0x00)
{
malloc_error++;
return;
}

……

free(pnLoadMagRectFlag);



Code is stuck in malloc API function. Pause the emulator, the code is stopped in \ti\ccsv6\tools\compiler\c6000_7.4.8\lib\src\memory.c




Thanks.

Rgds
Shine