Skip to main content
Topic: Program AVRs, EEPROMs w/ AVRDude and BP (Read 14294 times) previous topic - next topic

Re: Program AVRs, EEPROMs w/ AVRDude and BP

Reply #15
There is also an STK500v2 compatible AVR programmer for the Bus Pirate. It should work with AVRDUDE. I used it to program the card during development.

30khz is the slowest hardware SPI speed, but we can drop it further by using the raw3wire (software SPI) mode instead of the hardware mode. I'll also look at the datasheet to see if I can change the clock source to the HW module to get a lower speed.

While you're in the AVRDude code, do you think it would be possible to add HVP/fuse setting to the the Bus Pirate support in AVRDude? I designed a 13volt power supply adapter to program PICs, it also has a 6pin ISP header for AVR with full control of the RESET pin (13V/H/L).
Got a question? Please ask in the forum for the fastest answers.

Re: Program AVRs, EEPROMs w/ AVRDude and BP

Reply #16
I think I'll just use 1MHz+ for my projects, I don't think the Christmas Ornament will be modified very often :) And switching the BP fw just to program it makes little sense. Maybe the raw3wire method will work, I'll try to add this to the buspirate.c in avrdude when I have some more free time.

I will have a look at the HVSP/Fuse specification and if it does not differ much from the regular programming method I think it should be fairly easy to add it.

It's not really the right thread for this but I am also going to work on bringing Texas Instruments support to BP unless it's already done somewhere :)? The docs say they can be programmed using a simple two-wire interface, just gotta get some more detailed information.

Re: Program AVRs, EEPROMs w/ AVRDude and BP

Reply #17
MSP430 (TI?) support would be great. There's a project out there called GoodFET that has an MSP439 programming script, maybe that would give some insight.
Got a question? Please ask in the forum for the fastest answers.

Re: Program AVRs, EEPROMs w/ AVRDude and BP

Reply #18
MSP430 and CC1111fxx is what I need, but as I already have a MSP430 programmer and I need to work with CC1111fxx this will be my primary target. Maybe they share programming interface, I will have a look.

Re: Program AVRs, EEPROMs w/ AVRDude and BP

Reply #19
[quote author="ian"]
While you're in the AVRDude code, do you think it would be possible to add HVP/fuse setting to the the Bus Pirate support in AVRDude? I designed a 13volt power supply adapter to program PICs, it also has a 6pin ISP header for AVR with full control of the RESET pin (13V/H/L).
[/quote]

AVRdude/BP can already set fuses. What exactly are you after here?

Re: Program AVRs, EEPROMs w/ AVRDude and BP

Reply #20
I guess it's the high voltage part that's important as it lets you use an extra pin on the smallest AVRs like attiny13, 25, etc

Re: Program AVRs, EEPROMs w/ AVRDude and BP

Reply #21
Yeah, I thought there were some fuses that could only be set with a 13volt supply on the reset pin (HVP?). Such as enabling disabling the bootloader maybe.

This was my original inspiration:
http://mightyohm.com/blog/2008/09/ardui ... rogrammer/

They only mention the RESET pin in the article, maybe that's the only HVP set fuse? I'm not entirely sure, but as I already designed the 13volt booster board for the PIC, I thought why not add a ISP connector as well.
Got a question? Please ask in the forum for the fastest answers.

Re: Program AVRs, EEPROMs w/ AVRDude and BP

Reply #22
I guess since you're talking about MSP430 support, there's also Spy Bi-Wire too, which is just 2-Wire JTAG.