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 Disable verification after upload with EDBG (Read 1698 times)
Frank Peters
Newbies
*
Offline


Posts: 3
Joined: Jul 11th, 2022
Disable verification after upload with EDBG
Jul 11th, 2022 at 6:19pm
Print Post  
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 


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Disable verification after upload with EDBG
Reply #1 - Jul 11th, 2022 at 8:42pm
Print Post  
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
WWW  
IP Logged
 
Frank Peters
Newbies
*
Offline


Posts: 3
Joined: Jul 11th, 2022
Re: Disable verification after upload with EDBG
Reply #2 - Jul 12th, 2022 at 11:16am
Print Post  
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
« Last Edit: Jul 12th, 2022 at 11:16am by Frank Peters »  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Disable verification after upload with EDBG
Reply #3 - Jul 12th, 2022 at 3:03pm
Print Post  
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++)
Select All
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.
« Last Edit: Jul 12th, 2022 at 3:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Frank Peters
Newbies
*
Offline


Posts: 3
Joined: Jul 11th, 2022
Re: Disable verification after upload with EDBG
Reply #4 - Jul 12th, 2022 at 3:45pm
Print Post  
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: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Disable verification after upload with EDBG
Reply #5 - Jul 16th, 2022 at 11:07pm
Print Post  
Good to hear. Thanks for the update.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint