Difference between revisions of "Arduino: How to modify fuses"

From Luky-Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
Following command set Low/High/Extended fuse and lock configuration (default configuration for Arduino UNO board):
 
Following command set Low/High/Extended fuse and lock configuration (default configuration for Arduino UNO board):
 
<pre>
 
<pre>
avrdude -p m328p -c dragon_isp -P usb -V -U lfuse:w:0xff:m -U hfuse:w:0xde:m -U efuse:w:0x05:m -U lock:w:0x0f:m
+
avrdude -p m328p -c dragon_isp -P usb -u -U lfuse:w:0xff:m -U hfuse:w:0xde:m -U efuse:w:0x05:m -U lock:w:0x3f:m
 
</pre>
 
</pre>
''Note: fuses are stored in eeprom memory. Due to HW restriction clearing memory set each cell to 0xFF. Therefore "unprogrammed" fuse have value of "0".''
+
''Note: fuses are stored in eeprom memory. Due to HW restriction clearing memory set each cell to 0xFF. Therefore "unprogrammed" fuse have value of "1".''
=== Default fuses (Arduino UNO) ====
+
 
 +
=== Default fuses (Arduino UNO) ===
 
<pre>
 
<pre>
 
lfuse: 0xff
 
lfuse: 0xff
 
hfuse: 0xde
 
hfuse: 0xde
 
efuse: 0x05
 
efuse: 0x05
lock:  0x0f
+
lock:  0x3f
 
</pre>
 
</pre>

Latest revision as of 19:25, 2 August 2015

Read fuses from Atmel mcpu

Following command read Low/High/Extended fuse configuration from mcpu + lock configuration:

avrdude -p m328p -c dragon_isp -P usb -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h -U lock:r:-:h

"Program" fuses

Following command set Low/High/Extended fuse and lock configuration (default configuration for Arduino UNO board):

avrdude -p m328p -c dragon_isp -P usb -u -U lfuse:w:0xff:m -U hfuse:w:0xde:m -U efuse:w:0x05:m -U lock:w:0x3f:m

Note: fuses are stored in eeprom memory. Due to HW restriction clearing memory set each cell to 0xFF. Therefore "unprogrammed" fuse have value of "1".

Default fuses (Arduino UNO)

lfuse: 0xff
hfuse: 0xde
efuse: 0x05
lock:  0x3f