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 VisualMicro and Maple Mini problem - not uploading (Read 3724 times)
Marius S
Junior Member
**
Offline


Posts: 11
Joined: Sep 26th, 2013
VisualMicro and Maple Mini problem - not uploading
Jan 26th, 2015 at 8:04pm
Print Post  
Hi Tim!

Can you please help with this?

Eventually I found a workaround for the problem but I would like to know if there is a solution so everything work as it was intended.

The setup is like this:

Visual Studio 2013 with SP4, VisualMicro plugin.
The board used is Maple Mini. 
The Arduino version is 1.6.0 (but it does not matter being an RC version, the same behavior is also on 1.5.8). I use the modifications from http://www.rogerclark.net/stm32f103-and-maple-maple-mini-with-arduino-1-5-x-ide/ modifications that allow programming STM32 based boards.

If I try to upload a sketch (say blink without delay example) using directly the Arduino IDE I have no problem. It compiles, it uploads.

If I try to upload a sketch (same one, blink without delay) using VisualMicro and Visual Studio, it compiles but it does not upload throwing the following error:

Code
Select All
Reset via USB Serial completed
{runtime.hardware.path}\tools\win\maple_upload.bat COM6 1 1EAF:0003 i\BlinkWithoutDelay.bin"
The system cannot find the file specified 



After some digging I found out that the problem is that the variables {path},{runtime.hardware.path} are not correctly interpreted by Visual Micro.

If I replace {path} with the actual path to maple_upload.bat, then everything is working great.
Please see below the relevant fragment from platform.txt file.

Code
Select All
# Upload using Maple bootloader over DFU
tools.maple_upload.cmd=maple_upload
tools.maple_upload.cmd.windows=maple_upload.bat
#tools.maple_upload.cmd.linux=maple_upload               
tools.maple_upload.path={runtime.hardware.path}/tools/win
tools.maple_upload.path.macosx={runtime.hardware.path}/tools/macosx
tools.maple_upload.path.linux={runtime.hardware.path}/tools/linux   

tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
#tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}\{build.project_name}.bin"
ls\win/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}\{build.project_name}.bin" 



The highlighted line is the one that make everything work, the previous commented one being the one that cause the issue.

Thank you,
Marius 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualMicro and Maple Mini problem - not uploading
Reply #1 - Jan 26th, 2015 at 10:20pm
Print Post  
Hi,

Thanks for the useful report.

Please switch on:-

"tools>options>visual micro>compiler>show build properties"
"tools>options>visual micro>compiler>verbose"

Then click "Build>Clean"

Then click Build or Upload etc.

Please email the output to info [at] visualmicro.com

Thanks
  
Back to top
IP Logged
 
Marius S
Junior Member
**
Offline


Posts: 11
Joined: Sep 26th, 2013
Re: VisualMicro and Maple Mini problem - not uploading
Reply #2 - Jan 27th, 2015 at 8:49am
Print Post  
Hi,

I've sent you the file with the requested info's. 
Same behavior on two different PC's, one loaded with Windows 7 x64 and the other with Windows 8.1 x64.

LE: I've emailed also a second file with the output using Arduino 1.5.8 so there is no doubt since previously I was using a beta of a beta (v 1.6.0 RC1). Same behavior.

Thank you,
Marius
« Last Edit: Jan 27th, 2015 at 9:09am by Marius S »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint