Studio7 AVRISP MKii communication issue??

Go To Last Post
17 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I know this has been beaten to death, but I still can't resolve this issue! 

 

I have used these interface to program the chip on the target previously.

 

Now I get programming errors (code 0x03) every time I ask it to do something.

 

Weird thing, if I ask it to read the voltage, it fails. But if I ask it to read the device ID, it successfuly reads the voltage, but not the device ID!

 

It's almost like (in simplistic terms) there is a missing CR (or other terminator) at the end of the data, and the software times out.

 

I'm running Win7 professional. Same results on two different PCs!

 

Has anyone reliably solved this problem??

 

Thanks!

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here are a few, rather poor, thoughts:

 

Do you have power to your chip?  Power cannot come from the ISP II (though there is an easy hack to allow this).

Do you have your bypass capacitors installed?

A TPI hookup is different than an ISP hook up---did you follow the correct type?

Did you try removing all connections/signals that share pins with the programming pins (in case of new conflicts).

Did you unplug the programmer from the PC & plug it back in?

Did you try another fresh chip?

 

You could try hooking up an isp style chip, like maga 48/88/328 & see if you can talk with it.

 

I had a prog cable that required you only push it onto the pins about half way..if pushed on all the way you'd get an intermittent connection & a splitting headache.

 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the thoughts....

 

Power to the target chip...OK.

Bypass caps....maybe I need more?? Or one closer to the chip??

TPI vs ISP, we successfully programmed this target board previously.

Remove shared components..Yep.

Reboot PC, reconnect USB cable....yes and yes.

The chip is still functional, but I can't read it.

 

I'm kind of suspecting the cable. But sometimes the Studio reports problems on the RESET or CLOCK lines, yet, when I observe those lines with a scope they are active during the failed attempt to read the chip. So that almost rules out the cable.

 

I'm scratching my head over this!

 

I'm using one of those TAG CONNECT cables with the spring loaded contacts.

 

 

 

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

KarlFrick54 wrote:
I'm using one of those TAG CONNECT cables with the spring loaded contacts.
6in long; might try reducing the ISP TPI frequency.

How to use the TC2030-IDC cable with the Atmel AVRISP mkII - Tag Connect

AVRISP mkII - Troubleshooting Guide

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Thu. Jun 6, 2019 - 06:17 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

KarlFrick54 wrote:
TPI vs ISP, we successfully programmed this target board previously.

Did you change the fuses when you last successfully programmed it?

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you change the fuses when you last successfully programmed it?

And don't say you used a penny cheeky 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think the problem lies in the TAG CONNECT cable, it has a problem with PIN 1 (TPI DATA) being open most of the time. If I hold it just so, I get continuity. But most of the time, no joy. The other pins seem to be fine.

 

Just my luck, it's something I can do nothing about except buy a new cable and wait for it.

 

Thanks for all your suggestions. If it still doesn't work with a new cable, I'll be back!!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Should have excellent strain relief at the working end.

If the open pin 1 is at the AVRISP2 end then pop its hatch, pull the cable to shorten it, then re-insulation displacement.

TC2030-IDC 6-Pin Tag-Connect Plug-of-Nails(tm) Spring-Pin Cable with Legs - Tag Connect

If it's the no legs version then if it's not square to the PCB then it might miss the TPI_DATA pad.

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you try cleaning the pcb contacts/pads?  Looking clean is not the same as being clean. Use an eraser to get rid of oxidation & grime...or get some contact cleaner..  Iso alcohol  isn't bad either

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

UPDATE:

 

It was the cable all along. We ordered a new one and everything works just fine!

 

Dang cables!!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

KarlFrick54 wrote:
Dang cables!!

It's common for the tiny wires to break right at the point where the cable enters the IDC connector (due to the pulling on the cable), you can often repair these, by carefully removing the back off the connector, pull the cable off the prongs, slide the connector down the cable and clamping it back together, a small vise is great for pressing the back on the connector.   Then cut off the excess cable.   Just like new again, only a little shorter cable.

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274

 

 

 

Last Edited: Thu. Jun 13, 2019 - 06:27 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:
... a small vise is great for pressing the back on the connector.
pictured along with IDC connectors with and without strain relief.

Curious Inventor Blog - Attach IDC Sockets to ribbon cable

For logistics or manufacturing : Connector Hand Tools - Harwin | Mouser Electronics

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would be wary of a bench vise.    You need smooth jaws.

 

I use a MoleGrip.   The jaws are smooth at the outside.   Set it to close at the exact dimension.   Offer up the ribbon.  Squeeze.   You can feel the operation.    With a vise there is no "feel".

 

If you are using "straight" ribbon,   buy them ready-made.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


I use some thing like this, but any vise will do, it just has to squeeze the two parts together, it takes no force at all!

You just need to be sure the cable is straight in the connector.

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Some cheapie cables lose their contact force (contact no longer springy) after a dozen uses.  I've had a few cables that would connect if you put on half way, but lose connection if pushed all the way (actually sounds more like pin corrosion/dirt).

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

That's a cool tool gchapman! I have been using bench vises for decades to squish those things.

 

Our cable was actually intermittent at the spring loaded end. But the good folks at Tag Connect are hooking us up with a replacement, and we bought spares.

 

Thanks for all your good input, fellas!