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.

CCS/MSP430FR6989: Load Program Error

Part Number: MSP430FR6989

Tool/software: Code Composer Studio

I keep getting this annoying error. How do I resolve it?

  • Hello,

    The most common cause of this error is that you had a build error, hence the executable was not generated. Because of that the debugger was unable to find the program to load.

    Check your build output and look for an error messages during the build (and resolve them).

    Thanks

    ki

  • Here's what I noticed tonight, I created a project called 'dummy' which included a main.c with it, built and ran it before parsing code from the old project and it builds successfully. When I take parse the main.c code from the old project into the body of the dummy project main.c. I notice that the .out file suddenly disappears but the "Binaries" file remains but nonetheless it builds successfully. Then when I run it, I get the error and also the "Binaries" file disappears.
    Shown below is the main.c body that is parsed in.
    Thanks again for your help on this bug
    int main(void) {
        WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
        DEBOUNCE_TIME = 1000;
         TOGGLE_STATE = 0;
         //LAST_TIME = 0;
            PM5CTL0  = ENABLE_PINS;          // Enable inputs and outputs
            P1DIR    = BIT0 ;                // P1.0 will be an output for the red LED
            //P1SEL0   = BIT0;                 // Gives Timer0 control over P1.0
            TA0CCTL1 = OUTMOD_6;             // Use Timer mode 3
                    // Timer starts at 0, P1.0 starts LO
                    // When timer reaches TA0CCR1, P1.0 goes HI
                    // When timer reaches TA0CCR0, P1.0 goes LO
                    // Count starts over at 0 with P1.0 LO
            //TA0CCR1  = 45000;                // P1.0 LO from     0 - 45000
            //TA0CCR0  = 50000;                // P1.0 HI from 45000 - 50000
            P9DIR    = BIT7;             // Green LED is on Port 9, bit 7 (P9.7)
            P1DIR    = BIT0;                     // Ensure P1.1 button is an input and                                          // P1.0 is an output
            P1OUT    = BIT1;                     // P1.1 button needs a pull-up resistor
            P1REN    = BIT1;

            TA0CTL   = ACLK | CONTINUOUS;            // Count up to TA0CCR0 at 25us/count

            while(1){

            if((TA0R - TA0CCR1) > DEBOUNCE_TIME){
             TA0CCR1 = TA0CCR0;
             if ((BUTTON_STATE == 0) && (LAST_BUTTON_STATE == 1)){
              P1OUT = P1OUT ^ BIT0;
             }
             if ((BUTTON_STATE == 0) && (LAST_BUTTON_STATE == 0)){
              P1OUT = P1OUT ^ BIT0;
             }
            }
     
     return 0;
    }
  • Please zip up the project with the main.c file that you modified and attach it to this thread.

    Thanks

    ki