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.
Mike,
calloc() only fails if there is not enough heap to hold the allocated size. This particular API is really easy to run out of memory due to its parameters. Please check the post below that talks about a similar issue.
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/38476/136784.aspx#136784
There is no easy way to reliably report heap usage, but some suggestions can be found in the post below:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/51831/183342.aspx#183342
Hope this helps,
Rafael
In addition to Rafael's comments, if you are using DSP/BIOS you can open up the Kernel Object Viewer just before calling calloc() to find out how much of that heap is available. KOV polls a lot of statistical information including largest contiguous block of free memory in each heap.