Can't upload anuything

Hi,

i've got a big problem since a few days, i just can't upload any code on my 2 arduino boards anymore

i have a Uno R3 and a mega 2560 but i can't upload on both of them

first i thought it was a software trouble or it was from my computer,

but i tried with an other computer and also an other software release (1.6.2 or 1.6.4 instead of 1.8.0) and i have the same problem, i just have no idea what can be the reason, i searched a lot, i tried differents tips and different solutions but it still wont work

And i don't have just one error message but a few differents

first i had a "timeout" for the mega 2560 and a "not in sync" for the uno R3

but now i have "programmer not responding"

sometimes it works again for just a moment and after one or 2 working uploading it crash again

i never had something like that, i don't know to fix it and then i can't do anything

please help !! thanks :slight_smile:

I am using arduino uno. i am unable to upload code. keep getting error. Everything was good before. But I delete arduino software and reinstall but now i am getting error with same arduino. There was already one sketch in arduino from previous software that one still work fine. but can not able to upload new sketch even if i try same sketch. this is the error i will get every time

/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: abi.cpp.o: plugin needed to handle lto object
/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: main.cpp.o: plugin needed to handle lto object
/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: core/new.cpp.o: plugin needed to handle lto object
/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: /Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so: error loading plugin: dlopen(/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so, 2): Symbol not found: _environ
Referenced from: /Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so
Expected in: /usr/lib/libSystem.B.dylib

collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.

cou_ld you please create a new message for your problem ?

i'm looking for help, not someone who has a similiar problem but no solutions

thanks ! ^^

also i uninstalled & reinstalled the software, i tried with a lot of differents codes, i have the same problem

I can't upload my sketch on the my arduino uno board. The error occured is as follow

Arduino: 1.6.13 (Windows 8.1), Board: "Arduino/Genuino Uno"

Sketch uses 1,656 bytes (5%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
C:\Users\Ravi Shankar\Documents\Robotics\arduino-1.6.13-windows\arduino-1.6.13\hardware\tools\avr/bin/avrdude -CC:\Users\Ravi Shankar\Documents\Robotics\arduino-1.6.13-windows\arduino-1.6.13\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM1 -b115200 -D -Uflash:w:C:\Users\RAVISH~1\AppData\Local\Temp\arduino_build_163993/raindropseries.ide.ino.hex:i

avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\Ravi Shankar\Documents\Robotics\arduino-1.6.13-windows\arduino-1.6.13\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM1
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\.\COM1": The system cannot find the file specified.

avrdude done. Thank you.

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

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@ Ravi_Shankar_007

It is highly unlikely that your board is on COM 1

Can you see other com ports in the IDE ?

If not then a little more info is required.
Where did you get your board (supply link)
Supply a picture of both sides of the board (reasonable quality)
Disconnect anything you have going to the board and try again.

Maybe its a clone in which case the pics will be useful and you may need to install a driver that is not included with the IDE (Google CH340)

@ Monty88

Were you using the ONLINE IDE ?

If so when you deleted the regular IDE you also accidentally removed some of the online IDE.

It would need to be repaired by a re-install but you may also have to remove the references to the online IDE first as it may not re-install correctly.

Please let us know which type of IDE you were using ?

CLEAN UP BEFORE INSTALLING ANOTHER COPY OF THE IDE OR ARDUINO CREATE

The FREE "Wise registry cleaner" does a good job also without the need to trawl through the registry.

"REVO uninstaller" also does an exceptional job of clean up and removal too.
“CCleaner” is another favourite of mine too.

They are my GOTO for swapping IDE's and clean ups of other programs.

Be aware that if you use CREATE as an IDE there are additional directories and clean up to take into account.

Removal of the regular IDE without attention can disable CREATE requiring another install.
Just because it says ARDUINO doesn't mean its the regular IDE.

Even an "unzipped" copy of the IDE will also leave traces in the registry regardless of what anyone says. The paths are kept along with a few other things.

If anyone doesn't believe that then try running an unzipped version on a clean machine and then do a registry scan for "arduino".

Also check your "roaming" profile too under windows as it’s not uncommon to also find Arduino related items in there as well.

REMOVE or RENAME the “arduino15” folder

Open File Manager.

Click VIEW

Click OPTIONS

Click the VIEW TAB on the box that just opened.

Select and tick Show hidden files, folders, and drives

Click APPLY and YES to any additional boxes that might pop up.

Navigate to the users folder and open your folder in there.

You should see a folder called AppData go in there.

Depending on how your computer was set up and user levels you should see three folders

Local

LocalLow

Roaming

In at least one possibly more you should see the “Arduino15” folder. Choice is to rename/ move/ delete. Deletion is often the best method.

REMOVE or RENAME the CREATE folders

C:\Users\yourname\AppData\Roaming\ArduinoCreateAgent
C:\Users\yourname\AppData.arduino-create

Now run CCLEANER and follow the onscreen prompts.
Whilst still in CCLEANER select the registry option and do that too. Allow it to create a backup (I have never needed it but better safe)

Close out CCLEANER and if you have REVO installed use that to uninstall the IDE’s but remember to select ADVANCED and at the end stages hit the SELECT ALL options.

Now run the WISE REGISTRY cleaner and select DEEP SCAN
Let it do its thing and allow it to delete every issue it finds.

You should now be OK to re-install the IDE of your choice along with CREATE if you use it.
Don’t forget to say yes and allow the items CREATE will offer you.