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.

TMS320F280049: C I/O functions to output the SCI peripheral on C28x

Part Number: TMS320F280049


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:                         

  1. Is it necessary to follow the procedure or would rewriting fputc and fgetc also work?
  2. Is there sample code for either option?

thanks

Olivier