Out of Range error when burning

Hello everyone,

I bought a couple of Nano clones a while back and they work, but with the old bootloader. I decided to attempt to update them a week ago, and have not had any success so far.

Originally I simply followed the instructions on this Youtube video: Youtube Video . This results in the following response:

avrdude warning: attempt 1 of 10: not in sync: resp=0x15
avrdude warning: attempt 2 of 10: not in sync: resp=0x15

avrdude error: protocol expects OK byte 0x10 but got 0x14

avrdude error: protocol expects sync byte 0x14 but got 0x01
avrdude error: protocol expects sync byte 0x14 but got 0x10
avrdude error: initialization failed, rc=-1
        - double check the connections and try again
        - use -B to set lower ISP clock frequency, e.g. -B 125kHz
        - use -F to override this check

avrdude error: unknown response=0x12
Error while burning bootloader.

I then read that I need to connect a 10uF capacitor between reset and ground on the programmer board. I did this and it now results in the following error:

 ***failed;
avrdude warning: ignoring mismatch in unused bits of lock
        (device 0xff != input 0x3f); to prevent this warning set
        unused bits to 1 when writing (double check with datasheet)
avrdude error: address 0x8010 out of range at line 33 of /usr/share/arduino/hardware/arduino/avr/bootloaders/optiboot/optiboot_atmega328.hex
avrdude error: read from file /usr/share/arduino/hardware/arduino/avr/bootloaders/optiboot/optiboot_atmega328.hex failed
Error while burning bootloader.

I then read that you should select the Arduino Uno board when doing this, but I still get the same error. Additionally I read another forum post that recommended downloading the latest Optiboot bootloader from Github, however this post is 4 years old and I have a hard time imagining that the software is that outdated.

My specifications are as follows:
Arduino IDE: 1.8.19
Chips on nanos: ATMega328PU
Arduino AVR Boards Version: 1.8.6

Setup:

Chips on both nanos:

Any help would be greatly appreciated.

that chip may be atmega168

Are you sure about this? The text is physically printed on the chip (Not some dodgy Dymo label). When I select Arduino Nano > ATMega168 and burn bootloader I get the following response:

avrdude error: expected signature for ATmega168 is 1E 94 06
        double check chip or use -F to override this check
Error while burning bootloader.

When attempting to burn the bootloader with Nano > ATMega328p [AKA new bootloader], the following error occurs:

 ***failed;
avrdude warning: ignoring mismatch in unused bits of lock
        (device 0xff != input 0x3f); to prevent this warning set
        unused bits to 1 when writing (double check with datasheet)
avrdude error: address 0x8010 out of range at line 33 of /usr/share/arduino/hardware/arduino/avr/bootloaders/optiboot/optiboot_atmega328.hex
avrdude error: read from file /usr/share/arduino/hardware/arduino/avr/bootloaders/optiboot/optiboot_atmega328.hex failed
Error while burning bootloader.

When attempting to burn bootloader with Nano > ATMega328p (Old Bootloader), the following error occurs:

 ***failed;
avrdude warning: ignoring mismatch in unused bits of lock
        (device 0xff != input 0x3f); to prevent this warning set
        unused bits to 1 when writing (double check with datasheet)
avrdude error: address 0x8010 out of range at line 33 of /usr/share/arduino/hardware/arduino/avr/bootloaders/optiboot/optiboot_atmega328.hex
avrdude error: read from file /usr/share/arduino/hardware/arduino/avr/bootloaders/optiboot/optiboot_atmega328.hex failed
Error while burning bootloader.

Then when attempting to upload code (With the capacitor now removed), the following error occurs with Nano > ATMega168 selected:

Sketch uses 1848 bytes (12%) of program storage space. Maximum is 14336 bytes.
Global variables use 188 bytes (18%) of dynamic memory, leaving 836 bytes for local variables. Maximum is 1024 bytes.
avrdude warning: attempt 1 of 10: not in sync: resp=0x15
avrdude error: programmer is not responding
avrdude warning: attempt 2 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 3 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 4 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 5 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 6 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 7 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 8 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 9 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 10 of 10: not in sync: resp=0x00
avrdude error: unable to open programmer arduino on port /dev/ttyUSB0
avrdude error: unable to open programmer arduino on port /dev/ttyUSB0

When attempting to upload code with Nano > ATMega328 [AKA new bootloader], the following error occurs:

Build options changed, rebuilding all
Sketch uses 1848 bytes (6%) of program storage space. Maximum is 30720 bytes.
Global variables use 188 bytes (9%) of dynamic memory, leaving 1860 bytes for local variables. Maximum is 2048 bytes.
avrdude error: programmer is not responding
avrdude warning: attempt 1 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 2 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 3 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 4 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 5 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 6 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 7 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 8 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 9 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 10 of 10: not in sync: resp=0x00
avrdude error: unable to open programmer arduino on port /dev/ttyUSB0
avrdude error: unable to open programmer arduino on port /dev/ttyUSB0

But when uploading code with Nano > ATMega328p (Old Bootloader) selected, it uploads correctly.

real name of chip "Atmel ATmega328P-AU" not "U-TH"

Thanks, I overlooked that. Looks like there's something different with these Thai knockoff versions. I'll probably dig deeper a little later down the track, but because it's compiling and running code without issue for now, I'm going to move onto my other projects.

Does it makes any difference for compiling and uploading? As far I know, these versions are fully compatible one with other.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.