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.

heap size for stdio.h

Hi,

I wrote code as below:

for(i=0; i<50000; i++) { sprintf(&buferRS[0],"%12.4f %12.4f %12.4f %12.4f ",a,b,c,d); ....;}

My program goes different way each time I start it. I suspect heap size. When I increase

its size program running better, more stable. How do I  estimate correct heap size?

Should I use SDRAM or IRAM for heap?