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.

TMS320F28033: Issue about redirecting printf output to the serial port on the 28033 controller

Part Number: TMS320F28033
Other Parts Discussed in Thread: C2000WARE

Hi team,

The customer have tried if can use the printf function to output a variable, and referring to the following threads on e2echina forum:

https://e2echina.ti.com/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/209408/tms320f28035-c2000-printf?tisearch=e2e-sitesearch&keymatch=add_device

https://e2echina.ti.com/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/9019/ccsv4-printf?tisearch=e2e-sitesearch&keymatch=add_device

Referring to the routine Example_F2802x LaunchPadDemo in the 2802X, it was found that the Tips for Using Printf were followed in the project, but the definition could not be found by searching the SCI_open keyword throughout the project. Notice found only at sci_io.h.

So the customer also would like to know where are the SCI_open functions actually defined and what should be added to these function definitions?

Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi,

    We have assigned your query to the expert. Please expect response only by the first week of January '22 due to holidays.

    By that time, you can find the SCI_open function in sci_io.c file located at <C2000Ware_XX\device_support\f2802x\common\source> folder.

    Thanks,

    Aditya

  • Hi Aditya,

    Thanks for your remind.

    And I have forwarded your updates to the customer. Thanks a lot.

    Best Regards,

    Cherry

  • Hi Cherry,

    To include the required files such as sci_io.h, the project include options must point to those files. Below is a screenshot of the LaunchPadDemo project with the relative paths. This can be used as an example. Note that the main .c file also includes these header files: 

    #include <stdio.h>
    #include <file.h>

    #include "sci_io.h"

    Files like "stdio.h" are located within the CCS installation folder. Below is an example of what that path may look like, this will vary based on CCS version and compiler version. You can include the path within the project settings or port the file into the project

    C:\ti\ccs1100\ccs\tools\compiler\ti-cgt-c2000_21.6.0.LTS\include

    Best Regards,

    Marlyn