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 VS 2017 and Arduino 101 not loading sketch (Read 33326 times)
EBRAddict
Newbies
*
Offline


Posts: 6
Joined: Aug 27th, 2016
VS 2017 and Arduino 101 not loading sketch
Jul 6th, 2017 at 7:42pm
Print Post  
Hi, 

I did search for a resolution on this forum but didn't see anything. When I try to upload a project to the Arduino 101 it doesn't work. It does work when I upload via the Arduino IDE.

Here's the verbose output from the compile/upload, attached.

  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2017 and Arduino 101 not loading sketch
Reply #1 - Jul 6th, 2017 at 7:56pm
Print Post  
Thanks for the info

1) does it work with this release?

https://1drv.ms/u/s!AsT00oFsGAmRkcdvRyZ4AtDKAeG_mQ

2)

Can i see a verbose output from arduino ide upload please. file>preferences>verbose upload.
« Last Edit: Jul 6th, 2017 at 7:57pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
EBRAddict
Newbies
*
Offline


Posts: 6
Joined: Aug 27th, 2016
Re: VS 2017 and Arduino 101 not loading sketch
Reply #2 - Jul 6th, 2017 at 8:06pm
Print Post  
It did not work with the release.

Here's the output from the Arduino IDE, attached.
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2017 and Arduino 101 not loading sketch
Reply #3 - Jul 8th, 2017 at 3:21pm
Print Post  
Thanks

The error that visual micro showed was inability to reset the board. There are some pauses required during this process which differed slightly to the arduino ide. There will be a new release of visual micro later today or tomorrow with this change. Hopefully it's the problem.

  
Back to top
WWW  
IP Logged
 
EBRAddict
Newbies
*
Offline


Posts: 6
Joined: Aug 27th, 2016
Re: VS 2017 and Arduino 101 not loading sketch
Reply #4 - Jul 8th, 2017 at 8:08pm
Print Post  
OK, I've got a workaround until then.

It might not be an issue but I also noted that the dfu-util path wasn't resolved in the VS upload--it shows a {} reference where the filepath should be--compared with the Arduino IDE output.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2017 and Arduino 101 not loading sketch
Reply #5 - Jul 8th, 2017 at 8:09pm
Print Post  
Ok, please try the new release in the gallery it does resolve local tools slightly better.
  
Back to top
WWW  
IP Logged
 
Mac Gruber
Newbies
*
Offline


Posts: 1
Joined: Jul 23rd, 2017
Re: VS 2017 and Arduino 101 not loading sketch
Reply #6 - Jul 23rd, 2017 at 10:11pm
Print Post  
I have a very similar problem.  Running the latest version.  Copying the upload line out of the verbose output and manually specifying the dfu-util path works.  The Arduino IDE also works.  I've tried reloading the toolchain, but it has not helped.

The output in VS 2017:

arduino101load 2.0.1 - compiled with go1.7.5
Starting download script...
Serial Port: COM6
BIN FILE C:\Users\****\AppData\Local\Temp\VMBuilds\HPC2\INTEL_~1\Release/HPC2.ino.bin
Waiting for device...
exec: not started

Line from VS:
arduino101load "-dfu={runtime.tools.dfu-util.path}" in" -port=COM6 "-v" -ble_fw_str="ATP1BLE00R-1631C4439" -ble_fw_pos=169984 -rtos_fw_str="" -rtos_fw_pos=0 -core=2.0.0

Manually from the DOS prompt:
\arduino101load .0-arduino1" bin" -port=COM6 "-v" -ble_fw_str="ATP1BLE00R-1631C4439" -ble_fw_pos=169984 -rtos_fw_str="" -rtos_fw_pos=0 -core=2.0.0


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2017 and Arduino 101 not loading sketch
Reply #7 - Jul 29th, 2017 at 12:33pm
Print Post  
Sorry for the delay. Other users have said they had this issue after installing the 101 via the visual micro board manager.

They say the fix was to use the arduino board manager to uninstall then reinstall the 101 hardware.

I just tested the 101 and it worked ok for me so please try using the arduino board manager

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