Hi,
I am using OMAP_L137 DSP non-BIOS. There is a 16-bit DDR RAM connecting to the EMIF_B port.
I need create a big float array (4096 entries) using the malloc() function below. However, it reports memory allocation error. If I reduce the size of the array from 4096 to 256, then everything is fine.
My first question is what's wrong of the code? Is it because of the limited internal RAM? how to solve this bug.
My second question is I want to use the external DDR RAM for the dynamic memory allocation with malloc() function. In the DSP code, how can I achieve this target? Thank you.
/////////////////////////////////////////////////////////
My_array = (float*) malloc (4096 * sizeof(float));
if (My_array == NULL)
{
fputs ("My_array Memory error\n",stderr);
exit (2);
}
/////////////////////////////////////////////////////////