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.

[参考译文] AM2732:我想通过我的 UART 球面算法或 AM273实现 printf 函数。 编译器为 CCS

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1363618/am2732-i-would-like-to-implement-printf-function-by-my-uart-pheriperal-ot-am273-compiler-is-ccs

器件型号:AM2732
主题中讨论的其他器件:SysConfig

您好

我想在我的 CCS 编译器中使用 printf 函数。

从论坛上很难找到答案。

请告诉我如何实施。

谢谢!

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

    尊敬的 Antony:  

    如果您看一下任何 https://www.ti.com/tool/UART-AM273X 示例,几乎所有示例都使用 DebugP_log ()函数来执行 MCU-PLUS-SDK 调试打印。  

    如果深入了解"Hello World"示例(C:\ti\mcu_plus_sdk_am273x_09_02_00_52\examples\hello_world\am273x-evm\r5fs0-0_FreeRTOS)、您可以看到它是如何连接的。

    在 SysConfig 中、TI 驱动程序移植层> Debug_Log 会配置 ti_DPL_config.c/h 自动生成的代码、并将 CONFIG_UART0和 CONFIG_EDMA0实例附加到它。  

    请查看这些内容、如果您有任何其他相关问题、请告诉我。  

    谢谢!

    -兰迪