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.

[参考译文] MSP-EXP430FR5739:不能由外部供电并且无需调试器即可运行代码

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1274582/msp-exp430fr5739-unable-to-power-externally-and-run-code-without-the-need-of-the-debugger

器件型号:MSP-EXP430FR5739

您好、我 目前正在尝试在外部电源供电时运行该代码。 对其可能无法正常工作的原因有何建议?

#include <msp430.h> 

int main(void)
{
  WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT

  P1DIR |= BIT1;
  P1OUT |= BIT1;

  while(1)
  {
      P1OUT ^= BIT1;
      __delay_cycles(100000);
  }
}

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

    大家好、

    基本来说、我为微控制器编写了一个程序并对其进行了编程。 现在我想断开 USB 电缆、但仍然能够为微控制器供电并运行程序。 我们曾尝试连接 Launchpad 上的电源与 VCC 和 GND、此时电源 LED 会亮起、但程序不会运行。

    我尝试做的是什么吗?

    提前感谢任何人可以提供的任何帮助!

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

    您好!

    该代码是否在调试模式下正常运行? 并且您是否已尝试将 __delay_cycles (100000);增加到 __delay_cycles (5000000);

    此致、

    现金豪