Had some old Nano clones with the 'old' bootloader that I wanted to upgrade. All went well (using Arduino as ISP and MiniCore) with the first three - but hit a wall on the fourth. Wondering if I did something wrong - or one of my attempts 'bricked' the mcu.
Initial Nano boards had an Atmega328P chip. As all board outwardly looked the same - I assumed the fourth was the same. Tried to force avrdude (-F) update to ignore signature mismatch - after which I was unable to load the blink example.
Looking at avrdude reported signature (and chip via microscope) found that the fourth Nano has an Atmega328PB chip.
Redid the bootloader update process (Arduino as ISP and MiniCore with 328PB selected). Avrdude reported success (see below log) - however my attempts to load the blink sketch failed with synch failures. I did check both 115200 and 57600 baud rates (just in case) but no joy!
Any suggestions as to how I might recover from my 'over confidence' - or should I just consider this as a learning experience and scrap this Nano?
Thanks in advance,
Alex
==================== avedude log of 4th Nano bootloader load ==========
"C:\Users\Admin\AppData\Local\Arduino15\packages\MiniCore\tools\avrdude\8.0-arduino.1/bin/avrdude" "-CC:\Users\Admin\AppData\Local\Arduino15\packages\MiniCore\tools\avrdude\8.0-arduino.1/etc/avrdude.conf" -v -patmega328pb -cstk500v1 -PCOM15 -b19200 -e -Ulock:w:0xff:m -Uefuse:w:0b11110101:m -Uhfuse:w:0xd7:m -Ulfuse:w:0b11111111:m
Avrdude version 8.0-arduino.1
Copyright see avrdude/AUTHORS at main · avrdudes/avrdude · GitHub
System wide configuration file is C:\Users\Admin\AppData\Local\Arduino15\packages\MiniCore\tools\avrdude\8.0-arduino.1\etc\avrdude.conf
Using port : COM15
Using programmer : stk500v1
Setting baud rate : 19200
AVR part : ATmega328PB
Programming modes : SPM, ISP, HVPP, debugWIRE
Programmer type : STK500
Description : Atmel STK500 v1
HW Version : 2
FW Version : 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.0 us
XTAL frequency : 7.372800 MHz
AVR device initialized and ready to accept instructions
Device signature = 1E 95 16 (ATmega328PB)
Erased chip
Processing -U lock:w:0xff:m
Reading 1 byte for lock from input file 0xff
in 1 section [0, 0]
Writing 1 byte (0xFF) to lock, 1 byte written, 1 verified
Processing -U efuse:w:0b11110101:m
Reading 1 byte for efuse from input file 0b11110101
in 1 section [0, 0]
Writing 1 byte (0xF5) to efuse, 1 byte written, 1 verified
Processing -U hfuse:w:0xd7:m
Reading 1 byte for hfuse from input file 0xd7
in 1 section [0, 0]
Writing 1 byte (0xD7) to hfuse, 1 byte written, 1 verified
Processing -U lfuse:w:0b11111111:m
Reading 1 byte for lfuse from input file 0b11111111
in 1 section [0, 0]
Writing 1 byte (0xFF) to lfuse, 1 byte written, 1 verified
Avrdude done. Thank you.
"C:\Users\Admin\AppData\Local\Arduino15\packages\MiniCore\tools\avrdude\8.0-arduino.1/bin/avrdude" "-CC:\Users\Admin\AppData\Local\Arduino15\packages\MiniCore\tools\avrdude\8.0-arduino.1/etc/avrdude.conf" -v -patmega328pb -cstk500v1 -PCOM15 -b19200 "-Uflash:w:C:\Users\Admin\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\3.0.3/bootloaders/urboot/atmega328pb/watchdog_1_s/autobaud/uart0_rxd0_txd1/led+b5/urboot_atmega328pb_pr_ee_ce.hex:i" -Ulock:w:0xff:m
Avrdude version 8.0-arduino.1
Copyright see avrdude/AUTHORS at main · avrdudes/avrdude · GitHub
System wide configuration file is C:\Users\Admin\AppData\Local\Arduino15\packages\MiniCore\tools\avrdude\8.0-arduino.1\etc\avrdude.conf
Using port : COM15
Using programmer : stk500v1
Setting baud rate : 19200
AVR part : ATmega328PB
Programming modes : SPM, ISP, HVPP, debugWIRE
Programmer type : STK500
Description : Atmel STK500 v1
HW Version : 2
FW Version : 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.0 us
XTAL frequency : 7.372800 MHz
AVR device initialized and ready to accept instructions
Device signature = 1E 95 16 (ATmega328PB)
Auto-erasing chip as flash memory needs programming (-U flash:w:...)
specify the -D option to disable this feature
Erased chip
Processing -U flash:w:C:\Users\Admin\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\3.0.3/bootloaders/urboot/atmega328pb/watchdog_1_s/autobaud/uart0_rxd0_txd1/led+b5/urboot_atmega328pb_pr_ee_ce.hex:i
Reading 384 bytes for flash from input file urboot_atmega328pb_pr_ee_ce.hex
in 1 section [0x7e80, 0x7fff]: 3 pages and 0 pad bytes
Writing 384 bytes to flash
Writing | ################################################## | 100% 0.63s
Reading | ################################################## | 100% 0.34s
384 bytes of flash verified
Processing -U lock:w:0xff:m
Reading 1 byte for lock from input file 0xff
in 1 section [0, 0]
Writing 1 byte (0xFF) to lock, 1 byte written, 1 verified
Avrdude done. Thank you.