[2.0.2] IDE not detecting bootloader problem. 1.8.19 does

Hi,
I'm having a strange problem with an Uno clone with an SD card. IDE 2 uploads the blink sketch fine. Board's serial leds are blinking but the board have not been updated since the blink interval doesn't change.

I tried this in 1.8.19 and there I get an error message which seems to indicate a bootloader problem.

IDE 1.8 reports an error

Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"

Sketch uses 922 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

C:\Users\wezz\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\wezz\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM10 -b115200 -D -Uflash:w:C:\Users\wezz\AppData\Local\Temp\arduino_build_848852/Testing_zone.ino.hex:i 

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\wezz\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM10
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack

           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------

           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions


Reading | ################################################## | 100% 0.00s


avrdude: Device signature = 0x1e950f (probably m328p)

avrdude: reading input file "C:\Users\wezz\AppData\Local\Temp\arduino_build_848852/Testing_zone.ino.hex"

avrdude: writing flash (922 bytes):


Writing | ################################################## | 100% 0.13s


avrdude: 922 bytes of flash written

avrdude: verifying flash memory against C:\Users\wezz\AppData\Local\Temp\arduino_build_848852/Testing_zone.ino.hex:

avrdude: load data flash data from input file C:\Users\wezz\AppData\Local\Temp\arduino_build_848852/Testing_zone.ino.hex:

avrdude: input file C:\Users\wezz\AppData\Local\Temp\arduino_build_848852/Testing_zone.ino.hex contains 922 bytes

avrdude: reading on-chip flash data:



Reading | #####################################An error occurred while uploading the sketch

############# | 100% 0.13s



avrdude: verifying ...

avrdude: verification error, first mismatch at byte 0x0042

         0x13 != 0x12

avrdude: verification error; content mismatch



avrdude done.  Thank you.

IDE 2 reports a successful upload

Sketch uses 922 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\wezz\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\wezz\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM10" -b115200 -D "-Uflash:w:C:\Users\wezz\AppData\Local\Temp\arduino-sketch-298AED0EF8461EE7075A79F63C31B0D9/Testing_zone.ino.hex:i"

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\wezz\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM10
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\wezz\AppData\Local\Temp\arduino-sketch-298AED0EF8461EE7075A79F63C31B0D9/Testing_zone.ino.hex"
avrdude: writing flash (922 bytes):

Writing | ################################################## | 100% 0.13s

avrdude: 922 bytes of flash written

avrdude done.  Thank you.

Looks like IDE 2 is not preforming a verify operation.
Do you have the latest version of IDE 2?

I don't seem to find the nightly builds so I can't try with the latest, but there aren't many commits since 2.0.2.

EDIT: Oh wait now I found them!

EDIT 2: Yeah same thing happens with nightly-20221120

avrdude: 922 bytes of flash written

avrdude done.  Thank you.

Has the UNO clone worked properly in the past, or is this the first time you are using it? If it is new there might be a hardware problem, or a problem with the bootloader (no telling what version of the bootloader a clone might have).

I haven't used it much. Only used it to update the bootloader for an older Nano board. Then I just uploaded the blink sketch to it to clear the bootloader burning program. That was last winter using IDE 2 rc2 or something. Hope that didn't brick it. Blink sketch is working fine though :sweat_smile: but I want to have other uses for it other than a visual second counter

In IDE 2, there is an option in preferences for "Verify code after upload", see if that is selected.

See there, now it also gives an error. Thanks you! No problem with IDE 2 after all it seems

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0042
         0x13 != 0x12
avrdude: verification error; content mismatch

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

Guess I just need to figure out what to do with this board now

EDIT: Others have had similar problems with their Unos but fixed it by reburning the bootloader. Will that clear out the possibility to use the onboard SD I wonder?

Could try re-burning the bootloader to the board, hopefully the on-board SD card hardware will not interfere with that.

Wouldn't think it would interfere with being able to use the SD card, that is usually just an SPI interface with 5V to 3.3V buffers.

Yeah you are correct:
https://www.elecrow.com/wiki/index.php?title=Crowduino_Uno-SD

Then I dare to try re-burning the bootloader.

EDIT: Bootloader burnt and now the Uno is working again :+1: