Olimex Support Forum

Microcontrollers => MSP430 => Topic started by: mzeotech on January 27, 2020, 11:37:17 AM

Title: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: mzeotech on January 27, 2020, 11:37:17 AM
Good afternoon. I am your client from Ukraine
I use a translator.
Faced such a problem when writing a program to the microcontroller, the programmer began to generate an error "target communication error"
I have 5 devices. 2 of them a week ago, not at the first attempt, but they were successfully stitched. But now they will not flash.

Attaching photo
(http://i.piccy.info/i9/1993be043e48f33df010a62133eb1a9a/1580117702/7683/1359110/IMG_20200127_095449_240.jpg) (http://piccy.info/view3/13620815/6e5d6c88f5f3f7e98a88efb8e584b696/)(http://i.piccy.info/a3/2020-01-27-09-35/i9-13620815/180x240-r/i.gif) (http://i.piccy.info/a3c/2020-01-27-09-35/i9-13620815/180x240-r)
Title: Re: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: LubOlimex on January 27, 2020, 01:38:29 PM
What is the state of the LEDs - they can further indicate the source of the issue? Refer to page 11 of this document: https://www.olimex.com/Products/MSP430/JTAG/MSP430-JTAG-ISO-MK2/resources/MSP430-JTAG-ISO-MK2.pdf

What is the target chip exactly?

Are you using stand-alone mode?

Check if these thread applies:

https://www.olimex.com/forum/index.php?topic=5137.0
Title: Re: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: mzeotech on January 27, 2020, 03:11:53 PM

-the yellow LED blinks while trying to record

-msp430F1611IPMR

-Yes, I use stand-alone mode

-looked that topic before creating your own. Unfortunately, changing the values of "erase" and "blank" to 0 - did not give anything
Title: Re: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: mzeotech on January 29, 2020, 02:23:06 PM
Surely similar cases were with other users. Please help me figure it out.
Title: Re: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: olimex on January 29, 2020, 06:15:32 PM
are you sure your chip is not locked? if the JTAG fuese is burn there will be no more communication, MSP430 jtag fuse physically separates the JTAG
Title: Re: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: mzeotech on January 30, 2020, 09:35:59 AM
Quote from: olimex on January 29, 2020, 06:15:32 PMare you sure your chip is not locked? if the JTAG fuese is burn there will be no more communication, MSP430 jtag fuse physically separates the JTAG
Means the chip fuse I'm trying to flash? How to check it?
I have chips purchased in 2014, 2018, 2020
I used to remember exactly, then they could be re-flashed. Even a week ago, one of the old chips was reflashed.

I still think something happened to the programmer.

For example, when I connect it to the computer, in debugger mode - in the device manager it appears as "usb serial divice", and the Olimex MSP Programmer does not see it.
Title: Re: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: LubOlimex on January 30, 2020, 02:03:23 PM
Did you use the same PC and the same JTAG in debugger mode successfully before?

Maybe you changed the USB port at some point? This might lead to drivers being blocked, if that is the case either try the other USB ports of the PC or re-install the drivers (this requires temporarily disabling the Windows Device Signature enforcement). Also it is not clear if the unit works with USB 3.0 ports.
Title: Re: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: mzeotech on January 30, 2020, 04:34:44 PM
No, I have never used the programmer in debug mode before. I always copied the firmware to a flash card and in stand alone mode, flashed soldered products.

I tried other ports and port 3.0 - everywhere the device connects as "usb serial divice (com6)"

upd / downloaded the driver and program on another pc and he saw the programmer. But if I try to write the program to the chip, it displays the message "could not write to device flash CODE memory!"
Title: Re: MSP430-JTAG-ISO-MK2 "target communication error"
Post by: LubOlimex on February 04, 2020, 09:03:32 AM
Tested today with similar target MSP430F1611, worked fine here. Make sure you have placed newest DLLs in the Olimex MSP430 programmer software folder. Refer to the three pictures here:

https://imgur.com/a/decHgMk

Edit:

In my pictures you can see I successfully read and programmed MSP430F1611. So the problem should not be in the environment, and it shouldn't be a compatibility problem between the programmer and the environment.

The problem can be in the firmware version used so make sure you have placed same dll (version 2.0.0.7 in Olimex MSP430 programmer's folder, as seen in my screenshot). Then try to program again. Also make sure the settings of the Olimex MSP430 programmer (ticks and checks and selections) are the same as my screenshot. If you have done these two configurations similar to me and the problem remains then probably the chip is locked for further programming or programming is not possible for some reason.

If the problem remains and you can't identify it, my advice is to try with a brand new chip and check if that one can be read and programmed at least one time. If the does - then the issue is somewhere in the code. If a brand new chip doesn't program then probably MSP430-JTAG-ISO-MK2 is somehow damaged. Consider reading our warranty and returns policy here: https://www.olimex.com/wiki/GTC#Warranty