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.

[参考译文] TMS320F28379D:我想将 printf 用于串行 UART 调试控制台

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1190969/tms320f28379d-i-want-to-use-printf-for-serial-uart-debug-console

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

您好!  

      请帮我解决问题,我可以在哪里获取 printf 函数并添加到代码中,我还想知道,如果我们使用 printf 函数,那么如何知道哪些 UART 引脚,它将得到配置?

谢谢、

SID C

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

    您好 Sid、

    [引用 userid="542234" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1190969/tms320f28379d-i-want-to-use-printf-for-serial-uart-debug-console "]  请帮助我,我可以在其中获取 printf 函数并添加到代码中

    我们在 C2000Ware 中提供 了一个使用 printf 功能的器件示例。 您可以将此示例用作您自己应用的参考:

    C:\ti\c2000\C2000Ware_version\device_support\f2837xd\examples\cpu1\launchxl_f28379d

    [引用 userid="542234" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1190969/tms320f28379d-i-want-to-use-printf-for-serial-uart-debug-console "]如果我们使用 printf 函数,那么如何知道哪些 UART 引脚,它将得到配置?[/quot]

    您将需要使用 SCI 模块、您可以使用任何 SCI 模块、并且每个模块都有一组相应的引脚。 您也可以使用我在上面引用的示例作为这方面的示例。

    此致、

    Marlyn