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.

[参考译文] MSP430G2553:因此使用此函数时、我需要使用 printf 函数和 sprintf 函数、这与 C 内置函数类似

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1273723/msp430g2553-so-iam-using-this-i-want-use-the-printf-funtion-and-sprintf-function-other-similar-to-c-inbuilt-function

器件型号:MSP430G2553

因此、我们将 MSP430用于我们的应用、出于巩固目的、希望使用 printf 而 不是 UART。因此、当我使用 printf 函数时、会收到以下错误消息:如何解决此问题、 由于我是 CCS Studio 的新手、请指导 我完成如何解决此错误的步骤。

误差1

同样的错误也是对 snprintf 进行 occring

 

此致  

桑迪普

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

    进入 properties->compiler->advanced options -> language options,并将 printf support 设置为 full。

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

    感谢您的回复