Sunday, November 22, 2015

Badge as USBASP verry badly explained

Make your BSides Badge into a USBASP Programmer

Step 1. Download Github repo
https://github.com/soynerdito/BadgeUsbasp
Important stuff is:
Flash compiled file: https://github.com/soynerdito/BadgeUsbasp/raw/master/main.hex
MakeFile for easier flash: https://github.com/soynerdito/BadgeUsbasp/blob/master/Makefile

Step 2: Get your badge ready
Connect your Badge into the PC usb and press the reset button.
On Linux you should see something like (with lsusb):
"...ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb"
On Windows you may need to install some drivers
If on windows 10 you may need signed driver. Use Adafruit's drivers,
https://learn.adafruit.com/introducing-pro-trinket/downloads
On mac, you are on your own but it should just work.

Step 3: Burn firmware
If using Makefile go ahead and just type
make flash
If you want to just flash the code use avrdude straight
avrdude -c usbasp -p atmega328p -P /dev/usb/ttyUSB0 -U flash:w:main.hex

avrdude port may change with different OS. Hope this helps, latter I hope to make this more organized.

USBASP pin out to connect another board, use same pins as Arduino as ISP
https://www.arduino.cc/en/Tutorial/ArduinoISP

No comments:

Post a Comment