Attiny programming

Bus Pirate support for AVRDude AVR programmer

Attiny programming

Postby Bertho » Thu Dec 27, 2012 7:05 pm

Hi all,

Just to report a funny success story. I was trying to program an ATTiny13 with fairly heavy loaded pins (charliplex on all). The result:
- avrispmkII --> fail
- avr dragon --> fail
- buspirate --> success

This is done with the buspirate as prize from the 7400 logic competition :-)

Unfortunately, the buspirate does not do HV programming, so I can't actually use the reset pin (yet). This is a BP v3.6; is there a way to hack the BP so it can do HV programming? I read something that there were not enough pins on BP v3?

--
Greetings Bertho
User avatar
Bertho
Sr. Member
Sr. Member
 
Posts: 345
Joined: Mon Sep 19, 2011 4:34 pm
Location: Somewhere in the vicinity of Betelgeuse

Re: Attiny programming

Postby arakis » Fri Dec 28, 2012 2:12 am

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).

Ian's response from a similar thread...
best regards FIlip.
arakis
Crew
Crew
 
Posts: 1044
Joined: Wed May 25, 2011 11:15 am
Location: Belgrade, Serbia

Re: Attiny programming

Postby Sleepwalker3 » Fri Dec 28, 2012 8:04 am

Could you not temporarily unload the pins for programming?
User avatar
Sleepwalker3
Hero Member
Hero Member
 
Posts: 539
Joined: Mon Jan 16, 2012 4:12 am
Location: Down Under

Re: Attiny programming

Postby Bertho » Fri Dec 28, 2012 1:29 pm

Sleepwalker3 wrote:Could you not temporarily unload the pins for programming?


Ehm, no. It is an SOIC SMD part that is in a fixed all SMD setup. The pins are loaded by charliplex leds (and a small series resistor). The reset line is not part of the charliplex (intentionally) and there is a zener+resistor on the reset line to keep it from frying the attached LED while HV programming.

What I can do is wait with the reset-disable-fuse until I'm satisfied (hopefully). That way I can use the SPI programming with the BP.

I've adapted my program-board (with pogopins) to include a buffer on the lines. I'll try that with the dragon. HV programming is, for this first test-board, a bit awkward because I forgot to export one cpu-pin to the pogopins. A handheld wire will have to do until the board is redesigned.
User avatar
Bertho
Sr. Member
Sr. Member
 
Posts: 345
Joined: Mon Sep 19, 2011 4:34 pm
Location: Somewhere in the vicinity of Betelgeuse

Re: Attiny programming

Postby leonerd » Fri Sep 19, 2014 2:53 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.


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, such as the ATtiny13 in question here. 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.
leonerd
Newbie
Newbie
 
Posts: 10
Joined: Fri Sep 19, 2014 2:31 pm

Re: Attiny programming

Postby leonerd » Sat Oct 25, 2014 7:10 am

leonerd
Newbie
Newbie
 
Posts: 10
Joined: Fri Sep 19, 2014 2:31 pm


Return to AVRDude