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 runtime.tools.dfu-util.path not resolving in uploader (Read 1337 times)
Harrison
Newbies
*
Offline


Posts: 5
Joined: Mar 28th, 2017
runtime.tools.dfu-util.path not resolving in uploader
Jun 2nd, 2018 at 9:28pm
Print Post  
Hello,

I'm currently running into a problem after taking a break from working on my Arduino projects. I can build and deploy code with no issues from Arduino IDE, but in Visual Studio 2017 + Visual Micro Arduino Plugin I have issues getting things to work. The build seems to work correctly, but when I try uploading to my Arduino 101 I get the folllowing output:

Code
Select All
Compiling 'MyProject' for 'Arduino/Genuino 101'
Program size: 88,192 bytes (used 57% of a 155,648 byte maximum) (2.36 secs)

Uploading 'MyProject' to 'Arduino/Genuino 101' using 'COM7'
Uploader started for board Arduino/Genuino 101
Upload method will be: bootloader
Uploading via Bootloader
0.1\arduino101load "-dfu={runtime.tools.dfu-util.path}" yProject.ino.bin" -port=COM7 "-v" -ble_fw_str="ATP1BLE00R-1631C4439" -ble_fw_pos=169984 -rtos_fw_str="" -rtos_fw_pos=0 -core=2.0.0
arduino101load 2.0.1 - compiled with go1.7.5
arduino101load 2.0.1 - compiled with go1.7.5
Starting download script...
Serial Port: COM7
BIN FILE ct.ino.bin
Waiting for device...
exec: not started 



After comparing the output to Arduino's output, I can insert arduino1 in place of {runtime.tools.dfu-util.path} and the command works correctly, leading me to believe that visual micro can't properly find that util in my packages folder. (one thing maybe to note is that the arc-elf32-g++ compiler is under packages\Intel and the dfu util is under packages\arduino in this case - but when I installed the board set from visual micro board manager that folder seems to have also copied to the packages\Intel folder, too. Not sure if that's a significant detail, but maybe worth mentioning)

I've seen a couple other topics here about this util, and the only suggestion I've seen is to try uninstalling and reinstalling the Curie board set in the board manager, and I've tried doing that in some different combinations of:

* Reinstalling just the package only
* Deleting the package before reinstalling
* Deleting the package and cached download before reinstalling
* Installing from the Arduino IDE board manager
* Installing from the Visual Micro board manager

None of these options seem to work. For now my only workaround is to copy that command into command prompt and manually insert the path into the command

Question is: Is this a known issue? How can I get visual micro to properly find and insert {runtime.tools.dfu-util.path} into the load command?

Thanks,
Harrison

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: runtime.tools.dfu-util.path not resolving in uploader
Reply #1 - Jun 2nd, 2018 at 10:07pm
Print Post  
Useful post thanks. A couple of users have reported the same but for most it's fine.

It's useful to know the dfu-util.exe is in the correct location for you. We will add some trace info to the next release so we can see why the tools resolver stops looking for tools in some cases.

I'll do some testing.

btw: 

If you don't want to hard code your core you can override with a board.txt in the project...

You add an empty board.txt to your project (or use the visual micro "Add Code" menu) then add the following line to the file. Then click Save. Does the upload then work?

Code (C++)
Select All
runtime.tools.dfu-util.path=C:\Users\[your_name]\AppData\Local\arduino15\packages\arduino\tools\dfu-util\0.9.0-arduino1 

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: runtime.tools.dfu-util.path not resolving in uploader
Reply #2 - Jun 2nd, 2018 at 10:14pm
Print Post  
++ pls switch on "vmicro>compiler>show build properties"and "verbose". then email the build output as .txt to info[at]visualmicro.com along with link to this post.

Thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint