User Tools

Site Tools


flash_the_atmega

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
Last revisionBoth sides next revision
flash_the_atmega [2013/10/20 10:58] – [Three different storage areas] breaker27flash_the_atmega [2013/11/17 14:06] – [Strange avrdude error messages] breaker27
Line 34: Line 34:
  
 (replace ?? by the hex value for the needed fuse settings and use "lfuse", "hfuse" or "efuse" accordingly). (replace ?? by the hex value for the needed fuse settings and use "lfuse", "hfuse" or "efuse" accordingly).
 +
 +===== Strange avrdude error messages =====
 +
 +Some fuses only use a part of their bits. If you set such a fuse, avrdude may complain at verification that it read out another value than it wrote.
 +
 +Writing the EFuse of the ATMega168 or 328 returns a value of only the last 3 bits (upper 5 unused), so a value of xxxxxyyy is read out as 00000yyy. Example:
 +
 +<code>
 +avrdude: verification error, first mismatch at byte 0x0000
 +         0xfc != 0x04
 +avrdude: verification error; content mismatch
 +</code>
 +
 +Don't worry. The warning is only returned because avrdude does not know that the upper 5 bits are always 1 (as per spec).
  
 ====== Flashing the firmware / eeprom ====== ====== Flashing the firmware / eeprom ======
flash_the_atmega.txt · Last modified: 2023/03/01 19:40 by breaker27