I am not sure what to do with this exactly but because Mastodon gives me enough space that I can go beyond just sharing a link to a new blog post, I want to make use of that.
The TL;DR is:
I wanted to learn how to program an #atmega328p using existing gear I had on hand rather than buying a programmer. It can be done with a #Tigard but I couldn't find all of the information I needed to do so in one convenient location, so this blog post is the information that I needed pulled together.
If you have a #woprsummit 0x01 badge and you're not sure how to program it, there might be some useful information in there for you. Maybe you can use it as a basis for figuring out how to do it with another device.
Maybe you've got a different #avr microcontroller but you're not sure how to program it.
The basic steps are:
- Set correct target board in #Arduino IDE
- Export compiled code from Arduino
- Wire Tigard JTAG header to target board’s ISP header according to the diagrams
- Select JTAG on Tigard mode switch
- Select desired voltage on Tigard
- Plug in Tigard via USB-C
- Set fuses -
avrdude -C +tigard.conf -c tigard -p atmega328p -U lfuse:w:0xFF:m -U hfuse:w:0xDA:m -U efuse:w:0x05:m
-> Note different fuses may be needed depending on device config - Upload code -
avrdude -C +tigard.conf -c tigard -p atmega328p -U flash:w:/path/to/firmware.ino.with_bootloader.standard.hex
There's also some bonus info in there about integrating the Tigard with Arduino IDE.
The Tigard was designed (at least in part) by @securelyfitz
I believe the WOPR Summit badge was designed by @dntlookbehindu and @kismetwireless .... at the very least they're the ones that were helping out on Discord with questions.
You can learn more about WOPR Summit here: https://www.woprsummit.org
#HardwareHacking
#HardwareHackers
#BadgeLife