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.

[参考译文] MSP430FR2355:是否尝试使用带有 printf 的控制台进行一些调试?

Guru**** 2518700 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1117269/msp430fr2355-attempting-some-debugging-using-console-with-printf

器件型号:MSP430FR2355

您好...

我在 main.c 中有以下代码

    if (ERR_FUNC_RTN == init_UART(&applicationUART))
            printf("ERROR\n");

我已在 stdio.h 中包括...

当我使用错误的参数运行应用程序并转至此语句时、我的代码在 trgms.c 中停止

    for (i = 0; i < length; i++) PACKCHAR(*data++, p, i+8);

即使没有任何断点...如果我按运行按钮继续打印工作。  我已经将堆和堆栈调整为400。。。有人能告诉我如何解决程序不停止的问题、并且必须"重新"按运行按钮吗?

使用 CCS 10.4.0

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

    您好、Steve、

    您遇到的问题听起来与 此主题中报告的问题类似。 不幸的是、我认为这个问题没有解决办法。

    一般而言、我避免在这些系统上使用 printf、因为这是一个资源繁重的函数。 如果您想使用文本调试控制台、可以尝试使用反向通道 UART。 当然、这对您来说更有效果。  

    此致、

    Evan