VS Arduino
>> >> Upload Error with Pololu A-Star Board
https://www.visualmicro.com/forums/YaBB.pl?num=1580470739

Message started by wep on Jan 31st, 2020 at 11:38am

Title: Upload Error with Pololu A-Star Board
Post by wep on Jan 31st, 2020 at 11:38am
Hi,
I installed the Pololu A-Star Board which is a 328PB but it will not upload via VM.  It does upload no problem with the Arduino IDE.  I've attached the Verbose upload from both.
Any Ideas??
Thanks, -Bill
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=VerboseArduino_001.txt ( 3 KB | 1 Download )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=VerboseVM_001.txt ( 1 KB | 1 Download )

Title: Re: Upload Error with Pololu A-Star Board
Post by Visual Micro on Jan 31st, 2020 at 11:42am
Does it fail if you selected the No IDE option?

or if you add a local board.txt to the project with this in

[code]upload.verify=[/code]


It is important to follow the guide in yellow above and provide the build info when making these reports so that we can see what arduino version you have installed.





Title: Re: Upload Error with Pololu A-Star Board
Post by wep on Jan 31st, 2020 at 11:47am
Yes it does.  BTW, what happens when you choose NO IDE??

Title: Re: Upload Error with Pololu A-Star Board
Post by Visual Micro on Jan 31st, 2020 at 12:00pm
Did you add the board.txt, click save, and build then try upload?

Title: Re: Upload Error with Pololu A-Star Board
Post by wep on Jan 31st, 2020 at 5:22pm
Hi Tim,
I just added that and it works!  Do you know what that is doing?  Not much of a directive...

Thanks!

Title: Re: Upload Error with Pololu A-Star Board
Post by Visual Micro on Feb 6th, 2020 at 7:50pm
It's possible you are using an older version of visual micro with a newer pololu toolchain. They added the verify param to the upload command but they have not set a default value. This is why in the verbose upload command we could see an unresolved {variable} of {upload.verify}

You can always use the board.txt to override or apply properties but it's better to take the visual micro updates when available.

If you look at the vMicro>Uploader menu in recent visual micro versions you will see an option to enable "Verify" (after upload). If you also look at the verbose build properties after a build you will see "tools.avrdude.upload.params.noverify=-V". This means that we can fill the {upload.verify} with a -V to switch off verify. The "Verify" menu item in visual micro does just that if not enabled.

Therefore your upload might be faster if you modify the board.txt to this:-


Code (]upload.verify=-V[/code):


You can also see in the verbose output where this is used to form the upload command:-

[code]tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} {upload.verify} -p{build.mcu} -c{upload.protocol} "-P{serial.port}" -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"


The {variables} and "patterns" are how all the arduino toolchains work and how visual micro knows what to do.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.