Тема: Додавання в avrdude і avrdudeprog конфігурації контроллера ATmega328PB
Як з'ясувалось мій avrdude не знає такого контроллера, довелось трошки дописати йому конфіг. Так само в avrdudeprog, наразі всі фьюзи і сігнатура відповідають документації ATmega328PB.
В файл avrdude.conf після оцього блока
part parent "m328"
id = "m328p";
desc = "ATmega328P";
signature = 0x1e 0x95 0x0F;
ocdrev = 1;
;
слід додати такий блок:
part parent "m328"
id = "m328pb";
desc = "ATmega328PB";
signature = 0x1e 0x95 0x16;
ocdrev = 1;
;
В файл atmel.ini після блоку:
[ATmega328P]
;MCU type in avrdude
mcuavrdude=m328p
;Lock байт
lockbytebit7enabled=0
lockbytebit7name=NOT USED
lockbytebit7def=0
lockbytebit6enabled=0
lockbytebit6name=NOT USED
lockbytebit6def=0
lockbytebit5enabled=1
lockbytebit5name=BOOTLOCK12
lockbytebit5def=1
lockbytebit4enabled=1
lockbytebit4name=BOOTLOCK11
lockbytebit4def=1
lockbytebit3enabled=1
lockbytebit3name=BOOTLOCK02
lockbytebit3def=1
lockbytebit2enabled=1
lockbytebit2name=BOOTLOCK01
lockbytebit2def=1
lockbytebit1enabled=1
lockbytebit1name=LOCKBIT2
lockbytebit1def=1
lockbytebit0enabled=1
lockbytebit0name=LOCKBIT1
lockbytebit0def=1
;High байт
highbytebit7enabled=1
highbytebit7name=RSTDISBL
highbytebit7def=1
highbytebit6enabled=1
highbytebit6name=DWEN
highbytebit6def=1
highbytebit5enabled=0
highbytebit5name=SPIEN
highbytebit5def=0
highbytebit4enabled=1
highbytebit4name=WDTON
highbytebit4def=1
highbytebit3enabled=1
highbytebit3name=EESAVE
highbytebit3def=1
highbytebit2enabled=1
highbytebit2name=BOOTSZ1
highbytebit2def=0
highbytebit1enabled=1
highbytebit1name=BOOTSZ0
highbytebit1def=0
highbytebit0enabled=1
highbytebit0name=BOOTRST
highbytebit0def=1
;Low байт
lowbytebit7enabled=1
lowbytebit7name=CKDIV8
lowbytebit7def=0
lowbytebit6enabled=1
lowbytebit6name=CKOUT
lowbytebit6def=1
lowbytebit5enabled=1
lowbytebit5name=SUT1
lowbytebit5def=1
lowbytebit4enabled=1
lowbytebit4name=SUT0
lowbytebit4def=0
lowbytebit3enabled=1
lowbytebit3name=CKSEL3
lowbytebit3def=0
lowbytebit2enabled=1
lowbytebit2name=CKSEL2
lowbytebit2def=0
lowbytebit1enabled=1
lowbytebit1name=CKSEL1
lowbytebit1def=1
lowbytebit0enabled=1
lowbytebit0name=CKSEL0
lowbytebit0def=0
;Extended/Fuse байт
extendedbytebit7enabled=0
extendedbytebit7name=NOT USED
extendedbytebit7def=0
extendedbytebit6enabled=0
extendedbytebit6name=NOT USED
extendedbytebit6def=0
extendedbytebit5enabled=0
extendedbytebit5name=NOT USED
extendedbytebit5def=0
extendedbytebit4enabled=0
extendedbytebit4name=NOT USED
extendedbytebit4def=0
extendedbytebit3enabled=0
extendedbytebit3name=NOT USED
extendedbytebit3def=0
extendedbytebit2enabled=1
extendedbytebit2name=BODLEVEL2
extendedbytebit2def=1
extendedbytebit1enabled=1
extendedbytebit1name=BODLEVEL1
extendedbytebit1def=1
extendedbytebit0enabled=1
extendedbytebit0name=BODLEVEL0
extendedbytebit0def=1
слід додати такий блок:
[ATmega328PB]
;MCU type in avrdude
mcuavrdude=m328pb
;Lock байт
lockbytebit7enabled=0
lockbytebit7name=NOT USED
lockbytebit7def=0
lockbytebit6enabled=0
lockbytebit6name=NOT USED
lockbytebit6def=0
lockbytebit5enabled=1
lockbytebit5name=BLB12
lockbytebit5def=1
lockbytebit4enabled=1
lockbytebit4name=BLB11
lockbytebit4def=1
lockbytebit3enabled=1
lockbytebit3name=BLB02
lockbytebit3def=1
lockbytebit2enabled=1
lockbytebit2name=BLB01
lockbytebit2def=1
lockbytebit1enabled=1
lockbytebit1name=LB2
lockbytebit1def=1
lockbytebit0enabled=1
lockbytebit0name=LB1
lockbytebit0def=1
;High байт
highbytebit7enabled=1
highbytebit7name=RSTDISBL
highbytebit7def=1
highbytebit6enabled=1
highbytebit6name=DWEN
highbytebit6def=1
highbytebit5enabled=1
highbytebit5name=SPIEN
highbytebit5def=0
highbytebit4enabled=1
highbytebit4name=WDTON
highbytebit4def=1
highbytebit3enabled=1
highbytebit3name=EESAVE
highbytebit3def=1
highbytebit2enabled=1
highbytebit2name=BODLEVEL2
highbytebit2def=0
highbytebit1enabled=1
highbytebit1name=BODLEVEL1
highbytebit1def=0
highbytebit0enabled=1
highbytebit0name=BODLEVEL0
highbytebit0def=1
;Low байт
lowbytebit7enabled=1
lowbytebit7name=CKDIV8
lowbytebit7def=0
lowbytebit6enabled=1
lowbytebit6name=CKOUT
lowbytebit6def=1
lowbytebit5enabled=1
lowbytebit5name=SUT1
lowbytebit5def=1
lowbytebit4enabled=1
lowbytebit4name=SUT0
lowbytebit4def=0
lowbytebit3enabled=1
lowbytebit3name=CKSEL3
lowbytebit3def=0
lowbytebit2enabled=1
lowbytebit2name=CKSEL2
lowbytebit2def=0
lowbytebit1enabled=1
lowbytebit1name=CKSEL1
lowbytebit1def=1
lowbytebit0enabled=1
lowbytebit0name=CKSEL0
lowbytebit0def=0
;Extended/Fuse байт
extendedbytebit7enabled=0
extendedbytebit7name=NOT USED
extendedbytebit7def=0
extendedbytebit6enabled=0
extendedbytebit6name=NOT USED
extendedbytebit6def=0
extendedbytebit5enabled=0
extendedbytebit5name=NOT USED
extendedbytebit5def=0
extendedbytebit4enabled=0
extendedbytebit4name=NOT USED
extendedbytebit4def=0
extendedbytebit3enabled=1
extendedbytebit3name=CFD
extendedbytebit3def=0
extendedbytebit2enabled=1
extendedbytebit2name=BODLEVEL2
extendedbytebit2def=1
extendedbytebit1enabled=1
extendedbytebit1name=BODLEVEL1
extendedbytebit1def=1
extendedbytebit0enabled=1
extendedbytebit0name=BODLEVEL0
extendedbytebit0def=1