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.

printf + heap : difference IAR-CCS

Hello,

When the heap size =0, does anybody know why the printf fonction works correctly with IAR while it does not work with CCS?


Best regards

Mich

  • I can only guess why it works with IAR, but it doesn't work for the TI compiler because when you use printf, by default it allocates an I/O buffer.  If you want to use printf without a heap, you'll need to use setvbuf to set the stdout buffer to a static object.