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
Hot Topic (More than 8 Replies) VS 17 - The system cannot find the file specified (Read 9512 times)
TrevorM
Newbies
*
Offline


Posts: 6
Joined: Apr 17th, 2017
VS 17 - The system cannot find the file specified
Apr 17th, 2017 at 3:54am
Print Post  
I can build this in Visual Studio code with platform.io, but I really want to use VS17. However, while I can build it, when I go to "build and upload" I keep getting this error.

Why doesn't the viusal micro put this error in context....?
What file?
Where is it looking?


Compiling debug version of 'TestSend' for 'ATmega168/328 w/ Atmega328P @ 16MHz w/Arduino as ISP'
Program size: 3,378 bytes (used 10% of a 32,768 byte maximum) (1.74 secs)
Minimum Memory Usage: 399 bytes (78% of a 512 byte maximum)
 
Uploading 'TestSend' to 'ATmega168/328 w/ Atmega328P @ 16MHz w/Arduino as ISP' using 'COM3'
The system cannot find the file specified
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 17 - The system cannot find the file specified
Reply #1 - Apr 17th, 2017 at 7:07pm
Print Post  
Hi,

This might be related to using a programmer that also uses a COM port. There is a fix in the next release where the port was not being provided (misleading message you can see).

The pre-release is here http://www.visualmicro.com/forums/YaBB.pl?num=1491650979

If that doesn't help then please switch on vmicro>compiler>verbose and also vmicro>compiler>show build properties. Then build and attempt upload. Email the results as a .txt to info[at]visualmicro.com along with a link to this post.

Thanks
  
Back to top
IP Logged
 
TrevorM
Newbies
*
Offline


Posts: 6
Joined: Apr 17th, 2017
Re: VS 17 - The system cannot find the file specified
Reply #2 - Apr 18th, 2017 at 4:01am
Print Post  


This doesn't seem to have fixed anything. I still get the same warning as I originally posted. 
However, if I change the programmer (to either of the two options) I get a slightly different message that might give more details to what is going on (maybe).
The hex file path is shortened with tilde '~' at a length of 8 char. 
When I navigate to that location I do see the hex file and I have even used Xloader to load that file and it works.
Is the error referring to the hex file?

If so, why is the path being shortened?

Uploading 'AnotherTestSend' to 'ATmega168/328 w/ Atmega328P @ 16MHz w/Arduino as ISP' using 'COM3'
Uploader started for board ATmega168/328 w/ Atmega328P @ 16MHz w/Arduino as ISP
Upload method will be: bootloader
Uploading via Bootloader 
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\3hu2iyqt.s0h\Micro Platforms\visualmicro\ide\hardware\tools\avr\bin\avrdude -C"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\3hu2iyqt.s0h\Micro Platforms\visualmicro\ide\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -c -P\\.\COM3 -b115200 -D otherTestSend.ino.hex":i
The system cannot find the file specified
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 17 - The system cannot find the file specified
Reply #3 - Apr 18th, 2017 at 9:51am
Print Post  
Please follow my request at the end of my previous messages that explains what to do if the update does not help
  
Back to top
IP Logged
 
TrevorM
Newbies
*
Offline


Posts: 6
Joined: Apr 17th, 2017
Re: VS 17 - The system cannot find the file specified
Reply #4 - Apr 18th, 2017 at 4:27pm
Print Post  
Ok, sorry I didn't see the last part of your previous post. I just sent over the log to the email you gave me.

Thanks for your help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 17 - The system cannot find the file specified
Reply #5 - Apr 18th, 2017 at 9:23pm
Print Post  
Okay I think I found your board. It is important to always explain about and give links to your hardware when making reports in the forum. There are lots of different boards and some have special instructions.

It looks like your board has special instructions that it has to be configured to use a programmer for upload. The programmer I guess is Arduino as ISP

So you need to select the programmer on the vMicro>Uploader menu and also switch on "always use for uploads" (just below the programmer selection on the same menu)

Alternatively you can switch on the "Micro Programmers" tool bar which gives more obvious setting.

The board you installed i guess was from here?

http://www.leonardomiliani.com/repository/package_leonardomiliani.com_index.json

It fails to upload if you have not enabled a programmer.

Make sense?
  
Back to top
IP Logged
 
TrevorM
Newbies
*
Offline


Posts: 6
Joined: Apr 17th, 2017
Re: VS 17 - The system cannot find the file specified
Reply #6 - Apr 19th, 2017 at 2:42am
Print Post  
The board is Gikfun V3.0 ATmega328 CH340G

https://www.amazon.com/gp/product/B00SGMEH7G/ref=oh_aui_detailpage_o07_s01?ie=UT...

I didn't get the board where you thought I did. The driver seemed to already be there when I plugged the board in (via the USB cable).

I was able to go to vMicro>Uploader and selected "always use for uploads". 
However, the only programmers I have to choose from are:
AVR Dragon as ISP
Atmel mEDBG

When selecting either of those I get a different error:

Uploading 'AnotherTestSend' to 'ATmega168/328 w/ Atmega328P @ 16MHz w/Arduino as ISP' using 'medbg'
Uploader started for board ATmega168/328 w/ Atmega328P @ 16MHz w/Arduino as ISP
Uploader will use programmer name: medbg
no5\bin\avrdude duino5/etc/avrdude.conf" -v -patmega328p -cstk500v2 -Pusb egax8_328_16\Debug/AnotherTestSend.ino.hex:i"
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         System wide configuration file is ino5/etc/avrdude.conf"
         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb"
Error during upload using programmer
The uploader process failed

The uploader process failed
The uploader returned an error
  
Back to top
 
IP Logged
 
TrevorM
Newbies
*
Offline


Posts: 6
Joined: Apr 17th, 2017
Re: VS 17 - The system cannot find the file specified
Reply #7 - Apr 19th, 2017 at 2:44am
Print Post  
I also wanted to say thanks again for all of the help. I am a C++ dev but new to Arduino.

My current workaround is to use VS 17 with VisualMicro to create the .hex files and use Xloader to upload the hex.
  
Back to top
 
IP Logged
 
TrevorM
Newbies
*
Offline


Posts: 6
Joined: Apr 17th, 2017
Re: VS 17 - The system cannot find the file specified
Reply #8 - Apr 19th, 2017 at 3:02am
Print Post  
Ok, I was able to get it working now.

I switched the board to Arduino Nano w/ATmega328 and actually de-selected the "use when uploading", but I am using the 'Arduino as ISP'


Thanks again for your help!

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 17 - The system cannot find the file specified
Reply #9 - Apr 19th, 2017 at 8:59am
Print Post  
Hi,

Okay some confusion.

You are NOT using an Arduino as ISP. You are using standard Arduino COM port upload.

In the Arduino IDE is always looks as though a programmer is selected but actually it is not used unless you click "Sketch>Upload using programmer"

In Visual Micro, Arduino as ISP. is only used if you have checked the "Always use" setting. The setting allows a single set of upload commands to vary between normal COM and a programmer.

I hope this makes sense. I think it's easier than you expected  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint