I recently started working with an Arduino Nano, just as I try to compile the Blink example code it showcases a typical message I've seen while researching in the forums.
This is happening in the offline editor, if I jump to the web based one, it works flawlessly; problem is, I live in Venezuela and internet isn't very constant here, I can't rely on internet connection.
avr-g++: error: device-specs/specs-atmega328p: No such file or directory
After researching and trying to follow along solutions for other users, I ended doing the following:
Installing the most recent libraries through Board Manager
Deleting arduino15 files
Reinstalling the editor
Going for compatibility mode with Windows 7
Executing as administrator
I haven't disabled Windows Defender, don't know if it might be the cause of this. I'll attach the console output below. Thanks in advance!
Running in compatibility mode is not required and nor is disabling windows defender.
You might want to search out some of "pert" posts as he covered most of the issues with the NANO.
Most simple cause is not selecting the correct flavour of NANO as the more recent IDE's will give you two flavours. 238 and 328 old bootloader.
Are you certain that you deleted from the correct Arduino15 folder? The reason I ask is that I see from your output that the Arduino15 folder is still in use:
Try deleting C:\Users\Evil Tomato\AppData\Local\Arduino15, restart the Arduino IDE, then attempt a compilation without first installing anything from Boards Manager (which will be installed to the Arduino15 folder and put you right back where you started).
pert:
Are you certain that you deleted from the correct Arduino15 folder? The reason I ask is that I see from your output that the Arduino15 folder is still in use:Try deleting C:\Users\Evil Tomato\AppData\Local\Arduino15, restart the Arduino IDE, then attempt a compilation without first installing anything from Boards Manager (which will be installed to the Arduino15 folder and put you right back where you started).
Yes, I'm sure I've deleted it multiple times, it probably shows because I reinstalled it again when I was getting the output.
This is my new output following your instructions, thanks in advance for the help!
This sort of error could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation to see if the problem goes away, then turn the antivirus back on. If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to whitelist the appropriate file, folder, or process so it doesn't interfere with compilation.
OK, it was just a wild guess anyway. Another wild guess: from the output, it doesn't appear so, but does you user name happen to have any "strange" (sorry, I know that's not the correct term) characters in it? I did a test to see if a space in the user name would cause it, but it didn't cause any problems for me so I don't think that's it.
pert:
I created a user with a space in the name and still couldn't reproduce the problem.
Sorry for taking so long to answer the different timezones makes it hard for me to keep track of the post. Really not sure at this point of what to do, will see if I can keep testing what could be the problem, I'll see if I can run a VM on Windows 7 during the course of the following week to see if it makes any difference.
veryeviltomato contacted me to let me know they finally found the solution to this problem, but couldn't find this thread to update. In the hopes it might help others with this same problem, I'm posting the information here:
veryeviltomato:
It seems there was this GCC EXEC PREFIX environment variable on Windows that was changing the compiler for all of my GCC compiling applications, this messed up all the libraries IDE was trying to get, so I deleted it and I was able to compile using any application that used a GCC compiler no problem (Arduin IDE, Dev C++, Codeblocks, etc).