Different errors while uploading a sketch

hi all :slight_smile:

I am still pretty new to the whole arduino-thing - so pls. excuse my lack of experience, if this might be a result from it.

Since yesterday, I am getting some weired errors when I try to upload a sketch to the board (or more specific, to both boards that I have)

It seems that the code will be uploaded to the Board - and everything is just working as expected then - only, the update process will take unusually long - and is showing these kind of errors in the end

Sketch uses 3206 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 154 bytes (7%) of dynamic memory, leaving 1894 bytes for local variables. Maximum is 2048 bytes.
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
Problem uploading to board.  See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.
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

This also happens, when I just upload an empty programm (just containing setup and loop)

The strange thing here is:

I have now tested the behave again and unplugged everything from the Board...
Then, uploading the Empty Code just has worked fine for both boards.

RIght now, I do have a small idea where this behave might come from...
In my code, I am using Pin 0 and 1 for an Input and a Touch-Sensor was connected to it.

is it possible, that having something connected to these Pins might break the update?
These pins are RX & TX ... so it might causing the issues during the upload and the boot up... it would just be nice to have an short feedback about this :slight_smile:

Correct; those pins are shared with the TTL-to-USB converter on your board and hence using them for something can interfere with the upload.

Looks like you're using an Uno; don't use pins 0 and 1 on a Mega or Uno/ProMini/Nano. And if you have to use them because you're out of pins or need the serial interface for communication with your sensor, you will have to disconnect before the upload and connect again after the upload.

1 Like

Thanks :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.