Hello,
I am new to SYS/BIOS. I am trying to figure out how to direct all printf -- that I believe goes to stdout -- to the UART or SCI on my F28069. Can someone direct me to where I can find out how to do this?
Best Regards,
Steve M.
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.
Hello,
I am new to SYS/BIOS. I am trying to figure out how to direct all printf -- that I believe goes to stdout -- to the UART or SCI on my F28069. Can someone direct me to where I can find out how to do this?
Best Regards,
Steve M.
Hi Steve,
Here's the approach I would suggest:
- Get the SCI echoback example from the C2000 Control Suite. This example has a SCI driver than you can use in your BIOS app.
- Once you have a working SCI driver, you can change the System provider (used for System_printf) to SysCallback. The default system provider is SysMin which uses CCS CIO to output prints. I am asking you to use SysCallback module as it allows the application to provide callbacks for SysCallback_putch(), _flush(), etc. functions which are used by System_printf() to output the prints. You can make a call to SCI driver's transmit function in the putch() callback function.
(SysCallback module cdoc: http://rtsc.eclipse.org/cdoc-tip/index.html#xdc/runtime/SysCallback.html)
Best,
Ashish
Hello Ashish,
From all of the reading I have done this should work.
Thanks,
Steve M.