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: Unable to power externally and run code without the need of the debugger

Part Number: MSP-EXP430FR5739

Hi I am currently trying to run this code when powered by an external power supply. Any suggestions on why it might not be working?

#include <msp430.h> 

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

  P1DIR |= BIT1;
  P1OUT |= BIT1;

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

  • Hey everyone,

    Basically, I wrote a program for the microcontroller and programmed it. Now I want to disconnect the USB cable but still be able to power the microcontroller and run the program. We tried hooking up a power supply to VCC and GND on the launchpad and the power LED lights up but the program doesn't run.

    Is what I'm trying to do possible?

    Thanks in advance for any help anyone can provide!

  • Hi,

    Is this code run normally in the debug mode? And have you tried with increase the __delay_cycles(100000); to __delay_cycles(5000000);

    Best regards,

    Cash Hao

**Attention** This is a public forum