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) Problem with uploader (Read 3900 times)
spcmicro
Newbies
*
Offline


Posts: 6
Joined: Jun 25th, 2018
Problem with uploader
Jun 25th, 2018 at 6:14pm
Print Post  
I have installed Visual Micro for VS 2017 and the build works fine except the uploader. I am getting an error in the output window in VS that says "The system cannot find the file specified". the path to nrfutil is valid and if I go to a command line and execute the command the uploader works fine. It also works fine from the Arduino IDE. I noticed in the path to the nrfutil.exe command there is a mix of forward and backslash characters as well as a space in the path. In the parameters to the command there are ~ characters for parts of the path longer than 8 characters which looks like they are being forced to 8.3 format. 

I can't believe that what I am seeing is not a common problem but it must be something I'm doing wrong because I haven't been able to find other users with the problem as well as a specific solution for the problem yet.

I have tried all combinations of bootloaders and programmers to no avail.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with uploader
Reply #1 - Jun 25th, 2018 at 6:26pm
Print Post  
switch on vmicro>compiler>verbose and also "show build properties". then try the upload and copy the output into a .txt file. Then email the file to info[at]visualmicro.com with link to this post or attach it here
  
Back to top
IP Logged
 
spcmicro
Newbies
*
Offline


Posts: 6
Joined: Jun 25th, 2018
Re: Problem with uploader
Reply #2 - Jun 25th, 2018 at 6:50pm
Print Post  
See attached file
  

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with uploader
Reply #3 - Jun 26th, 2018 at 5:42pm
Print Post  
Thanks for the file. The build works ok for me. I suspect one difference is that your "c:\users\[name]" has spaces in the folder path. For this reason Visual Micro defaults to 8.3 short file names which the adafruit core might not be handling correctly.

Please add the following line to board.txt in your local project then click Save

upload.8dot3=false

Does the upload work okay with this change?
  
Back to top
IP Logged
 
spcmicro
Newbies
*
Offline


Posts: 6
Joined: Jun 25th, 2018
Re: Problem with uploader
Reply #4 - Jun 26th, 2018 at 10:13pm
Print Post  
No difference. I've attached the log
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
spcmicro
Newbies
*
Offline


Posts: 6
Joined: Jun 25th, 2018
Re: Problem with uploader
Reply #5 - Jun 30th, 2018 at 11:39am
Print Post  
Any thoughts?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with uploader
Reply #6 - Jun 30th, 2018 at 4:31pm
Print Post  
Sorry forgot to come back to you

You need both of these in board.txt

Code (C++)
Select All
upload.buildpath.8dot3=false
upload.8dot3=false 




don't forget to click save after editing board.txt because vs auto saves after the build

Info

Some board defs do not have quotes around the file names. In this case your user folder in windows would be an issue because it has a space between your first name and last name. In this case the build used to break quite often so we defaulted to 8dot3 which is always valid on windows.

Unfortunately some some programs, such as nrfutil.exe, don't work fully on windows so we have to disable short file names for some cores. I will add this to the next release for ntf boards but the above settings give you similar solution.
« Last Edit: Jun 30th, 2018 at 4:32pm by Tim@Visual Micro »  
Back to top
IP Logged
 
spcmicro
Newbies
*
Offline


Posts: 6
Joined: Jun 25th, 2018
Re: Problem with uploader
Reply #7 - Jun 30th, 2018 at 6:09pm
Print Post  
Still a problem although the path for the zip looks OK now. I think it's the path to nrfutil that has the space in it that is the still the problem. See attached file.
Is there a way to move the location of the arduino packages that the adafruit tools are in? I already made the arduino IDE install folder be under the root folder but that didn't change where the packages for adafruit are located. Still puts them under the user folder, where the space shows up.
Any suggestions? 
Thanks for the help so far.
  

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with uploader
Reply #8 - Jun 30th, 2018 at 6:29pm
Print Post  
If you create a folder called portable under the arduino ide then both visual micro and arduino will use the portable folder instead of appdata\arduino15

You can copy/move arduino15 into portable if you want all your downloaded (contributed) packages.

OR

In visual micro you can set the Contributions Folder under "tools>options>visual micro" which overrides the portable and appdata areas.

I am not sure why you still have a problem I will try a contributions folder with spaces in when I get a spare mo
  
Back to top
IP Logged
 
spcmicro
Newbies
*
Offline


Posts: 6
Joined: Jun 25th, 2018
Re: Problem with uploader
Reply #9 - Jul 2nd, 2018 at 9:30am
Print Post  
Moved arduino15 into portable and reloaded Adafruit library and I'm now able to upload and debug. Looks like there is a problem with spaces in the path to nrfutil.
Thanks for all of your help. I'm able to single step my code in the debugger and everything seems fine.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with uploader
Reply #10 - Jul 2nd, 2018 at 11:34am
Print Post  
Great
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint