Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Re: The dreaded "The system cannot find the file specified" (Read 4689 times)
Chemist
Newbies
*
Offline


Posts: 6
Joined: Jan 24th, 2018
Re: The dreaded "The system cannot find the file specified"
Jan 25th, 2018 at 12:01am
Print Post  
{runtime.tools.openocd-0.9.0-arduino6-static.path}\bin\openocd.exe -d2 -s "{runtime.tools.openocd-0.9.0-arduino6-static.path}/share/openocd/scripts/" -f .17/variants/ARDUIN~1/OPENOC~1/ARDUIN~1.CFG -c "telnet_port disabled; program no_zero_edbg\Release/WriteMultipleVoltages_BrSp.ino.bin}} verify reset 0x2000; shutdown"
The system cannot find the file specified




Sorry for that.  It was longer than I thought!  I'll attach it as a txt file as well.
« Last Edit: Jan 25th, 2018 at 12:05am by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The dreaded "The system cannot find the file specified"
Reply #1 - Jan 25th, 2018 at 12:07am
Print Post  
Hi,

Try opening the micro explorer and clicking rescan.

See if the fixes it
  
Back to top
IP Logged
 
Chemist
Newbies
*
Offline


Posts: 6
Joined: Jan 24th, 2018
Re: The dreaded "The system cannot find the file specified"
Reply #2 - Jan 25th, 2018 at 12:39am
Print Post  
No Luck:

Quote:
Uploading 'WriteMultipleVoltages_BrSp' to 'Arduino/Genuino Zero (Programming Port)' using 'COM12'
Uploader started for board Arduino/Genuino Zero (Programming Port)
Upload method will be: bootloader
Uploading via Bootloader 
{runtime.tools.openocd-0.9.0-arduino6-static.path}\bin\openocd.exe -d2 -s "{runtime.tools.openocd-0.9.0-arduino6-static.path}/share/openocd/scripts/" -f .17/variants/ARDUIN~1/OPENOC~1/ARDUIN~1.CFG -c "telnet_port disabled; program no_zero_edbg\Release/WriteMultipleVoltages_BrSp.ino.bin}} verify reset 0x2000; shutdown"
The system cannot find the file specified



Interestingly, I can't upload with the arduino IDE either now (probably coincidence) Quote:
Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Zero (Programming Port)"

Sketch uses 10008 bytes (3%) of program storage space. Maximum is 262144 bytes.
java.io.IOException: Cannot run program "___REMOVE___/bin/openocd.exe": 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:129)
     at er.java:207)
     at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
     at processing.app.SketchController.upload(SketchController.java:713)
     at processing.app.SketchController.exportApplet(SketchController.java:686)
     at processing.app.Editor$DefaultExportHandler.run(Editor.java:2168)
     at java.lang.Thread.run(Thread.java:748)
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)
     ... 8 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.
  
Back to top
 
IP Logged
 
Chemist
Newbies
*
Offline


Posts: 6
Joined: Jan 24th, 2018
Re: The dreaded "The system cannot find the file specified"
Reply #3 - Jan 25th, 2018 at 12:41am
Print Post  
in VS, I'm using the EDBG uploader but oddly enough, when I enable "Always use programmer for upload", the path isn't shortened:

Quote:
Uploading 'WriteMultipleVoltages_BrSp' to 'Arduino/Genuino Zero (Programming Port)' using 'Atmel EDBG'
Uploader started for board Arduino/Genuino Zero (Programming Port)
Uploader will use programmer name: edbg
{runtime.tools.openocd-0.9.0-arduino6-static.path}\bin\openocd.exe -d2 -s "{runtime.tools.openocd-0.9.0-arduino6-static.path}/share/openocd/scripts/" -f /variants/arduino_zero/openocd_scripts/arduino_zero.cfg" -c "telnet_port disabled; program no_zero_edbg\Release/WriteMultipleVoltages_BrSp.ino.elf}} verify reset; shutdown"
Error during upload using programmer
The system cannot find the file specified

The system cannot find the file specified
The uploader returned an error
« Last Edit: Jan 25th, 2018 at 12:41am by Chemist »  
Back to top
 
IP Logged
 
Chemist
Newbies
*
Offline


Posts: 6
Joined: Jan 24th, 2018
Re: The dreaded "The system cannot find the file specified"
Reply #4 - Jan 25th, 2018 at 1:18am
Print Post  
Ah OK, I'm getting somewhere:  The Arduino IDE says that it cannot find the openocd.exe file.  I have 5 places where it is on my computer:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\kujnizuc.ibs\Micro Platforms\default\tools\openocd-0.9.0\bin


C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\kujnizuc.ibs\Micro Platforms\default\tools\openocd-0.9.0\bin-x64

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\gwwo4b5e.has\Micro Platforms\default\tools\openocd-0.9.0\bin

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\gwwo4b5e.has\Micro Platforms\default\tools\openocd-0.9.0\bin-x64

rduino\bin

Which one is the correct one? (and should I delete the rest?)




  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The dreaded "The system cannot find the file specified"
Reply #5 - Jan 25th, 2018 at 1:26am
Print Post  
Don't try looking to hard you will get confused. The open ocd in the visual micro extension folder is for gdb not for upload.

Use board manager in the arduino ide to reinstall your samd core. It sounds like it's corrupted

The cores are stored in users\appdata but the board manager handles all that.

when your build is working in the arduino ide then open visual studio and try that

don't set a programmer just use the defaults.

Thanks
« Last Edit: Jan 25th, 2018 at 1:27am by Tim@Visual Micro »  
Back to top
IP Logged
 
Chemist
Newbies
*
Offline


Posts: 6
Joined: Jan 24th, 2018
Re: The dreaded "The system cannot find the file specified"
Reply #6 - Jan 25th, 2018 at 2:28am
Print Post  
Will do.  THanks!
  
Back to top
 
IP Logged
 
Chemist
Newbies
*
Offline


Posts: 6
Joined: Jan 24th, 2018
Re: The dreaded "The system cannot find the file specified"
Reply #7 - Jan 25th, 2018 at 2:34am
Print Post  
Perfect.  Fixed! Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint