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/MSP430F135: MSP430: Can't Single Step Target Program: Could not single step device

Part Number: MSP430F135
Other Parts Discussed in Thread: MSP-FET, MSP-TS430PM64

Tool/software: Code Composer Studio

hi 

thank you sir,

I m using msp430F135 . while debugging code  using  MSP-FET430UIF (4 wire JTAG)  following error pop up  

MSP430: Can't Single Step Target Program: Could not single step device

some time i get this error

MSP430: Trouble Halting Target CPU: Internal error

 

No source available for "0x0" 

i m using code simply blinking led .

#include <msp430.h>

int main(void)
{
WDTCTL = WDT_MDLY_32; // Set Watchdog Timer interval to ~30ms
IE1 |= WDTIE; // Enable WDT interrupt
P1DIR |= 0x01; // Set P1.0 to output direction

_BIS_SR(LPM0_bits + GIE); // Enter LPM0 w/ interrupt
}

// Watchdog Timer interrupt service routine
#pragma vector=WDT_VECTOR
__interrupt void watchdog_timer(void)
{
P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR
}

so pls help me out this problem.

  • Hello,

    You can't single step across an LPM entry. In Line 9 of your code, you're entering the LPM0 low power mode. You shouldn't see this error if you remove the LPM mode for debugging purposes. Please read through these threads to understand this better.

    Regards,

    James

  • As a follow-up, I see you're using one of our early devices from the F1xx family and also our legacy MSP-FET430UIF. Have you heard about our newer FRAM devices? Specifically, the MSP430FR2xx devices. I've linked a few resources below including training videos and a helpful eBook covering 25 basic functions using these devices.

    MSP430™ Value Line & General Purpose Microcontrollers

    25 Functions for 25 Cents Video Series

    View the eBook: Enhancing analog and digital functions for $0.25

    Also, I would recommend upgrading your legacy MSP-FET430UIF to our latest MSP-FET debugger. I hope this helps!

    Regards,

    James

  • HI sir

    NOw i m try with another code for blinking on MSP430F135 even this code i get same error :

    MSP430: Loading complete. Code Size - Text: 178 bytes Data: 2 bytes.
    MSP430: Can't Single Step Target Program: Could not single step device

    this is code

    #include <msp430.h>

    int main(void) {
    WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
    P1DIR |= 0x01; // Set P1.0 to output direction

    for(;;) {
    volatile unsigned int i; // volatile to prevent optimization

    P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR

    i = 10000; // SW Delay
    do i--;
    while(i != 0);
    }

    return 0;
    }

    i m using MSP-FET430UIF 4 wire JTAG debugger. 

    pls sir get me out of this problem.

     

     

     

  • Hello Abhijeet,

    For future reference, code is much more readable when posted to the forum using the Syntax Highlighter tool (looks like "</>") found under the "Insert Code, Attach Files and more..." link shown after you click the "Reply" button.

    Does your code halt at main() after downloading/debugging on your device? Are you trying to step into a function or trying to step over one? If so, which one? As I mentioned before, what are your compiler optimization settings? Are you using the debug version of the project?

    What version of CCS are you using? Can you try upgrading to the latest version? How are you creating your project in CCS? I would highly recommend importing one of the MSP430F135 code examples into CCS and then downloading/debugging on your device.

    I'm concerned that the outdated MSP-FET430UIF is causing the issue behind the scenes. You could also try updating the debugger's firmware. Also, are you using a custom board or one of our target boards?

    Regards,

    James

  • #include <msp430.h>				
    
    
    /**
     * blink.c
     */
    void main(void)
    {
    	WDTCTL = WDTPW | WDTHOLD;		// stop watchdog timer
    	P1DIR |= 0x01;					// configure P1.0 as output
    
    	volatile unsigned int i;		// volatile to prevent optimization
    
    	while(1)
    	{
    		P1OUT ^= 0x01;				// toggle P1.0
    		for(i=10000; i>0; i--);     // delay
    	}
    }
    

    Does your code halt at main() after downloading/debugging on your device?

    Yes.  code halt at main() after downloading.

    Are you trying to step into a function or trying to step over one?

    i m trying to step over after downloading its gives error.

    MSP430: Can't Single Step Target Program: Could not single step device

    If so, which one?

    please find attached file.

    what are your compiler optimization settings?

    pls see attached file optimizatio at 0 level.

    Are you using the debug version of the project?

    yes sir.

    What version of CCS are you using?

    i m using Code Composer Studio

    Version: 8.2.0.00007

    Can you try upgrading to the latest version?

    this is latest version on TI web site.

    How are you creating your project in CCS? I would highly recommend importing one of the MSP430F135 code examples into CCS and then downloading/debugging on your device.

    yes i have imported project from MSP430F135 code example.

    I'm concerned that the outdated MSP-FET430UIF is causing the issue behind the scenes. You could also try updating the debugger's firmware. Also, are you using a custom board or one of our target boards?

    i have updated debugger firmware of MSP-FET430F135. i m using custom board.

    please sir i m finding solution.

  • Hello,

    Unfortunately, I could not duplicate your issue. Using CCS v8.1.0, I created a new project with 'main.c' for the MSP430F135, copied in your code, saved the project, then downloaded/debugged using a MSP-FET and the MSP-TS430PM64 target board. After the code halted at main(), I could single-step with no errors.

    Regards,

    James
  • Try checking your JTAG interface, since you're using a custom board. Also, be sure that your JTAG cable isn't longer than 8 inches (or 20 cm) per the MSP430 Hardware Tools User's Guide.

    Regards,

    James

**Attention** This is a public forum