3
\$\begingroup\$

It seems that my AVRISP mkII programmer died in a strange incident. It was connected to my computer via USB cable and to a custom board which hosts an ATXMEGA32A4U via its 6-pin programming header. The on-board connections for the programmer are according to Atmel's E-Schematic-Checklist (sect. 4).

The AVRISP stopped working (all lights went off) as I connected the board's power supply (an on-board LDO regulates the supply voltage to the 3.3V required by the microcontroller). Apparently, when the programmer is inactive there is some pull-down on the reset line, therefore the ATXMEGA at first seemed dead too. However, after disconnecting the programming cable the ATXMEGA resumed operation. It still works flawlessly and the LDO delivers 3.3V as expected.

After the incident I had no power on any of my computer's USB ports, therefore I powered down my computer, disconnected and reconnected mains power, which returned power to the USB ports. But as I connected my AVRISP it still showed no reaction (no power loss on the USB ports this time though). The OS did not even detect connection of a USB device, as dmesg did not report anything (note: this is on Linux).

I switched the programmer's USB cable, but that did not help. I opened the case to see if the AVRISP has any visible traces of damage, but it looks fine, as far as I can tell. Here is a picture of it (USB connector on the left, 6-pin programming header on the right):

enter image description here

Is there anything that can be done about this AVRISP or must I assume that it is damaged beyond repair? And what might be a likely explanation of this strange death?

EDIT: As suggested by Raj I have measured the voltage levels in what seems to be the power supply section of the device. In the above picture, the traces marked in red carry 5.05 V, everything else in the vicinity is at 0 V. It seems that the IC close to the lower left corner is an LDO which is defect. The package reads "BDR 391 ADFX", does anyone have an idea which device this might be?

EDIT 2: As suggested by Tom Carpenter I have bypassed the defective dc-dc converter, however now the supply voltage drops to 4.5 V and the device indicated in the picture quickly gets very hot.

\$\endgroup\$
6
  • 1
    \$\begingroup\$ I managed to fry my AVR ISP in a similar way - plugged it in, powered up the board and pop. For some reason that DC/DC converter seems to be designed to convert the USB 5V rail into a 5V rail which doesn't make any sense from a design point of view (I traced out the schematic and measured all the resistor values, so definitely outputs 5V). In my case I completely fried the regulator (melted IC!) so figured it was a right-off. But actually completely bypassing the regulator (removing the IC and then connecting Vin to Vout) fixed it so it now works. I'll take some pictures when I get home. \$\endgroup\$ Feb 15, 2017 at 15:46
  • 1
    \$\begingroup\$ In case you are wondering the IC in the bottom left is a DC-DC converter, specifically the TI TPS61020 \$\endgroup\$ Feb 15, 2017 at 16:39
  • \$\begingroup\$ @TomCarpenter Thanks a lot for these hints! The output of the DC-DC converter is effectively 0 V, so I guess I destroyed it. I will try bypassing it as well. \$\endgroup\$
    – kassiopeia
    Feb 15, 2017 at 16:53
  • 1
    \$\begingroup\$ Just got home, so I'll take some pictures of the inside of my AVR-ISP. \$\endgroup\$ Feb 15, 2017 at 16:58
  • 1
    \$\begingroup\$ The device that 'gets very hot' appears to be a 6MHz crystal or ceramic resonator (clock for the USB interface chip). I can't think of any reason for it to get hot unless it has somehow become partially shorted. Remove it and put a 6MHz crystal in its place. \$\endgroup\$ Feb 15, 2017 at 18:42

2 Answers 2

5
\$\begingroup\$

I had a similar issue with the AVR ISP MKII when I first got it. I connected up the programmer, turned on the board (which was powered from an adjacent USB port), and pop.

On my board the regulated as highlighted n @Raj's answer failed, quite spectacularly actually, burned a hole in the IC epoxy.

After some research I tracked down that it was a TPS61020 DC-DC converter IC from TI. I also measured the resistor values and determined that it is actually being used to generate 5V from a 5V rail which seems kind of pointless to me, but there you go.

Fortunately I was able to fix it my one (I bought it in clearance so couldn't return, hence having nothing to lose trying to fix it).

The first step was to remove the IC completely. It's quite tricky to do due to the large thermal pad and tight space as you can see from the photo below. In the end I chipped away all of the epoxy of the IC to get down to the metal lead-frame allowing me to get the soldering iron in to heat it.

Desoldered IC Pads

Once removed rather than replace the IC which would have been difficult to resolder, I bridged a piece of wire between the bottom right corner pad of the inductor, an the positive terminal of the large tantalum capacitor as shown below. This bypasses the IC completely while also keeping the inductor in place for noise filtering (whether it is strictly necessary, I don't know, but it was the easiest place to bridge).

Wire Jumper

I checked for shorts, finding none I powered it up (I used a current limited 5V supply first to make sure I didn't fry my USB port). And that was all it took. One fully functioning AVR ISP MKII.


While I was at it, I also added a 1N4148 diode and 2.54mm jumper header as shown below. This allows the AVR ISP to power the target device from the USB port when the jumper is in place. When the jumper is removed the behaviour is as standard with the target device being self powered and setting the IO voltage.

The diode anode is connected from the 5V pin of the USB port (make sure not to short to anything else nearby!). The cathode connects to my jumper. The other side of the jumper then connects to the cathode of diode in the bottom right corner of the AVR ISP board.

Diode + Jumper Mod

\$\endgroup\$
6
  • \$\begingroup\$ Awesome pictures, thanks a lot. I did as you suggested, however now the device located above right from the dc-dc converter gets very hot, see my edit. \$\endgroup\$
    – kassiopeia
    Feb 15, 2017 at 17:49
  • 1
    \$\begingroup\$ @kassiopeia as BruceAbbot says, that is a 6MHz crystal. There's no reason I can think of that it would get hot. \$\endgroup\$ Feb 15, 2017 at 21:00
  • 1
    \$\begingroup\$ In fact the only thing I can think is if there is a short or dead part somewhere else on the board which is causing excessive current draw (hence voltage drop of supply) and causing the board to heat up. \$\endgroup\$ Feb 15, 2017 at 21:03
  • \$\begingroup\$ @TomCarpenter All ICs stay cold though. It is only the crystal which gets hot. The programmer still shows no sign of life, LEDs do not light up. \$\endgroup\$
    – kassiopeia
    Feb 15, 2017 at 21:23
  • 1
    \$\begingroup\$ @kassiopeia type "6a000 hcj" into google. First result. \$\endgroup\$ Feb 16, 2017 at 10:32
3
\$\begingroup\$

enter image description here

The red marked section seems power section, trace the tracks and confirm it, if this is a power supply section check if it is out putting power, if not then fixing this section would make it work again

Update:

this search is listing lot of schematic similar to AVRISP mkII hope it might help

\$\endgroup\$
2
  • \$\begingroup\$ I have measured the voltage levels on these traces, it seems as if something was wrong with the power supply as you suspected. See my edit above. \$\endgroup\$
    – kassiopeia
    Feb 15, 2017 at 14:55
  • \$\begingroup\$ updated my answer with search link that list a lot of schematics of similar open solution boards \$\endgroup\$
    – Raj
    Feb 15, 2017 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.