Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:optiboot [2021/09/13 04:38] darrontools:optiboot [2024/07/10 12:31] (current) – external edit 127.0.0.1
Line 4: Line 4:
  
 === Build === === Build ===
-==Get firmware version== 
- 
-<code> 
-git log -n 1 --pretty=format:%H%n 
-0dd4cedfbd6669d47752707486d3625a911bdb12 
-</code> 
- 
  
 ==Compile all firmware== ==Compile all firmware==
Line 19: Line 12:
 ./makeall.arduino.sh ./makeall.arduino.sh
 </code> </code>
 +
 +==Get firmware version==
 +
 +<code>
 +git log -n 1 --pretty=format:%H%n
 +0dd4cedfbd6669d47752707486d3625a911bdb12
 +</code>
 +
  
 ==List all firmware== ==List all firmware==
Line 67: Line 68:
 ===Download=== ===Download===
  
-[[https://wiki.kewl.org/downloads/BL/optiboot_atmega328.hex|optiboot_atmega328.hex]]+{{downloads:BL:optiboot_atmega328.hex|optiboot_atmega328.hex}}
  
-[[https://wiki.kewl.org/downloads/BL/optiboot_atmega328_pro_8MHz.hex|optiboot_atmega328_pro_8MHz.hex]]+{{downloads:BL:optiboot_atmega328_pro_8MHz.hex|optiboot_atmega328_pro_8MHz.hex}}
  
 === Install === === Install ===
Line 80: Line 81:
 <code> <code>
 avrdude -V -B 5 -c usbasp -p ATMEGA328P -e -u -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m avrdude -V -B 5 -c usbasp -p ATMEGA328P -e -u -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m
-avrdude    -B 5 -c usbasp -p ATMEGA328P -D -u -U flash:v:optiboot_atmega328_pro_8MHz.hex:+avrdude    -B 5 -c usbasp -p ATMEGA328P -D -u -U flash:w:optiboot_atmega328_pro_8MHz.hex:
-avrdude -V -B 5 -c usbasp -p ATMEGA328P -u -U lock:w:0x0F:m+avrdude    -B 5 -c usbasp -p ATMEGA328P -D -u -U lock:w:0x2F:m
 </code> </code>
  
Line 92: Line 93:
 avrdude -V -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p ATMEGA328P -e -u -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m avrdude -V -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p ATMEGA328P -e -u -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m
 avrdude    -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p ATMEGA328P -D -u -U flash:w:optiboot_atmega328.hex:i avrdude    -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p ATMEGA328P -D -u -U flash:w:optiboot_atmega328.hex:i
-avrdude -V -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p ATMEGA328P -u -U lock:w:0x0F:m+avrdude    -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p ATMEGA328P -D -u -U lock:w:0x2F:m
 </code> </code>
  
Line 112: Line 113:
 avrdude done.  Thank you. avrdude done.  Thank you.
 </code> </code>
 +
 +===Resources===
 +
 +https://www.engbedded.com/fusecalc/
 +
 +https://www.engbedded.com/conffuse/
 +