Go Down

Topic: Can't upload sketches into arduino. reinstalled the IDE and tried other board. (Read 1 time) previous topic - next topic

monsieurjean

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.

ieee488

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.



.

monsieurjean

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:

Code: [Select]


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.

ieee488

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.




monsieurjean

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




monsieurjean

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?

kprims

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:

Code: [Select]
dmesg

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

Code: [Select]
[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 ***********

monsieurjean

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)

Code: [Select]


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.


kprims

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.

monsieurjean

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

monsieurjean

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

Code: [Select]

     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



kayel

 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!

monsieurjean

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

:)

Go Up