Arduino start of compilation : open NUL: Impossible to find specified file

I am a new starter with Arduino and I want to use it for educational purposes. When i even use an example sketch such as "Blink" and start the compilation the compilation doesn't complete and appear a message: Arduino:1.8.15 (Windows 7), Scheda:"Arduino Uno"
open NUL: Impossibile trovare il file specificato.
Errore durante la compilazione per la scheda Arduino Uno. (italian)

open NUL: Impossible to find specified file
Error during compilation Arduino Board (english)

This happens for ALL example sketch so I believe it is a problem related to the IDE installation. My operation system is Windows 7 Professional

Somebody might help me? Thanks in advance

I want to give you some more information about my problem. The whole error message is the following.

Arduino:1.8.15 (Windows 7), Scheda:"Arduino Uno"

C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\USER\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10815 -build-path C:\Users\USER\AppData\Local\Temp\arduino_build_393399 -warnings=all -build-cache C:\Users\USER\AppData\Local\Temp\arduino_cache_953828 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Program Files\Arduino\examples\01.Basics\Blink\Blink.ino

C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\USER\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10815 -build-path C:\Users\USER\AppData\Local\Temp\arduino_build_393399 -warnings=all -build-cache C:\Users\USER\AppData\Local\Temp\arduino_cache_953828 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Program Files\Arduino\examples\01.Basics\Blink\Blink.ino

Using board 'uno' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\USER\AppData\Local\Temp\arduino_build_393399\sketch\Blink.ino.cpp" -o nul

open NUL: Impossibile trovare il file specificato.

Errore durante la compilazione per la scheda Arduino Uno.

May be this additional information can be useful to solve my problem
Thanks in advance

Hi @louis1957,

It sounds like you need to change your home folder for the Arduino IDE. With Arduino IDE open, go to the top menu bar and select Arduino / Preferences (MAC)
Screen Shot 2021-08-29 at 3.14.16 PM

Next, change the "Sketchbook Location" to wherever you have the folder stored on your device (its named "Arduino")

Mine is on my desktop.

Hope this helps.

Thankyou Kgrey9,
my interface IDE seems different from yours. Im using Windows 7. In the picture you see my IDE and all sketces are located in the folder. I put the sketch in the prefered folder but still doesnt work.

In any case I thank you so muche for helping

Hi,

Make sure it is in another folder of the same name. Example file:
/Users/kgray/Desktop/Arduino/mycode/mycode.ino

Also, is your “Arduino” folder in documents?

Try starting completely from the beginning by uninstalling the IDE: How to do a complete uninstall of the Arduino IDE . Then reinstalling the IDE.

Thank you truss-dk
I unistalled completely Arduino and delated all folders also folders with Arduino data and installed again the IDE but I obtain the same problem. I will try with a different PC. Thank you for the help

I installed the IDE on a newer portable PC and everythings seems now to work. I tested the "Blink" software changing times of led lighting and everything works. Thanks to everybody for helping. I will post something else if i'll have new problems

1 Like