After compilation in IDE 1.8.19, I received the following error message:
java.io.IOException: Cannot run program "C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude": CreateProcess error=2, The system cannot find the file specified. This after several other successful compilations and loads. I reinstalled 1.8.19 and the same thing occurred - avrdude is not found. A search finds avrdude.exe in several higher-level directories (with different dates). How can I fix this? (And how did it happen?)
Hi @Bobsloginid. This error can be caused by something going wrong during a Boards Manager installation. That can often be fixed by removing and then re-installing the broken boards platform via Boards Manager.
Please try this:
- Select Tools > Board > Boards Manager... from the Arduino IDE menus.
The "Boards Manager" dialog will open. - Wait for the updates to finish, as shown by the messages printed at the bottom of the "Arduino AVR Boards" dialog.
- Scroll down through the list of boards platforms until you find the "Arduino AVR Boards" entry. Click on it.
A "Select version" menu will appear in the entry. - Click on the "Select version" menu.
The menu will expand. - Select "1.6.23" from the menu.
- Click the "Install" button on the "Arduino AVR Boards" entry.
- Wait for the installation to finish.
- Click the "Update" button on the "Arduino AVR Boards" entry.
- Wait for the update to finish.
- Click the "Close" button on the "Boards Manager" dialog.
The "Boards Manager" dialog will close.
Now try uploading to your board again. Hopefully the error will no longer occur.
Thanks for the suggestion, but it didn't help. avrdude didn't appear in the target directory for either "update'. Interestingly, the /etc directory (neighbor of /bin) has an avrdude.exe - I'm tempted to copy it over.
I also not that the avrdude subdirectory in the chain has two subdirectories, 6.3.0-arduino9 and 6.3.0-arduino17 Is the former some sort of old stuff?
-Bob
correction: avrdude.exe is now missing from both /bin and /etc.
Problem (partially) solved. I downloaded the zip file for 1.8.19, searched through it for the subdirectory where my system couldn't find an avrdude, and, pleasant surprise, there was an avrdude.exe! I unziped it to the subject directory and now its all working. I have no idea why it didn't get installed via the windows installer, or the boards installer.
-Bob
![]()
Linux?
Windows!
What OS do you have?
Window 10
My guess is that it was installed, but then your antivirus/security software quarantined the file.
Good call! MalwareBytes sandboxed it on March 8 at noon. I just now added it to the allow list. Thanks
-Bob
You are welcome. I'm glad the mystery of the missing AVRDUDE has been solved!
Regards, Per
Per-
I've notified malware Bytes about the file (it's the only avrdude of several the trips a switch). Also, Norton thinks it's OK - haven't tried others.
-Bob
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.