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:关于将 printf 输出重定向到28033控制器上的串行端口的问题

Guru**** 2387360 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1065016/tms320f28033-issue-about-redirecting-printf-output-to-the-serial-port-on-the-28033-controller

器件型号:TMS320F28033
主题中讨论的其他器件:C2000WARE

大家好、

客户已尝试是否可以使用 printf 函数输出变量、并参考 e2echina 论坛上的以下主题:

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

参阅2802X 中的例程 Example_F2802x LaunchPadDemo、发现项目中遵循了使用 printf 的提示、但在整个项目中搜索 SCI_open 关键字无法找到定义。 请注意、仅在 sci_io.h 中找到

因此、客户还想知道 SCI_OPEN 函数实际上是在哪里定义的、应该向这些函数定义中添加什么?

您可以帮助检查此案例吗? 谢谢。

此致、

樱桃

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    我们已将您的查询指派 给专家。 请仅在1月22日的第一周因节假日而回复。

    此时、您可以在位于的 sci_io.c 文件中找到 SCI_open 函数 文件夹。

    谢谢、

    Aditya

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Aditya、

    感谢您的提醒。

    我已将您的更新转发给客户。 非常感谢。

    此致、

    樱桃

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Cherry、

    要包含所需的文件、例如 sci_io.h、项目包含选项必须指向这些文件。 下面是具有相对路径的 LaunchPadDemo 项目的屏幕截图。 这可用作示例。 请注意、主.c 文件还包括以下头文件:  

    #include
    #include

    #include "sci_io.h"

    "stdio.h"等文件位于 CCS 安装文件夹中。 以下是该路径的示例、具体视 CCS 版本和编译器版本而定。 您可以在工程设置中包含路径、或将文件移植到工程中

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

    此致、

    Marlyn