hi, I want to redirect output of printf to uart0, the redirection of output was quite straightforward:
int fputc(int ch, FILE *f) { while(Uart0Regs.UARTTXST.bit.TX_RDY == 0) {} Uart0Regs.UARTTXBUF.all = ch; return ch; }
but I can print only once... then cpu hangs. When I add printf to the function, also without redirecting fputc, I get warning:
#10247-D creating output section ".sysmem" without a SECTIONS
from now on each use of printf or sprintf hangs cpu, without printf in code sprintf works fine.
I use CCS v10.3 with compiler TI v5.2.9