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

From Luky-Wiki
Jump to: navigation, search
(Created page with "=== Read fuses from Atmel mcpu === Following command read Low/High/Extended fuse configuration from mcpu + lock configuration: <pre> avrdude -p m328p -c dragon_isp -P usb -U l...")
 
("Program" fuses)
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 -V -U lfuse:w:0xff:m -U hfuse:w:0xde:m -U efuse:w:0x05:m -U lock:w:0x0f: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 "0".''

Revision as of 20:52, 24 March 2014

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 -V -U lfuse:w:0xff:m -U hfuse:w:0xde:m -U efuse:w:0x05:m -U lock:w:0x0f: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 "0".