avrdude: stk500_recv(): programmer is not responding

Hello everybody,

I'm new to Arduino and I'm having trouble getting it to work. I have a seeeduino v4.2 under Linux. I checked that I was on the right port (it's ok), that it was the right board (it's ok). Everything works well for the blink and the program for one of my sensors, however it does not work for another sensor. I have these error messages:

Arduino : 1.8.12 (Linux), Carte : "Seeeduino V4(Atmega328P)"

Le croquis utilise 4080 octets (12%) de l'espace de stockage de programmes. Le maximum est de 32256 octets.
Les variables globales utilisent 431 octets (21%) de mémoire dynamique, ce qui laisse 1617 octets pour les variables locales. Le maximum est de 2048 octets.
/home/agoutard/snap/arduino/5/.arduino15/packages/Seeeduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/home/agoutard/snap/arduino/5/.arduino15/packages/Seeeduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/arduino_build_828067/testCo2.ino.hex:i

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

avrdude done. Thank you.

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

I don't know what to do anymore having already checked the board and port. I also uninstalled and reinstalled Arduino IDE and nothing changes. I also tried to press the reset button just before downloading.

Did anyone know what to do?
Thanks in advance!

Anything connected to pins 0 and 1? If so, remove it and try again.

My sensor has to be connected to UART (I have a shield on the board) with RX and TX, if I remove it I had no more problems (my other sensor works well, not connected to RX TX) but I can't use my sensor...

Check if your shield allows for rerouting of the TX and RX pins to other pins (e.g. jumpers). Or you can attempt a bit of surgery to do that.

Than you can use SoftwareSerial (or one of the better alternatives like NeoSWSerial) instead of the hardware serial.