VS Arduino
Visual Micro >> Microchip Studio (Atmel Studio 7) >> Disable verification after upload with EDBG
https://www.visualmicro.com/forums/YaBB.pl?num=1657563591

Message started by Frank Peters on Jul 11th, 2022 at 6:19pm

Title: Disable verification after upload with EDBG
Post by Frank Peters on Jul 11th, 2022 at 6:19pm
Hi All,

is there a way to disable the verification after uploading
with EDBG as a programmer?
I am using Atmel Studio 7.

Disabling verification in the visual micro
"Uploader" menu has no effect.
I also tried to disable verification in the Arduino IDE,
but it also had no effect.

Is there a configuation file somewhere i can change?

Best
Frank



Title: Re: Disable verification after upload with EDBG
Post by Tim@Visual Micro on Jul 11th, 2022 at 8:42pm
Please provide the information shown in the yellow area near the top of the page. That will show us the solution. Try to provide it after upload.

Title: Re: Disable verification after upload with EDBG
Post by Frank Peters on Jul 12th, 2022 at 11:16am
Hello Tim,  :)

thanks for your answer. I have attached
the output as a file to this reply.

I found this in the output txt:
tools.vmopenocd.program.params.verify=verify

maybe the problem has something to do with this setting?
Just a guess...

Best
Frank

https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Output-MicroBuild_026.txt ( 45 KB | 2 Downloads )

Title: Re: Disable verification after upload with EDBG
Post by Tim@Visual Micro on Jul 12th, 2022 at 3:03pm
Thanks. It looks like the author of the toolchain has mistakenly hardcoded the verify in the openocd upload pattern.

Normally, the Arduino specification caters for a variable that is reflect on the menu/options of the Arduino IDE and Visual Micro.

A workaround might be to add a board.txt to the local project and redefine the upload pattern. For example if you put the following in a board.txt you would be redefining the upload pattern to be exactly what it is at the moment (see your prev output). You could try removing the "verify".


Code (c++):
tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; program {{build.path}/{build.project_name}.bin} verify reset 0x2000; shutdown"


There is a "vMicro>Add Code" menu item that creates a board.txt file in the project root (but it is a simple text file that you can also add manually yourself).

If you wanted to redefine the pattern for all projects you could either alter the platform.txt in the core or add a platform.local.txt as a sibling to the platform.txt. You need to read the arduino spec. if you want to add the ".local.txt" and relaize that if you update the toolchain you might have to make the edit again.

Does this help.

Title: Re: Disable verification after upload with EDBG
Post by Frank Peters on Jul 12th, 2022 at 3:45pm
Hello Tim,

this works.

From the "vMicro>Add Code" menu item i created a board.txt
file and pasted this inside (this has no "verify" command):

tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; program {{build.path}/{build.project_name}.bin} reset 0x2000; shutdown"

and this disabled the verify.

Thank you very much! The whole upload process is
so much faster now.  [smiley=2vrolijk_08.gif]

Best
Frank

Title: Re: Disable verification after upload with EDBG
Post by Tim@Visual Micro on Jul 16th, 2022 at 11:07pm
Good to hear. Thanks for the update.

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