Go Down

Topic: ERREUR TÉLÉVERSEMENT  (Read 219 times) previous topic - next topic

APOSETREP

bonsoir voici mon problème compilation OK lors de la fin du téléversement message d'erreur je vous met que ce qui est mi en orange

Code: [Select]
C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_GFX.cpp:550:42: warning: unused parameter 'i' [-Wunused-parameter]

 void Adafruit_GFX::invertDisplay(boolean i) {

                                          ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_GFX.cpp: In member function 'boolean Adafruit_GFX_Button::contains(int16_t, int16_t)':

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_GFX.cpp:607:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    if ((x < (_x - _w/2)) || (x > (_x + _w/2))) return false;

           ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_GFX.cpp:607:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    if ((x < (_x - _w/2)) || (x > (_x + _w/2))) return false;

                                ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_GFX.cpp:608:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    if ((y < (_y - _h)) || (y > (_y + _h/2))) return false;

           ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_GFX.cpp:608:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

    if ((y < (_y - _h)) || (y > (_y + _h/2))) return false;

                              ^

"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA -DARDUINO_ARCH_AVR   "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX" "-IC:\Program Files\Arduino\libraries\Touch-Screen" "-IC:\Program Files\Arduino\libraries\DS1307new" "-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire\src" "C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp" -o "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp.o"
In file included from C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:30:0:

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\pin_magic.h:306:33: warning: backslash and newline separated by space

   #define read8inline(result) { \    

 ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:819:0: warning: "read8" redefined

   #define read8(x) x=read8fn()

 ^

In file included from C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:30:0:

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\pin_magic.h:207:0: note: this is the location of the previous definition

   #define read8             read8inline

 ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp: In member function 'void Adafruit_TFTLCD::begin(uint16_t)':

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\pin_magic.h:425:21: warning: large integer implicitly truncated to unsigned type [-Woverflow]

   hi = (d) >> 8; lo = (d); CD_DATA   ; write8(hi); write8(lo); }

                     ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\pin_magic.h:211:29: note: in expansion of macro 'writeRegister16inline'

   #define writeRegister16   writeRegister16inline

                             ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:294:5: note: in expansion of macro 'writeRegister16'

     writeRegister16(ILI9341_VCOMCONTROL1, 0x2B2B);

     ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:285:14: warning: unused variable 'a' [-Wunused-variable]

     uint16_t a, d;

              ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:285:17: warning: unused variable 'd' [-Wunused-variable]

     uint16_t a, d;

                 ^

APOSETREP

puis un peu plus bas dans la liste

Code: [Select]
Archiving built core (caching) in: C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_cache_308748\core\core_arduino_avr_mega_cpu_atmega1280_5638c217b04eda8279099c4937887265.a
Linking everything together...
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega1280  -o "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995/Horloge_tft_DS3231.ino.elf" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\sketch\Horloge_tft_DS3231.ino.cpp.o" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\libraries\SPFD5408_Adafruit_GFX\glcdfont.c.o" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_GFX.cpp.o" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp.o" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\libraries\Touch-Screen\TouchScreen.cpp.o" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\libraries\DS1307new\DS1307new.cpp.o" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\libraries\Wire\Wire.cpp.o" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995\libraries\Wire\utility\twi.c.o" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995/core\core.a" "-LC:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995" -lm
C:\Users\Alexis-Anais\Downloads\Horloge_TFT DS3231\Horloge_tft_DS3231\Horloge_tft_DS3231.ino: In function 'setup':

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:813:5: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]

     writeRegister8(ILI9341_MADCTL, t ); // MADCTL

     ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:797:14: note: 't' was declared here

     uint16_t t;

              ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:790:4: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]

    writeRegister8(ILI9341_MADCTL, t ); // MADCTL

    ^

C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX\SPFD5408_Adafruit_TFTLCD.cpp:774:13: note: 't' was declared here

    uint16_t t;

             ^

"C:\Program Files\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\ALEXIS~1\AppData\Local\Temp\arduino_build_6995/Horloge_tft_DS3231.ino.elf" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995/Horloge_tft_DS3231.ino.eep"
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom  "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995/Horloge_tft_DS3231.ino.elf" "C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995/Horloge_tft_DS3231.ino.hex"
Plusieurs bibliothèque trouvées pour "Wire.h"
Utilisé : C:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire
Non utilisé : C:\Program Files\Arduino\libraries\Wire
Utilisation de la bibliothèque SPFD5408_Adafruit_GFX prise dans le dossier : C:\Program Files\Arduino\libraries\SPFD5408_Adafruit_GFX (legacy)
Utilisation de la bibliothèque Touch-Screen prise dans le dossier : C:\Program Files\Arduino\libraries\Touch-Screen (legacy)
Utilisation de la bibliothèque DS1307new prise dans le dossier : C:\Program Files\Arduino\libraries\DS1307new (legacy)
Utilisation de la bibliothèque Wire version 1.0 dans le dossier: C:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire
Le croquis utilise 36432 octets (28%) de l'espace de stockage de programmes. Le maximum est de 126976 octets.
Les variables globales utilisent 889 octets (10%) de mémoire dynamique, ce qui laisse 7303 octets pour les variables locales. Le maximum est de 8192 octets.
C:\Program Files\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1280 -carduino -PCOM5 -b57600 -D -Uflash:w:C:\Users\ALEXIS~1\AppData\Local\Temp\arduino_build_6995/Horloge_tft_DS3231.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM5
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x7b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x7b

avrdude done.  Thank you.

Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.


qu'est ce qui se passe ??

lesept

C'est un warning, pas une erreur de compilation, ça n'empêche pas le programme de se charger et de s'exécuter.

Le compilateur te dit ce qui ne va pas :
Code: [Select]
comparison between signed and unsigned integer expressionsLa condition de ton if compare des int et des unsigned int, ce qui risque de provoquer des erreurs lors de l'évaluation de la condition.

Pour ne plus avoir cet avertissement, choisis un type de variable commun à celles de ta condition : sit int soit unsigned int. Si tu veux en savoir plus sur les types : ici et ici
A force d'essayer on finit par réussir... Donc, plus ça rate, plus on a de chances que ça marche (proverbe Sharduinok).

APOSETREP

lorsque j'envois simplement sa :
Code: [Select]
void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}


message erreur :
Code: [Select]
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x41


Code: [Select]
Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM6
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x93
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x93

Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.
avrdude done.  Thank you.


fdufnews

Vérifier le câble USB, le type de carte sélectionné, le port COM utilisé.

APOSETREP

j'utilise une carte arduino mega 2560 (chinoise) avec le pilote usb-serial-ch340, le câble usb est ok, je suis sur le bon port com

je refait un test avec une carte uno neuve (toujours chinoise)

APOSETREP

#6
Jul 11, 2018, 08:20 pm Last Edit: Jul 11, 2018, 08:22 pm by APOSETREP
toujours pareil

je pense a un problème au niveau du fichier avrdude

APOSETREP

problème résolu je ne sais pas comment j'ai simplement desinstaller et reinstaller le log

Go Up