Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => AVRDude => Topic started by: joseph on September 24, 2012, 06:54:24 am

Title: high voltage programming adapter
Post by: joseph on September 24, 2012, 06:54:24 am
Is the high voltage programming adapter useful with the current Bus Pirate/AVRDude code? Or, is there any other way to currently use the Bus Pirate with the High Voltage adapter to do high voltage AVR programming?
Thanks!
Joseph
Title: Re: high voltage programming adapter
Post by: ian on September 24, 2012, 02:43:41 pm
There aren't really enough pins on the v3 Bus Pirate to do the AVR high voltage programming mode. The PIC modes work with some chips, but it is rough still.

BP v4 could do programming, but there is no production hardware (or software) to do that yet (nor is it planned, depends on the community doing it).
Title: Re: high voltage programming adapter
Post by: leonerd on September 19, 2014, 09:55:58 pm
(crossposting from the other thread I wrote this on):

Quote
There aren't really enough pins on the v3 Bus Pirate to do the AVR high voltage programming mode.

This is true for AVR HVPP (High Voltage Parallel Programming) mode, but isn't really true of the much lower pin-count HVSP (Serial Programming) mode used by the 8- and 14-pin ATtiny devices. HVSP needs only 4 GPIO pins; 3 outputs from BP to chip (SDI, SII, SCI), 1 input from chip to BP (SDO). These map very closely to the 4 standard SPI pins. Additionally, another IO pin (likely AUX) could be used to control the +12V on to the ATtiny's RESET line.

I don't believe there exists current software to perform a burn in this manner, but building up a circuit to attach the BP and then running something custom over it in BBIO mode, perhaps using avrdude or similar, ought to be easily possible.

In fact given as I'm looking for a way to use all 12pins of a 14-pin ATtiny84, I may build myself up just such a device/program... I'll post a followup here if I do.
Title: Re: high voltage programming adapter
Post by: leonerd on October 25, 2014, 02:09:27 pm
I am happy to report a full success using the Bus Pirate to program HVSP on the 8- and 14-pin ATtiny chips. This requires a small additional bit of hardware, to use the AUX pin to control a +12V supply to the 'tiny RESET line, and the 4 GPIO pins attached to the 4 HVSP control lines. It's not the fastest way to program the chip (given as HVSP is custom 11-bit serial, requires 22 bytes of Bus Pirate control per byte written to the chip), but it works well enough to reset fuses and the like.

More detail as well as code to implement it can be found at:

  https://metacpan.org/pod/Device::BusPir ... ::AVR_HVSP (https://metacpan.org/pod/Device::BusPirate::Chip::AVR_HVSP)