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 Custom Uploader not seen unless in Arduino install dir (Read 3613 times)
CapnBry
Junior Member
**
Offline


Posts: 32
Joined: Nov 4th, 2011
Custom Uploader not seen unless in Arduino install dir
May 29th, 2014 at 5:53pm
Print Post  
I usually SSH or HTTP POST my sketches to their hardware after building using some shell scripts I've created. I noticed that the newest Visual Micro supports the Arduino 1.5.x extensions to allow custom uploaded so I was stoked about being able to upload right from Visual Studio.

Arduino/hardware/avr/platform.txt
Code
Select All
To\SSH avrdude.bat"
tools.brydude.program.pattern="{cmd.path}" {build.path}/{build.project_name}.hex
tools.brydude.program.params.quiet=
 



Arduino/hardware/avr/programmers.txt
Code
Select All
brydude.name=BryDUDE
brydude.program.tool=brydude
brydude.program.extra_params=
 



This works great when I add them to the bottom of their respective files in the Arduino install directory, but they don't work if I put them in a USERPROFILE/Arduino/hardware/avr/ directory (the programmer doesn't even show up on the list). Is this supported at all? What path is searched for platform.txt and programmers.txt files?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Custom Uploader not seen unless in Arduino install dir
Reply #1 - May 29th, 2014 at 7:01pm
Print Post  
Strange, the programmer should show up regardless, there is no validation prior to running the command. 

Can you please email the .txt files with your preferred config to (info[at]visualmicro.com) so I can see what it's doing. Thanks

Other info might or might not be useful...

the {variables} can be anything so you could just as easily use...

\SSH avrdude.bat
tools.brydude.program.pattern="{brydude_uploader_path}" {build.path}/{build.project_name}.hex

From my memory I think vm also supports windows environment %variables%

I think two sets of quotes could be applied because you have then around the cmd.path= and also around the "{cmd.path}"
« Last Edit: May 29th, 2014 at 7:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Custom Uploader not seen unless in Arduino install dir
Reply #2 - May 29th, 2014 at 9:21pm
Print Post  
1.5 custom boards location should be C:\Users\tl\Documents\Arduino\hardware\avr\[custom board collection name]

Sorry for the slow forum, Hopefully moving to a new server over the next couple of days
« Last Edit: May 29th, 2014 at 9:31pm by Tim@Visual Micro »  
Back to top
IP Logged
 
CapnBry
Junior Member
**
Offline


Posts: 32
Joined: Nov 4th, 2011
Re: Custom Uploader not seen unless in Arduino install dir
Reply #3 - May 30th, 2014 at 8:55pm
Print Post  
Tim worked it out with me and the issue was just that my board had to be selected before the programmer would show up as being available. Totally working as it should.

For anyone curious how to flash an Arduino that's plugged into a remote machine, I use Putty's plink utility and  just pipe the hex file over ssh to the machine.
Code
Select All
rem DEV can be either by the ID of the FTDI adapter (stays the same no matter
rem what order it is plugged in)
set DEV=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A700eYGn-if00-port0

rem OR the sequential numbered device
rem set DEV=/dev/ttyUSB0

rem change this to where you have putty installed
cd \SysTools\Putty
plink yourusername@machine.address.net avrdude -p m328p -c arduino -P %DEV% -V -D -Uflash:w:-:i < "%1"
 

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