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.

[参考译文] MSP430FR5994:pragma 调试

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1346807/msp430fr5994-pragma-debug

器件型号:MSP430FR5994

如何识别程序是否为调试状态、如果选中它则处于调试状态主机如何禁用标识符"printf"。

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

    不清楚我们的问题、处于调试状态还是未处于调试状态取决于您是连接调试器并在 CCS 或 IAR 中进入调试模式。

    要禁用 printf,我建议您使用 select compilation #ifdef 来启用 printf 或禁用它。