Hi,
I want to save more frame using fwrite function on DM6437 I have to increase heap size just like this bios.MEM.instance("DDR2").
heapSize = <To a larger value>;I have not much experience about DM6437.Where can I change it on CCS?
And for example which heap Size value that I should select for saving more frames?
My code example is just like this in c function:
void videosave(void* currentFrame,int fn)
{
N=256;
char filename[128];
FILE *file;
for( i = 1; i < 2 * N * N; i+=2)
{temp[i]= *( ( (unsigned char*)currentFrame ) + i);
}
l=0;
for( i = 1; i < 2 * N * N; i+=2)
{source[l]= (unsigned int)temp[i];
source[l+1]=0;
l=l+2;
}
snprintf(filename, 128, "file%02d.txt", fn);
file = fopen(filename,"wb+");
if(file==NULL)
{printf("Error:File cannot open fn=%d \n",fn);
}
else{
fwrite(source,4,2*N*N,file);
}
}
Best Regards..