discostuboogaloo / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

Incorrect EFUSE for ATMega168 #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The Makefile & boards.txt specify EFUSE=02 for atmega168 devices - this would 
select a bootloader of 512 *words*. The correct setting should be EFUSE=04 
according to tables 26-9 & 27-5 in the datasheet 
(http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf).

EFUSE is composed of the following flags:
7..3 -
2     BOOTSZ1
1     BOOTSZ0
0     BOOTRST

So a setting of 256 words (BOOTSZ1=1, BOOTSZ0=0) give the 0x04 value. Note: 
should actually be 0xFC, but removed unused flags due to avrdude bug.

Original issue reported on code.google.com by peteh...@gmail.com on 1 Oct 2010 at 12:36

GoogleCodeExporter commented 8 years ago
Indeed, I also mention it in 
http://code.google.com/p/optiboot/issues/detail?id=3#c7

Original comment by superkoe...@gmail.com on 2 Oct 2010 at 12:20

GoogleCodeExporter commented 8 years ago

Original comment by cathed...@gmail.com on 12 Oct 2010 at 7:09

GoogleCodeExporter commented 8 years ago
Fixed in source repo

Original comment by cathed...@gmail.com on 12 Oct 2010 at 8:21