Can't upload sketches into arduino. reinstalled the IDE and tried other board.

Hello guys, first of all, let me say in advance that I'm a total beginner/noob with not much hability for informatics

since yesterday I'm having this problem which is taking me so much damn time

Arduino and its IDE were working perfectly, till I tried to upload a different code,
then i got an error, "Problem Uploading to the board"

I copied the error message,
tried to close and open again the IDE

reseted the arduino
connecte and disconnected the USB cable, and connected it to different USB plugs

then, i removed and installed arduino ide again

and the first time I uploaded code to it, (LED BLINK, from the Basic examples) it worked fine
the code was uploaded very quickly,
then I proceeded to try to upload a sketch for sensing heart pulse

I got the same error

now, I opened again the very same basic led blink sketch
but no success in uploading it into Arduino

I'm using ubuntu and the arduino IDE 1.8.5

using Arduino Uno.

one thing I noticed is that when i unplug the usb cable, and plug to another port on the computer,
I still see the very same port, under "Tools > Port " on the arduino

should that be so? since I plugged into another usb slot
(this happens even though I closed and opened the ide again)

I must also mention that I tried in vain, uploading sketches to the Arduino pro mini,
and I am also getting the very same error message

So, it is probably is not a problem with the board,
neither should it be a problem with the IDE, since i uninstalled and installed it again

Please give me some light
this just doesn't want to work

Thanks in advance
Jean

Below it is my error code

be warned, its very big.

Arduino: 1.8.5 (Linux), Board: "Arduino/Genuino Uno"

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

System wide configuration file is "/home/ivan/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/ivan/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

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_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done. Thank you.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

If you were able to upload a sketch once, but not anymore, sounds like you burned out whichever Arduino you have with whatever you were doing.

.

At the first time that this mistake happened. I thought that i had burned the Arduino Uno board. But then, i tried uploading sketches into the Arduino Pro Mini, using an FTDI,
and I got the same error. Then I thought that maybe the Pro Mini was also burned

but then, I , after much problems, managed to uninstall and reinstall the Arduino IDE on my ubuntu

then, the very first time I uploaded a sketch (to the Arduino Uno), it worked fine!. the upload was ok, and the code worked (LED Blink example)

then I tried to upload another sketch (Pulse Sensor examples) to the Arduino uno, and it didn't work again
I was getting the very same error.

then I again, tried to upload the LED Blink example

and no matter how many times I try it,
I am getting the very same mistake

namely:

Arduino: 1.8.5 (Linux), Board: "Arduino/Genuino Uno"



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

         System wide configuration file is "/home/ivan/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/ivan/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         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_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

I also mainly program on Linux Mint 18 computer.
I am still running IDE 1.8.3 and I haven't encountered the problem you are seeing.
I have no idea why your setup is not working.

ieee488. Thanks for your reply. I hope that somebody ever had this problem like I'm having

(and that this somebody managed to fix it)

