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.

[参考译文] TMS570LC4357:调试时打印变量和值

Guru**** 2466550 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1060985/tms570lc4357-printing-of-variable-and-values-while-debugging

器件型号:TMS570LC4357

大家好、团队、

我们正在调试代码、因此需要在终端上打印变量及其值。

我们正在使用  UART_putString (debug_port、"Init Success \r\n)进行打印、但此函数仅打印常量字符串。  

如何打印变量和值?

是否有可用的 API/实用程序?

此致、

Ajinkya  

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

    您好  Ajinkya、

    示例代码 UART_putString()仅将常量字符串打印到终端。 您可以使用 fprintf 将变量打印到 CCS 控制台。