Zephir
February 14, 2022, 9:24am
1
Moin,
da ich bei meinem Projekt vom Uno auf eine Mega wechseln muss aufgrund der RAM Kapazität, habe ich mir einen Atmega2560 von AZDelivery gekauft:
Doch als ich diesen Controller das erste mal in Betrieb nehmen wollte, bekam ich auch prompt eine Meldung der Arduino IDE:
avrdude: verification error, first mismatch at byte 0x0096
0x74 != 0x75
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch
Nach einigem Suchen habe ich die gängigen Fehlerquellen ausgeschlossen indem ich die IDE neu gestartet habe, das USB-Kabel ausgewechselt habe, andere USB Buchse probiert, einen anderen Controller beschrieben habe usw.
Ich habe dann auch via Visual Studios probiert einen standard Sketch upzuloaden, doch bekomme einen ähnlichen Fehler:
> Executing task in folder Test MEGA: C:\Users\marvi\.platformio\penv\Scripts\platformio.exe run --target upload <
Processing ATmega2560 (platform: atmelavr; board: ATmega2560; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/ATmega2560.html
PLATFORM: Atmel AVR (3.2.0) > ATmega2560
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 256KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr-megacore 2.1.3
- tool-avrdude 1.60300.200527 (6.3.0)
- toolchain-atmelavr 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 9 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\ATmega2560\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.1% (used 9 bytes from 8192 bytes)
Flash: [ ] 0.2% (used 578 bytes from 261120 bytes)
Configuring upload protocol...
AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port...
Auto-detected: COM7
Uploading .pio\build\ATmega2560\firmware.hex
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x68
avrdude done. Thank you.
In einigen Foren konnte ich noch Lesen dass eventuell der Bootloader ein Problem hat. Aber so richtig konnte ich nix finden. Hat hier noch jemand ein Tipp oder habe ich hier zu billig eingekauft. Wobei ich mit AZDelivery Produkten nie ein Problem hatte.
Ich bedanke mich wie immer im Voraus und wünsche eine angenehme Woche.
Zephir:
vom Uno auf eine Mega
Ich würde auch erstmal versuchen den Bootloader neu zu bespielen.
Ist gar nicht so schwer: https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/
Der UNO wird dann der Programmer und der Mega sollte sich dann erholt haben.
Hallo!
Zuerst muss ich mich entschuldigen, Deutsch ist nicht meine Muttersprache und deshalb könnte es ein Paar Fehler mit der Sprache hier geben.
Können Sie bitte bestätigen, dass Ihre Arduino Mega (Atmega2560) diesen "CH340G" Chip haben?
Wenn so, müssen Sie zuerst den CH340G Treiber (driver) herunterladen.
Der Treiben befindet man hier . Also können Sie das Tutorial auf der SparkFun Webseite anschauen, um mehr darüber den Herunterladen- und Benutzen-Ablauf zu erfahren.
Cheers!
Zephir
February 14, 2022, 9:49am
4
Der Chip ist tatsächlich unkenntlich gemacht oder hat gar keine Beschriftung. Im Gerätemanager wird der automatisch als CH340 erkannt
Danke dennoch. Ich werde gleich mal den Bootloader neu beschreiben.
Zephir
February 14, 2022, 10:08am
5
Ich habe inzwischen den Bootloader neu gebrannt. Danach fängt die LED R17 im Takt an zu blinken, doch wenn ich dann etwas uploaden will kommt der selbe Fehler. Sowohl bei der Arduino IDE als auch bei Visual Studio Code. Dann kann man davon ausgehen dass der Controller einen weg hat?
Ich habe zur Hilfe dieses Video genutzt:
combie
February 14, 2022, 10:20am
6
Kenne keine LED namens R17
Tipp:
Das könnte auf einen defekten Speicher deuten. Könnte.
Überprüfung:
Lade das ursprüngliche Programm per ISP drauf.
Wenn es dann den gleichen Fehler zeigt, ist vermutlich der ATMega2560 hops.
Zephir
February 14, 2022, 10:28am
7
Ohhh mein Fehler, ich meinte die L LED. R17 ist der Widerstand über der LED.
Ich habe jetzt probiert das Programm per ISP zu uploaden. Jetzt kommt dieser Fehler:
Der Sketch verwendet 4084 Bytes (1%) des Programmspeicherplatzes. Das Maximum sind 253952 Bytes.
Globale Variablen verwenden 301 Bytes (3%) des dynamischen Speichers, 7891 Bytes für lokale Variablen verbleiben. Das Maximum sind 8192 Bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Beim Hochladen des Sketches ist ein Fehler aufgetreten
Also selber Fehler wie bei Visual Studio Code. Dann werde ich mich mal mit dem Support von Amazon bzw. von AZDelivery auseinander setzten. Danke für die Hilfe!
combie
February 14, 2022, 10:40am
8
Der Programmer ist der UNO!
Du hast hier ein Problem mit dem UNO.
Vielleicht mal die ausführlichen Ausgaben aktivieren, dann wirds evtl. etwas deutlicher.
Greift da irgendwas auf den USB-Port zu?
Virenscanner?
Mal an einem anderen Rechner probiert?
Zephir
February 14, 2022, 11:08am
10
Wenn nur der Windows Defender, aber der sollte da nicht wirklich was machen. Der PC hier läuft auf Windows 11, ich habe es zudem auf meinem Notebook probiert, welches unter Windows 10 läuft. selber Fehler. Dennoch scheint das Bootloader brennen zu funktionieren. Ich habe zudem die 3 LED's wie in der Anleitung beschrieben angeschlossen und nach kurzem aufblinken der Programmier Led verharrt die Error LED bis der timeout kommt.
Zephir
February 14, 2022, 11:15am
11
Ich habe zudem gerade nochmal mit dem Notebook ausprobiert ein LED Fade programm hochzuladen. Es kommt wieder zu einem avrdude verification Error. Dass interessante jedoch ist, dass die BUILTIN LED tatsächlich im Fade aufleuchtet. Also wird das Programm wohl hochgeladen. Aber solch einen Fehler zu ignorieren kann es ja auch nicht so ganz sein..
Zephir:
..
Hast Du die Einstellungen zur Ausgabe geändert?
Wie lautet die Ausgabe - vollständig und nicht nur Bruchstück.
Zephir
February 14, 2022, 11:55am
13
Wie zum Anfang beschrieben dieser Fehler:
avrdude: verification error, first mismatch at byte 0x0368
0x30 != 0x31
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch
Hier der hochgeladene Code:
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED by
// the setup routine runs once when you press reset:
void setup() {
// declare pin 9 to be an output:
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
// set the brightness of pin 9:
analogWrite(LED_BUILTIN, brightness);
// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;
// reverse the direction of the fading at the ends of the fade:
if (brightness <= 0 || brightness >= 255) {
fadeAmount = -fadeAmount;
}
// wait for 30 milliseconds to see the dimming effect
delay(30);
}
Als Board habe ich dieses mal den Arduino Mega ADK ausprobiert.
Nein, Du solltest das was machen, was in #8 steht.
Ich kann Deine Fehlermeldung provozieren:
Arduino: 1.8.15 (Linux), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
~/arduino-1.8.15/arduino-builder -dump-prefs -logger=machine -hardware ~/arduino-1.8.15/hardware -hardware ~/.arduino15/packages -hardware ~/Arduino/hardware -tools ~/arduino-1.8.15/tools-builder -tools ~/arduino-1.8.15/hardware/tools/avr -tools ~/.arduino15/packages -built-in-libraries ~/arduino-1.8.15/libraries -libraries ~/Arduino/libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=1A86_7523 -ide-version=10815 -build-path /tmp/arduino_build_948251 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.avrdude.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=~/arduino-1.8.15/hardware/tools/avr -verbose /tmp/arduino_modified_sketch_572623/sketch_feb14b.ino
~/arduino-1.8.15/arduino-builder -compile -logger=machine -hardware ~/arduino-1.8.15/hardware -hardware ~/.arduino15/packages -hardware ~/Arduino/hardware -tools ~/arduino-1.8.15/tools-builder -tools ~/arduino-1.8.15/hardware/tools/avr -tools ~/.arduino15/packages -built-in-libraries ~/arduino-1.8.15/libraries -libraries ~/Arduino/libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=1A86_7523 -ide-version=10815 -build-path /tmp/arduino_build_948251 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.avrdude.path=~/arduino-1.8.15/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=~/arduino-1.8.15/hardware/tools/avr -verbose /tmp/arduino_modified_sketch_572623/sketch_feb14b.ino
Using board 'mega' from platform in folder: ~/arduino-1.8.15/hardware/arduino/avr
Using core 'arduino' from platform in folder: ~/arduino-1.8.15/hardware/arduino/avr
Detecting libraries used...
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega /tmp/arduino_build_948251/sketch/sketch_feb14b.ino.cpp -o /dev/null
Generating function prototypes...
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega /tmp/arduino_build_948251/sketch/sketch_feb14b.ino.cpp -o /tmp/arduino_build_948251/preproc/ctags_target_for_gcc_minus_e.cpp
~/arduino-1.8.15/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_948251/preproc/ctags_target_for_gcc_minus_e.cpp
Sketch wird kompiliert...
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega /tmp/arduino_build_948251/sketch/sketch_feb14b.ino.cpp -o /tmp/arduino_build_948251/sketch/sketch_feb14b.ino.cpp.o
Compiling libraries...
Compiling core...
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/wiring_pulse.S -o /tmp/arduino_build_948251/core/wiring_pulse.S.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/wiring.c -o /tmp/arduino_build_948251/core/wiring.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/WInterrupts.c -o /tmp/arduino_build_948251/core/WInterrupts.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/hooks.c -o /tmp/arduino_build_948251/core/hooks.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/wiring_analog.c -o /tmp/arduino_build_948251/core/wiring_analog.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/wiring_digital.c -o /tmp/arduino_build_948251/core/wiring_digital.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/wiring_pulse.c -o /tmp/arduino_build_948251/core/wiring_pulse.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/wiring_shift.c -o /tmp/arduino_build_948251/core/wiring_shift.c.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp -o /tmp/arduino_build_948251/core/HardwareSerial1.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/CDC.cpp -o /tmp/arduino_build_948251/core/CDC.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp -o /tmp/arduino_build_948251/core/HardwareSerial.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp -o /tmp/arduino_build_948251/core/HardwareSerial0.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp -o /tmp/arduino_build_948251/core/HardwareSerial2.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp -o /tmp/arduino_build_948251/core/HardwareSerial3.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/IPAddress.cpp -o /tmp/arduino_build_948251/core/IPAddress.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp -o /tmp/arduino_build_948251/core/PluggableUSB.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/Print.cpp -o /tmp/arduino_build_948251/core/Print.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/Stream.cpp -o /tmp/arduino_build_948251/core/Stream.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/Tone.cpp -o /tmp/arduino_build_948251/core/Tone.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/USBCore.cpp -o /tmp/arduino_build_948251/core/USBCore.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/WMath.cpp -o /tmp/arduino_build_948251/core/WMath.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/WString.cpp -o /tmp/arduino_build_948251/core/WString.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/abi.cpp -o /tmp/arduino_build_948251/core/abi.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/main.cpp -o /tmp/arduino_build_948251/core/main.cpp.o
~/arduino-1.8.15/hardware/tools/avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I~/arduino-1.8.15/hardware/arduino/avr/cores/arduino -I~/arduino-1.8.15/hardware/arduino/avr/variants/mega ~/arduino-1.8.15/hardware/arduino/avr/cores/arduino/new.cpp -o /tmp/arduino_build_948251/core/new.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/wiring_pulse.S.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/WInterrupts.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/hooks.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/wiring.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/wiring_analog.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/wiring_digital.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/wiring_pulse.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/wiring_shift.c.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/CDC.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/HardwareSerial.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/HardwareSerial0.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/HardwareSerial1.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/HardwareSerial2.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/HardwareSerial3.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/IPAddress.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/PluggableUSB.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/Print.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/Stream.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/Tone.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/USBCore.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/WMath.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/WString.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/abi.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/main.cpp.o
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_948251/core/core.a /tmp/arduino_build_948251/core/new.cpp.o
Linking everything together...
~/arduino-1.8.15/hardware/tools/avr/bin/avr-gcc -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega2560 -o /tmp/arduino_build_948251/sketch_feb14b.ino.elf /tmp/arduino_build_948251/sketch/sketch_feb14b.ino.cpp.o /tmp/arduino_build_948251/core/core.a -L/tmp/arduino_build_948251 -lm
~/arduino-1.8.15/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_948251/sketch_feb14b.ino.elf /tmp/arduino_build_948251/sketch_feb14b.ino.eep
~/arduino-1.8.15/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_948251/sketch_feb14b.ino.elf /tmp/arduino_build_948251/sketch_feb14b.ino.hex
~/arduino-1.8.15/hardware/tools/avr/bin/avr-size -A /tmp/arduino_build_948251/sketch_feb14b.ino.elf
Der Sketch verwendet 3456 Bytes (1%) des Programmspeicherplatzes. Das Maximum sind 253952 Bytes.
Globale Variablen verwenden 196 Bytes (2%) des dynamischen Speichers, 7996 Bytes für lokale Variablen verbleiben. Das Maximum sind 8192 Bytes.
Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.
~/arduino-1.8.15/hardware/tools/avr/bin/avrdude -C~/arduino-1.8.15/hardware/tools/avr/etc/avrdude.conf -v -patmega2560 -cwiring -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/tmp/arduino_build_948251/sketch_feb14b.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 "~/arduino-1.8.15/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "~/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyUSB0
Using Programmer : wiring
Overriding Baud Rate : 115200
AVR Part : ATmega2560
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
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 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 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 : Wiring
Description : Wiring
Programmer Model: AVRISP
avrdude: stk500v2_recv(): checksum error
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
Deine Meldung müsste genauso aussehen - und nicht so verstümmelt wie da oben.
Zephir
February 14, 2022, 1:09pm
15
Ahhh okay, hier einmal beide Versionen.
Die erste über die Serielle USB Schnittstelle:
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\marvi\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\marvi\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\marvi\Documents\Arduino\libraries -fqbn=arduino:avr:megaADK -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\marvi\AppData\Local\Temp\arduino_build_554120 -warnings=none -build-cache C:\Users\marvi\AppData\Local\Temp\arduino_cache_476012 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\marvi\AppData\Local\Temp\arduino_modified_sketch_140860\Fade.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\marvi\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\marvi\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\marvi\Documents\Arduino\libraries -fqbn=arduino:avr:megaADK -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\marvi\AppData\Local\Temp\arduino_build_554120 -warnings=none -build-cache C:\Users\marvi\AppData\Local\Temp\arduino_cache_476012 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\marvi\AppData\Local\Temp\arduino_modified_sketch_140860\Fade.ino
Using board 'megaADK' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ADK -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp" -o nul
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ADK -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp" -o "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ADK -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp" -o "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\marvi\AppData\Local\Temp\arduino_cache_476012\core\core_arduino_avr_megaADK_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega2560 -o "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.elf" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp.o" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/..\\arduino_cache_476012\\core\\core_arduino_avr_megaADK_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120" -lm
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.elf" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.eep"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.elf" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.hex"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.elf"
Der Sketch verwendet 2054 Bytes (0%) des Programmspeicherplatzes. Das Maximum sind 253952 Bytes.
Globale Variablen verwenden 13 Bytes (0%) des dynamischen Speichers, 8179 Bytes für lokale Variablen verbleiben. Das Maximum sind 8192 Bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM7 -b115200 -D -Uflash:w:C:\Users\marvi\AppData\Local\Temp\arduino_build_554120/Fade.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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM7
Using Programmer : wiring
Overriding Baud Rate : 115200
AVR Part : ATmega2560
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
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 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 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 : Wiring
Description : Wiring
Programmer Model: AVRISP
Hardware Version: 15
Firmware Version Master : 2.10
Vtarget : 0.0 V
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: reading input file "C:\Users\marvi\AppData\Local\Temp\arduino_build_554120/Fade.ino.hex"
avrdude: writing flash (2054 bytes):
Writing | ################################################## | 100% 0.37s
avrdude: 2054 bytes of flash written
avrdude: verifying flash memory against C:\Users\marvi\AppData\Local\Temp\arduino_build_554120/Fade.ino.hex:
avrdude: load data flash data from input file C:\Users\marvi\AppData\Local\Temp\arduino_build_554120/Fade.ino.hex:
avrdude: input file C:\Users\marvi\AppData\Local\Temp\arduino_build_554120/Fade.ino.hex contains 2054 bytes
avrdude: reading on-chip flash data:
Reading | ######################################Beim Hochladen des Sketches ist ein Fehler aufgetreten
############ | 100% 0.29s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0368
0x30 != 0x31
avrdude: verification error; content mismatch
avrdude done. Thank you.
Hier mithilfe des Arduino UNO als ISP:
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\marvi\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\marvi\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\marvi\Documents\Arduino\libraries -fqbn=arduino:avr:megaADK -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\marvi\AppData\Local\Temp\arduino_build_554120 -warnings=none -build-cache C:\Users\marvi\AppData\Local\Temp\arduino_cache_476012 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\marvi\AppData\Local\Temp\arduino_modified_sketch_964452\Fade.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\marvi\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\marvi\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\marvi\Documents\Arduino\libraries -fqbn=arduino:avr:megaADK -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\marvi\AppData\Local\Temp\arduino_build_554120 -warnings=none -build-cache C:\Users\marvi\AppData\Local\Temp\arduino_cache_476012 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\marvi\AppData\Local\Temp\arduino_modified_sketch_964452\Fade.ino
Using board 'megaADK' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ADK -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp" -o nul
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ADK -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp" -o "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_ADK -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp" -o "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\marvi\AppData\Local\Temp\arduino_cache_476012\core\core_arduino_avr_megaADK_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega2560 -o "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.elf" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120\\sketch\\Fade.ino.cpp.o" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/..\\arduino_cache_476012\\core\\core_arduino_avr_megaADK_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120" -lm
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.elf" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.eep"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.elf" "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.hex"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\marvi\\AppData\\Local\\Temp\\arduino_build_554120/Fade.ino.elf"
Der Sketch verwendet 2054 Bytes (0%) des Programmspeicherplatzes. Das Maximum sind 253952 Bytes.
Globale Variablen verwenden 13 Bytes (0%) des dynamischen Speichers, 8179 Bytes für lokale Variablen verbleiben. Das Maximum sind 8192 Bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM3 -b115200 -D -Uflash:w:C:\Users\marvi\AppData\Local\Temp\arduino_build_554120/Fade.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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done. Thank you.
Beim Hochladen des Sketches ist ein Fehler aufgetreten
combie
February 14, 2022, 2:46pm
16
Jetzt ist es glasklar:
Ein Problem mit dem UNO
Da ich das ebenso provozieren konnte und mein ISP-Programmer geht:
Ich habe zur gleichen Zeit ein Terminalprogramm auf dem selben Port zu laufen gehabt.
Dir fummelt m.E. irgendwas auf den Seriellen Ports zwischen, während des Reading.
Zephir
February 14, 2022, 5:31pm
18
Mhm, dann werde ich das ganze morgen nochmal Testen. Daraus folge ich dass ich nicht genau sagen kann ob das neu brennen das Bootloaders überhaupt richtig geklappt hat obwohl die IDE zumindest "abgeschlossen" ausgibt.
Somit kann ich auch nicht sagen ob der Mega nun ein weg hat oder nicht.
Habe ich beim Upload eventuell eine falsche Einstellung gewählt?
Angeschlossen habe ich die beiden Controller wie folgt:
Arduino Uno -> Mega2560
GND -> GND
5V -> 5V
PIN 10 -> RESET
PIN 11 -> PIN 51 (MOSI)
PIN 12 -> PIN 50 (MISO)
PIN 13 -> PIN 52 (SCK)
Zudem sehe ich dass bei dir bei Programmer Model "AVRISP" steht. Ich nutze "Arduino as ISP" macht das einen Unterschied?
Wenn mit dem Bootloader auch der Blink-Sketch drauf ging, stellt sich derzeit die Frage nicht.
Zephir
February 23, 2022, 9:34am
20
Kurzer Nachtrag,
AZ Delivery hat mir ein neues Board zu gesandt und dies läuft einwandfrei. Wahr höchst wahrscheinlich ein Fehler am Board.