Kann einen Nano nicht neu programieren

Hallo ich kann keinen Code auf den Nano übertragen. Offensichtlich läuft aber noch ein Code den ich vor einiger Zeit zum testen aufgespielt habe. Im Serialmonitor sehe ich die ausgaben von dem Testcode Beispiele SD datalogger.

FQBN: arduino:avr:nano:cpu=atmega328old
Verwende das Board 'nano' von der Plattform im Ordner: /home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6
Verwendung des Kerns 'arduino' von Platform im Ordner: /home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6

Verwendete Bibliotheken erkennen ...
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/sketch/Blink_copy_20251230174720.ino.cpp -o /dev/null
Funktionsprototypen werden generiert ...
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/sketch/Blink_copy_20251230174720.ino.cpp -o /tmp/183046171/sketch_merged.cpp
/home/walter/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/183046171/sketch_merged.cpp

Sketch wird kompiliert ...
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/sketch/Blink_copy_20251230174720.ino.cpp -o /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/sketch/Blink_copy_20251230174720.ino.cpp.o
Bibliotheken werden kompiliert ...
Kern wird kompiliert ...
Verwendung des vorkompilierten Kerns: /home/walter/.cache/arduino/cores/arduino_avr_nano_cpu_atmega328old_c6c2f44a47f67d239a74dc784c8334a0/core.a
Alles zusammenlinken...
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/Blink_copy_20251230174720.ino.elf /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/sketch/Blink_copy_20251230174720.ino.cpp.o /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/../../cores/arduino_avr_nano_cpu_atmega328old_c6c2f44a47f67d239a74dc784c8334a0/core.a -L/home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A -lm
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/Blink_copy_20251230174720.ino.elf /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/Blink_copy_20251230174720.ino.eep
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -R .eeprom /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/Blink_copy_20251230174720.ino.elf /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/Blink_copy_20251230174720.ino.hex
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-size -A /home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/Blink_copy_20251230174720.ino.elf
Der Sketch verwendet 924 Bytes (3%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
"/home/walter/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/home/walter/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-P/dev/ttyUSB0" -b57600 -D "-Uflash:w:/home/walter/.cache/arduino/sketches/6DBE341A988096B4436D46C5487BF65A/Blink_copy_20251230174720.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 "/home/walter/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/home/walter/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe0

avrdude done.  Thank you.

Fehlgeschlagenes Hochladen: Hochladefehler: exit status 1

Was ist das für ein Kommunikations-Chip da drauf?
Normalerweise heisst die Schnittstelle /dev/ACMx bei einem CH34x Chip. Bei einem CP21xx wäre /dev/ttyUSBx richtig, aber bei einem Nano hab ich das noch nicht gehabt.

Wenn der NANO richtig eingestellt ist (OldBootlader??, 168??) und es nach abstecken und neu anstecken nicht geht, hab ich auch erstmal keine Idee...

Das ganze passiert mit Ubuntu und dort ist die Schnittstelle so benannt
Old Boatloader hab ich bereits probiert ohne Erfolg .Ein Zweiter Nano lässt sich bespielen..

Zeig mal die Ausgabe, wenn es funktioniert.

FQBN: arduino:avr:nano
Verwende das Board 'nano' von der Plattform im Ordner: /home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6
Verwendung des Kerns 'arduino' von Platform im Ordner: /home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6

Verwendete Bibliotheken erkennen ...
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/sketch/Blink.ino.cpp -o /dev/null
Funktionsprototypen werden generiert ...
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/sketch/Blink.ino.cpp -o /tmp/3353668315/sketch_merged.cpp
/home/walter/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/3353668315/sketch_merged.cpp

Sketch wird kompiliert ...
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/walter/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/sketch/Blink.ino.cpp -o /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/sketch/Blink.ino.cpp.o
Bibliotheken werden kompiliert ...
Kern wird kompiliert ...
Verwendung des vorkompilierten Kerns: /home/walter/.cache/arduino/cores/arduino_avr_nano_cpu_atmega328_c6c2f44a47f67d239a74dc784c8334a0/core.a
Alles zusammenlinken...
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/Blink.ino.elf /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/sketch/Blink.ino.cpp.o /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/../../cores/arduino_avr_nano_cpu_atmega328_c6c2f44a47f67d239a74dc784c8334a0/core.a -L/home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7 -lm
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/Blink.ino.elf /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/Blink.ino.eep
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -R .eeprom /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/Blink.ino.elf /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/Blink.ino.hex
/home/walter/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-size -A /home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/Blink.ino.elf
Der Sketch verwendet 932 Bytes (3%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
"/home/walter/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/home/walter/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-P/dev/ttyUSB0" -b115200 -D "-Uflash:w:/home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/Blink.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 "/home/walter/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/home/walter/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         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 "/home/walter/.cache/arduino/sketches/0755EEE7D6B8D1FADBEFB0170488C3E7/Blink.ino.hex"
avrdude: writing flash (932 bytes):

Writing | ################################################## | 100% 0.17s

avrdude: 932 bytes of flash written

avrdude done.  Thank you.

Eine Fehlermeldung gibt es nicht !

Das ist ein Nano mit Regel-Bootloader

Das ist ein Nano mit OLD-Bootloader

Jetzt mach mit der Info, was Du kannst.

Ich habe doch versucht mit Old Bootloader verstehe den Hinweis nicht ??

Ist doch auch oben. Übersetzt:
Die Benutzerkonfigurationsdatei existiert nicht oder ist keine reguläre Datei, wird übersprungen.
Habe auch einen Nano was macht das gleiche = wird erkannt, antwortet auf USB Anfrage, hochladen geht nicht, nurrrrrr den habe ich mit Überlastung auf der 3.3V in jenseits geschickt.
Der Teil vom CH340 was ist zuständig für Kommunikation mit der MCU ist defekt.

Kann es sein das ein Program welches auf dem Nano läuft und die SPI Schnittstelle nutzt den Programmupload verhindert ? Ich habe damals das Beispiel für die SDcard aufgespielt. SD Datalogger . Es blinken immer die TX und L Led.

Im dem Beispiel ist doch im Setup und in der loop Unterbrechung wen SD Karte fehlt, gut wen du hast SD begin umgebaut, wird die Setup beendet, und man ist in der Loop.
Reset drücken, bei upload loslassen.

TX blinkt, weil der PC etwas schickt, um den NANO zu programmieren. Es müßte auch das RX LED blinken.

Das L-LED ist mit D13 verbunden. Dieses blinkt bei Datentransfer über SPI.

Hast Du etwas an den Pins D0 bzw D1 angeschlossen?

Grüße Uwe

Upload hat doch super geklappt!
Verstehe dein Problem nicht ,,,

Das ist die Ausgabe eines zweiten/anderen Nanos.

Bin nach den Hinweisen von @uwefed und @fony noch mal ans Werk gegangen.
Starten ohne SD karte kam wie erwartet der Fehler.
Übertragen des Blinksketch nicht möglich.
An D0 gab es eine Verbindung die sollte dort nicht sein.
Die Verbindung entfernt nun kann ich den Blinksketch übertragen.

Wünsche allen Forumsmitgliedern einen guten Rutsch und ein erfolgreiches 2026

Gruß
Walter

Schön daß wir helfen konnten.
Allen ein Gutes 2026.