Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

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 and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Disable verification after upload with EDBG (Read 244 times)
Frank Peters
Newbies
*
Offline



Posts: 3
Disable verification after upload with EDBG
Jul 11th, 2022 at 7: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


Back to top
« Last Edit: Jul 11th, 2022 at 7:24pm by Frank Peters »  
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11487
United Kingdom
Re: Disable verification after upload with EDBG
Reply #1 - Jul 11th, 2022 at 9: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.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Frank Peters
Newbies
*
Offline



Posts: 3
Re: Disable verification after upload with EDBG
Reply #2 - Jul 12th, 2022 at 12:16pm
 
Hello Tim,  Smiley

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
Back to top
« Last Edit: Jul 12th, 2022 at 12:16pm by Frank Peters »  

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



Posts: 11487
United Kingdom
Re: Disable verification after upload with EDBG
Reply #3 - Jul 12th, 2022 at 4: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.
Back to top
« Last Edit: Jul 12th, 2022 at 4:04pm by Tim@Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
Frank Peters
Newbies
*
Offline



Posts: 3
Re: Disable verification after upload with EDBG
Reply #4 - Jul 12th, 2022 at 4: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

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



Posts: 11487
United Kingdom
Re: Disable verification after upload with EDBG
Reply #5 - Jul 17th, 2022 at 12:07am
 
Good to hear. Thanks for the update.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print