Erreur upload arduino ide2.0.0

bonjour
jai une erreur quand je télécharge sur mon arduino mega 2560

code exemple du digitalreadserial

int pushButton = 8;

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  // make the pushbutton's pin an input:
  pinMode(pushButton, INPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input pin:
  int buttonState = digitalRead(pushButton);
  // print out the state of the button:
  Serial.println(buttonState);
  delay(1);        // delay in between reads for stability
}

message d'erreur

Using board 'mega' from platform in folder: C:\Users\killian\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4
Using core 'arduino' from platform in folder: C:\Users\killian\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4
Detecting libraries used...
"C:\\Users\\killian\\AppData\\Local\\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\cores\\arduino" "-IC:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\variants\\mega" "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB\\sketch\\DigitalReadSerial.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\killian\\AppData\\Local\\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\cores\\arduino" "-IC:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\variants\\mega" "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB\\sketch\\DigitalReadSerial.ino.cpp" -o "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\killian\\AppData\\Local\\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 -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\cores\\arduino" "-IC:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\variants\\mega" "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB\\sketch\\DigitalReadSerial.ino.cpp" -o "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB\\sketch\\DigitalReadSerial.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\killian\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_mega_cpu_atmega2560_5c6d40d7396ee584dea69988b9391751.a
Linking everything together...
"C:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega2560 -o "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB/DigitalReadSerial.ino.elf" "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB\\sketch\\DigitalReadSerial.ino.cpp.o" "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB/..\\arduino-core-cache\\core_arduino_avr_mega_cpu_atmega2560_5c6d40d7396ee584dea69988b9391751.a" "-LC:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB" -lm
"C:\\Users\\killian\\AppData\\Local\\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 "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB/DigitalReadSerial.ino.elf" "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB/DigitalReadSerial.ino.eep"
"C:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB/DigitalReadSerial.ino.elf" "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB/DigitalReadSerial.ino.hex"
"C:\\Users\\killian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\killian\\AppData\\Local\\Temp\\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB/DigitalReadSerial.ino.elf"
Sketch uses 2656 bytes (1%) of program storage space. Maximum is 253952 bytes.
Global variables use 188 bytes (2%) of dynamic memory, leaving 8004 bytes for local variables. Maximum is 8192 bytes.

--------------------------
Compilation complete.
"C:\Users\killian\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\killian\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v  -patmega2560 -cwiring "-PCOM4" -b115200 -D "-Uflash:w:C:\Users\killian\AppData\Local\Temp\arduino-sketch-E1D94FBCB783590B55AAA79C152EF0DB/DigitalReadSerial.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\killian\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "\\.\COM4": Acc�s refus�.


avrdude: ser_drain(): read error: Descripteur non valide


avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Descripteur non valide


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Descripteur non valide


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Descripteur non valide


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Descripteur non valide


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Descripteur non valide


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Descripteur non valide


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.

(je suis sur ide arduino 2.0.0rc3
jai essayer de changer de port et jai essayer de changer de code et sa marche

on doit choisir le port sur lequel l'Arduino est branché, pas un port au hasard.

oui je le fait mes ce qui est étrange c'est que sa me le fait me met des erreur de téléchargement que sur des codes ou jessaye de prendre une valeur en analogique ou digital tous mes autre programme sens sa fonctionne

j'ai essayé (mais je suis sur Mac) et ça fonctionne avec un sketch vide ou avec votre sketch.

l'IDE 2.0 n'est pas encore très stable et ils ont de nombreux souci concernant la gestion du port série on dirait. Si vous êtes coincé, revenez à la version stable 1.8.xx

1 Like

L'IDE2 est encore en version RC, plus proche de la sortie que BETA , sans plus

ici un sous-forum dédié https://forum.arduino.cc/c/software/arduino-ide-2-0-beta/93

là une page web signalant quelques tiutoriels https://docs.arduino.cc/software/ide-v2

1 Like

Merci je vais essayer sous 1.8 pour voir si sa marche