Arduino 1.8.19, Windows 10, Arduino Nano.
Hi, I get the following error when I click verify or upload
CreateFile C:\Users\Dell\AppData\Local\Temp\arduino_build_689334: The system cannot find the file specified.
Error compiling for board Arduino Nano.
This happens after every single successful verify or upload.
Restarting the IDE fixes it for a single verify/upload only.
Uninstalling and reinstalling the IDE has not fixed this.
I hope that makes sense, any pointers appreciated.
Thank you
Andy.
xfpd
December 22, 2024, 4:19pm
2
Post the complete error and use the <CODE> button to put it all in a "terminal" font.
Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dell\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Dell\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries G:\Dropbox\CODE\libraries -fqbn=arduino:avr:nano:cpu=atmega328old -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\Dell\AppData\Local\Temp\arduino_build_710503 -warnings=all -build-cache C:\Users\Dell\AppData\Local\Temp\arduino_cache_929663 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose G:\Dropbox\CODE\004 SANDBOX\241222_pwm_example\241222_pwm_example.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dell\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Dell\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries G:\Dropbox\CODE\libraries -fqbn=arduino:avr:nano:cpu=atmega328old -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\Dell\AppData\Local\Temp\arduino_build_710503 -warnings=all -build-cache C:\Users\Dell\AppData\Local\Temp\arduino_cache_929663 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Dell\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose G:\Dropbox\CODE\004 SANDBOX\241222_pwm_example\241222_pwm_example.ino
CreateFile C:\Users\Dell\AppData\Local\Temp\arduino_build_710503: The system cannot find the file specified.
Error compiling for board Arduino Nano.
xfpd
December 22, 2024, 5:03pm
4
What board are you using? Looks like Nano clone. Are you using the CLI or the GUI?
Are you signed-in to Dropbox? Try moving the folder locally.
sonofcy
December 22, 2024, 5:36pm
5
Use verbose option. Make sure you save sketch before verify or upload.
Yea, its a clone.
Tried with an OEM Micro with the same result.
Signed out of Dropbox, working on local folders.
Verbose in checked under prefs, sketch is fresh after every UI restart.
Using GUI.
xfpd
December 22, 2024, 7:08pm
8
The error says it is trying to find the Dropbox file. You will need to fix that.
Where does it say it cannot find the source file?
Following initial compilation and upload [successful], it seems to lose the temporary file created during compile time during subsequent attempts.
Unless I'm reading it wrong or my understanding is amiss?
I think I need to monitor the temp file directory to see if the files are being cleaned up following compilation & upload.
sonofcy
December 22, 2024, 7:22pm
10
Do a save before a compile or upload
Just to clarify, I load a sketch I don't change, I have to save it again before upload?
Something to do with attributes?
The arduino_cache_xxxxxx and arduino_build folders disappear after successful upload.
Folder C:\Users\Dell\AppData\Local\Temp\
Looks like a windows storage management issue unless something within the arduino ide [gui] does this ?
sonofcy
December 22, 2024, 7:39pm
13
If no change not normally needed, but with Dropbox all bets are off. I encounter these types of issues frequently. Witojut a long winded explainer, temporary files are involved and somehow they get messed up when non local file storage is used. I use Windows cloud called OneDrive but I have all files forced to be local so my real sketch is always where you expect it to be (on my SSD) BUT the temp files I have no 'local' option for so they cause a problem unless I force a save.
I have "save on compile and upload' checked in prefs.
My G-drive is local with a folder called dropbox but the dropbox app is not enabled [no active synchronizing].
It's still the same.
However...
Folders in the temp directory are removed after initial upload and are therefore missing the next time I verify or upload, hence the error.
Thank you anyway.
sonofcy
December 22, 2024, 7:49pm
17
That sounds familiar, what version of IDE are you using?
sonofcy
December 22, 2024, 7:58pm
19
It was an issue in Ver2.x so I don't know.