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.

MSP430F5529: Unable to download and debug my code

Part Number: MSP430F5529

Hello,

I'm using the IAR Embedded Workbench 7.11.3 for my MSP430F5529.  I've been working on this project for a month now and it is normally fine, but today I tried to Download and Debug but got this error message "Emulator.  Communication error. Please connect the device and press Retry to reconnect, or press Cancel to abort" (see image below).

I've gotten this message before, and previously, I just close down another program (Labview), close IAR, and re-ran IAR, and it's fine.  But today, this solution did not work.

I've searched for this error elsewhere, found a potential solution as suggested in this post https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/58343?Communication-Error-with-MSP430F2132, but this solution did not work.

The kicker is that when I plug my MSP430F5529 launchpad in another computer (my laptop), IAR runs just fine, so I know my hardware is okay.

Any help would be appreciated. Thanks.

  • Hello Amy,

    Have you manually changed the JTAG connection in your IAR project properties on computer where it's failing? If the board is using 2-wire SBW JTAG and your project/connection settings are for 4-wire JTAG, you'll see this error. Can you please check this?

    Regards,

    James

    MSP Customer Applications
  • Hi, 

    Ok, today, I am now able to Debug and Download.  I didn't make any changes to the hardware or the configuration of the IAR software.  In the IAR software --> Options --> FET Debugger --> Debug Protocol, I've always used the "Automatic selection" rather than the "Spy-Bi-Wire" or "4-Wire JTAG" selection. 

    What I'm afraid of is not knowing what causes this issue, and if this happens again next, I won't be able to debug.  

    Yesterday, since the MSP430F5529 launchpad + IAR weren't working, I connected the launchpad to my personal laptop, and IAR was running fine on that one.  

  • This could be related to the fact that the virtual COM port of the programmer is either used by another software or was not properly released. To confirm if this is the case, before you attempt to program, disconnect the programmer, wait for a few seconds, and then program the device. If the error does not show up, then you now know what is causing it.

  • Hello all,

    I found one solution that worked - restarting the computer.

    I also tried moving the USB port around on the front and the back, switching my IAR license dongle to another port, restarting IAR/MSP430 and waiting a few minutes to turn it back on, I tried switching the FET debugger.

    Anyhow, I guess restarting the computer worked but I'm not sure why this is the case.  I hope I don't have to do this a lot because that would get annoying.  

**Attention** This is a public forum