Hi,
one designer is trying to redirect standard IO (printf/scanf) to UART on the C28x.
Some some information on this topic was found here:
https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_tips_for_using_printf.html
and more information about the low level functions in chapter 8.2 The C I/O Functions of the TMS320C28x Optimizing C/C++ Compiler User’s Guide.
Is there an easier way to do this? Designer is used to rewrite the fputc() and fgetc() functions to direct characters to and from a software buffer that in its turn is directed to and from the uart peripheral.
Questions:
- Is it necessary to follow the procedure or would rewriting fputc and fgetc also work?
- Is there sample code for either option?
thanks
Olivier