or that some good soul help me to find a way out, (even if this person had not this problem him/herself

this is really weird
it can't be I damaged both boards

because after uninstalling and installing the Arduino IDE again, I manage to upload (successfully) a sketch,
one time only!
but still

if the board had been damaged, this would not be possible

Anyone else having the same problem?

:(,,,,,,

Is this like your problem?

https://forum.arduino.cc/index.php?topic=553078.0

Nope,
I can see the port I am connected to.

But the weird thing is, that,
even when I change from one USB plug to another one
and restart the IDE

the port showing on the IDE is ALWAYS the same!

i think it should appear differently ,
right?

You should end up with the same Port after restarting the IDE. If you have ttyACM0 vs ttyUSB0 then you should end up with the correct port for what you have plugged in.

The way mine is working right now I can remove the Nano and sometimes it will still show it connected, even thogh there is no longer a connection and then I can plug it in and the only port showing for about 4 minutes is the ttyS0 port.

Then when I restart the IDE sometimes the Port is greyed out.

Plug it in and run:

 dmesg

You should see something like this: I have 3 different Arduinos connected. One FTDI,one CH340, and a regular Uno.

[18279.177294] usb 3-3.5: new full-speed USB device number 14 using xhci_hcd
[18279.278072] usb 3-3.5: New USB device found, idVendor=1a86, idProduct=7523
[18279.278075] usb 3-3.5: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[18279.278077] usb 3-3.5: Product: USB2.0-Serial
[18279.308987] ch341 3-3.5:1.0: ch341-uart converter detected
[18279.309360] usb 3-3.5: ch341-uart converter now attached to ttyUSB0 *********
[18343.976934] usb 3-3.7: new full-speed USB device number 15 using xhci_hcd
[18344.081991] usb 3-3.7: New USB device found, idVendor=0403, idProduct=6001
[18344.081994] usb 3-3.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[18344.081996] usb 3-3.7: Product: FT232R USB UART
[18344.081997] usb 3-3.7: Manufacturer: FTDI
[18344.081999] usb 3-3.7: SerialNumber: UUT1
[18344.084469] ftdi_sio 3-3.7:1.0: FTDI USB Serial Device converter detected
[18344.084504] usb 3-3.7: Detected FT232RL
[18344.084705] usb 3-3.7: FTDI USB Serial Device converter now attached to ttyUSB1 ********
[18572.076709] usb 3-3.6: new full-speed USB device number 16 using xhci_hcd
[18572.178492] usb 3-3.6: New USB device found, idVendor=2341, idProduct=0043
[18572.178495] usb 3-3.6: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[18572.178497] usb 3-3.6: Manufacturer: Arduino (www.arduino.cc)
[18572.178498] usb 3-3.6: SerialNumber: 5543733353735170B121
[18572.205095] cdc_acm 3-3.6:1.0: ttyACM0: USB ACM device ***********

Thanks for your reply, and attempt to help me. But my problem is NOT, concerning the Ports
My Ports were never greyed out.

my problem is that I can't upload any code inside the arduino, and I always get this as error:

(I actually removed a lot of lines, so it doesn't seem too big for you guys to read)

System wide configuration file is "/home/ivan/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/ivan/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         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_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Run the loopback test on the Uno and the Pro Mini.

No reason for the bootloader to be hosed, but try hitting the reset button on the Uno while it is powered up and make sure the L Led flashes about three times.

Nothing on TX and RX.

I was going to do this loopback test thing,
but suddenly, my arduino is working again

That moment when you realize you had no idea why a given error was happening,
and you have no idea of why it is gone

Hello
the error is Back
only on the Arduino Pro Mini though

I connected the RX to TX on the USB TO SERIAL FTDI adapter,. selected its port on the Arduino IDE
and I am trying to "upload" some code using this adapter
even though it is not connected to an Arduino
I can notice that both RX and TX blink simultaneously

but on the Arduino IDE
i am getting the very same old error message

     System wide configuration file is "/home/ivan/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/ivan/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600

Salut monsieurjean,

I briefly tried the version 1.8.5 and had the same sort of trouble with it.
I'm using Debian Stretch.
I went back to 1.8.4.
No more updates for me!

Thanks for this suggestion
I will figure out how to downgrade my IDE version
and lets see the results

:slight_smile:

Hello all.

Today I had the same error as the original post #1.
I was getting those 1 to 10 attempts error dump almost instantly one after another.
Since this is the thread that pops up among the first in Google search I will reply here.

My specs are as follows:
Ubuntu 16.04 LTS 64bit
Arduino 1.8.5

The Arduino IDE would open the Serial Monitor, and I was able to see what the Arduino Nano 328p was sending through serial. So the problem wasn't my USB/Serial/TTY access permissions.
But when I would try to upload a sketch it wouldn't.
I tried on another machine: Ubuntu 14.04 LTS 32bit, Arduino 1.0.5 (yes that old)
Surprise, surprice: the sketch uploaded to the same Arduino Nano 328p. Thus I knew the board was ok.
So this hinted at a bad IDE on the Laptop. As I opened the IDE again, it prompted me to update some libraries. I decided maybe to check for updates to the Arduino AVR Boards in the Board Manager. Upon inspection I discovered that I was running the latest 1.6.21 version. For the fun of it, I clicked on it and it let me select the version I wanted. For the sake of experiment I went with 1.6.20. To my amazement the sketch uploaded to the board! This solved my issue for me.

To sum up:

  1. Open Arduino IDE
  2. Go to Tools -> Board "XYZ" -> "Board Manager..."
  3. A "Board Manager" window will pop up.
  4. Select "ALL" from the drop down menu.
  5. Type in Search: "Arduino AVR" (or even just "nano" - which I used as a search term)
  6. Click on the "Arduino AVR Boards"
  7. Down-Left corner a drop down menu should appear "Select Version..."
  8. Select "1.6.20"
  9. Click "Update" button (Down-Right corner)
  10. Close the "Board Manager"

I hope this helps someone. Cheers!

~Rossos

I hope this helps someone. Cheers!

Yes, it helped me... :slight_smile:

I have two version of Arduino IDE on my desk computer, an I3/4G Ram with Ubuntu 17.10. I have been using IDE 1.8.5 working fine up to today and then I decided to install also IDE 1.8.7 to solve another kind of problem (I am playong with ESP8266, but this is another story...).
So, with two IDEs I discovered that 1.8.5 continues to work fine but 1.8.7 not: it doesn't access to the board with the typical error "stk500_recv(): programmer is not responding error".
I searched on the network but all the solution was related to USB port permission that is not my case because I have right acces to the port with IDE 1.8.5.
Than I read your post and I discovered that IDE 1.8.5 uses Arduino AVR Board Manager 1.6.20, while IDE 1.8.7 uses Arduino AVR Board Manager 1.6.23 !!!
So i decided to downgrade to 1.6.20 for IDE 1.8.7 and not it works fine :slight_smile:

thank you !