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/MSP430F5247: Attaching to Running MSP430F5247 in CCS 8

Part Number: MSP430F5247
Other Parts Discussed in Thread: MSP-FET

Tool/software: Code Composer Studio

I'm trying to connect to an MSP430F5247 while it is running and without it restarting, but not having any success. I'm using the MSP-FET device, and CCS 8.0. 

I've tried the following the instructions here and here

The main configuration I believe I should work is: 

I've tried various combinations of the settings under Debug Configuration, but every time the debug connects, my device restarts. 

Some places I read suggested that the option "Enable realtime mode" needed to be selected under "Auto Run and Launch Options", but this option is greyed out for me.  

I would greatly appreciate any help on this one!

  • Hello Joel,

    First, thanks for your detailed post and also for searching the forum. Can you please try unchecking "Halt the target on a connect" under "Connection Options" in the screen shown in the second screenshot? I would also recommend unchecking "Reset the target on a program load or restart" as well if the first option doesn't work.

    Regards,

    James

    MSP Customer Applications

  • Thanks for the reply James,

    I ended up being able to get it working by changing my procedure a little bit.  I'll post this here for anyone else who might have the same problems I did.

    I disabled "Halt target on connect" and "Reset target on program load or restart". I also had to disable "Connect to the target on debugger startup" under "Auto Run and Launch Options".

    Now in order to connect to the running target  without resetI have to physically disconnect the cable going from the MSP-FET to my device, then start the Debug process.  Once the debug session was running I would get the following display.

    I can then physically connect the cable back to the MSP-FET, right click on the TI MSP430 USB1/MSP430 and select "Connect Target". The state changes to "Connecting: Running", at which point I can now pause the debugger and halt it without resetting. 

    I'm new to this, but my instinct is telling me this isn't the way it's supposed to happen. The fact that the connection state hangs at "Connecting: Running" seems unusual.  On top of that start the Debug session without disconnecting the cable (with the settings as described above), the MSP430 will reboot during the Debug startup, even though it isn't "connected." 

    Cheers,

    Joel

**Attention** This is a public forum