Programming device with HVPP

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

Does anyone succeed programming ATMega169 Butterfly devices with High-Voltage Parallel Programming interface ?

I was developing an application on Butterfly. I programmed the devices with AvrProg with RS232 interface. Then I killed them one by one on programming. One lock bit has been set by the bootloader and I each programming attempt results verification error expecting 0x940c.

The only chance left to recover the Butterflies I own is to program them with the STK500 in HVPP mode.

I modified the BF hardware (move two 0Ohm resistors). I built a pretty parallel cable described in the "AVR Butterfly Evaluation Kit" manual. I set the ISP freq as low as possible.

I always receive error when reading "signature bytes". "Entering Programming mode : FAILED!"

I probably missed something.

Any idea ?

Daniel

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

You don't have to resort to HVPP if you killed your lockbits. HVPP is really only necessary if you killed certain fuse bits. That is extremely unlikely since bootloaders cannot touch fuse bits. You're looking at "cosmic-ray" types of probabilities there.

In short, if the butterfly still boots, and if you're able to reset it using the reset button, then you shouldn't need to use HVPP. ISP is sufficient.

Lock bits can be cleared using the Chip Erase command, available using ISP. That would be my first suggestion in attempting to recover your Butterflies.

Note that ISP and HVPP do not use the same pinouts or cables.

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

Unless the SPIEN fuse has been unprogrammed why can't you recover with ISP rather than HV. To do that you could either use ISPROG10 from the STK500 or, if you have one working BF, load Buttload into it and use it to repogram the others - you'll find a LOT about the Butterfly 0x940C problem and its solution(s) if you search here! (just search on "940C")

Cliff

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

Well, I am trying to program with HVPP because I receive no correct answer when trying with ISP. I think some hard configuration has been changed.

But as you said, morrison, only fuse bits affects the way the device can be programmed. That's quite strange that I failed to enter in Programming Mode when using ISP.

Daniel