Skip to content

Instantly share code, notes, and snippets.

@keshuaixu
Created February 1, 2017 16:05
Show Gist options
  • Save keshuaixu/c31815636b8b5e27917800871cc2234e to your computer and use it in GitHub Desktop.
Save keshuaixu/c31815636b8b5e27917800871cc2234e to your computer and use it in GitHub Desktop.
Unbrick RBE3001 ATMega644p with incorrect fuse using STK500

Unbrick RBE3001 ATMega644p with incorrect fuse using STK500

Step 1

Connect the STK500 in high voltage programming mode. http://www.atmel.com/webdoc/stk500/stk500.PHVProgramming.html http://www.atmel.com/webdoc/stk500/stk500.highVoltageProgramming.html

Step 2

Use avrdude to write the fuse. Change /dev/ttyUSB0 to the actual serial port.

avrdude -p ATMega644p -c stk500 -P /dev/ttyUSB0 -v -U lfuse:w:0xcf:m -U hfuse:w:0xd1:m -U efuse:w:0xff:m

It should say

avrdude: verifying ...
avrdude: 1 bytes of efuse verified

avrdude: safemode: hfuse reads as D1
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (E:FF, H:D1, L:CF)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment