Unable to compile/upload Arduino ISP sketch

I am trying to use the arduino uno as a programmer for avr programming. I have an atmega 168A-pu. I am trying to upload the ArduinoISP sketch but I keep getting errors. Nothing is connected to the Arduino. Below is the error that I am getting. Can someone help me please?

Arduino: 1.6.10 (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 4,380 bytes (13%) of program storage space. Maximum is 32,256 bytes.
Global variables use 481 bytes (23%) of dynamic memory, leaving 1,567 bytes for local variables. Maximum is 2,048 bytes.
java.io.IOException: Cannot run program "___REMOVE___/bin/avrdude": CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
	at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:130)
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:209)
	at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
	at processing.app.Sketch.upload(Sketch.java:1187)
	at processing.app.Sketch.exportApplet(Sketch.java:1160)
	at processing.app.Sketch.exportApplet(Sketch.java:1132)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2409)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
	at java.lang.ProcessImpl.start(ProcessImpl.java:137)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 9 more
An error occurred while uploading the sketch

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

Try with 1.6.9 - this sounds like a problem related to the change in the avrdude version in 1.6.10 and the awful behavior that results from it's interaction with board manager. That's my guess at least - it looks like it's missing avrdude for some reason, and obviously without avrdude, it can't upload anything.

I get the identical error (just about word for word)
I uninstalled the ide v1.6.10 and reinstalled V1.6.9
When attempting to upload the blink example, it just displays “uploading…”

all was working well earlier this week.

Capture.PNG

Try this:

  • Tools > Board > Boards Manager...
  • Wait for the downloads to complete
  • Click the "Close button
  • Try uploading again

That fixed the issue for me. I haven't been able to identify the actual cause of the issue.

no joy here, but thanks, Pert. what version did it work with?

here’s what i’ve found.
on another laptop with V1.6.9 installed, i can upload the basic blink sketch.
but on THIS laptop, i cannot. this tells me that when i uninstall the ide, something is remaining to corrupt the new ide when i reload it. I deleted my librarys folder but still cannot upload the simplest sketch from this computer. is there a way i can purge the entire thing and start over other than uninstalling?

blissful:
here's what i've found.
on another laptop with V1.6.9 installed, i can upload the basic blink sketch.
but on THIS laptop, i cannot. this tells me that when i uninstall the ide, something is remaining to corrupt the new ide when i reload it. I deleted my librarys folder but still cannot upload the simplest sketch from this computer. is there a way i can purge the entire thing and start over other than uninstalling?

There's a folder in a non-obvious location that contains all the board manager installations. On windows it's C:/users/(your username)/AppData (hidden folder)/Local/Arduino15 and C:/users/(your username)/AppData (hidden folder)/Roaming/Arduino15 - delete those folders and reinstall 1.6.9 .

blissful:
what version did it work with?

Arduino IDE 1.6.10. That's the only version I've encountered this issue but I think I've seen other reports of it with previous versions.

So I downloaded 1.6.9 and everything works now. However, when i try to follow the example in the make avr programming book, i get another problem. I wire everything from the atmega board to the arduino. When i connect the arduino to the ground and power, the arduino shuts off. I also than get this error:

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

dasheynk:
So I downloaded 1.6.9 and everything works now. However, when i try to follow the example in the make avr programming book, i get another problem. I wire everything from the atmega board to the arduino. When i connect the arduino to the ground and power, the arduino shuts off. I also than get this error:

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

The initial description implies that you wired something incorrectly and power and ground is shorted together on the device you're connecting to, causing the computer to shut off power to the Arduino (USB ports can only supply 500mA typically). Recheck wiring - did you get power/ground backwards or something? Accidentally connected power to ground? Reset shorted to Vcc?

DrAzzy:
The initial description implies that you wired something incorrectly and power and ground is shorted together on the device you're connecting to, causing the computer to shut off power to the Arduino (USB ports can only supply 500mA typically). Recheck wiring - did you get power/ground backwards or something? Accidentally connected power to ground? Reset shorted to Vcc?

Thank you, everything works now. I accidentally wired the capacitor wrong. Thank you for all the help.

Deleting those two "hidden" folders solved my issues. thank you, DrAzzy, this is the second time this week you have solved my troubles. you again have my thanks.- Michael