atprogram.exe verify vs --verify command

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using the Atmel-Ice programmer with the atsams70q21 processor.

When I use these scripts for programming and veryfing, the verify fails.

 

Program script: atprogram.exe -t atmelice -i swd -d atsams70q21 program -c -f file.hex

Verify script: atprogram.exe -t atmelice -i swd -d atsams70q21 verify -f file.hex

 

The above scripts are fine when I use a samice programmer!

 

When I do a program and verify at once on the atmelice, then programming and verifying are fine!

Program/verify script: atprogram.exe -t atmelice -i swd -d atsams70q21 program -c -f file.hex --verify

 

What is the difference between the "verifiy" and the "--verify" command?

 

Last Edited: Tue. Jun 8, 2021 - 01:32 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

marien wrote:
What is the difference between the "verifiy" and the "--verify" command?

"verifiy" is a command: it compares what's currently in the chip to the specified file;

 

"--verify" isn't a command - it's an option for the program command

 

Note that you can get general  help by issuing 

atprogram help

 

and help on a specific command by issuing

atprogram help command

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks.

 

But how is it possible that the atmelice fails when I do a program without the --verify option?

This sequence fails on the 2nd script:

Program script: atprogram.exe -t atmelice -i swd -d atsams70q21 program -c -f file.hex

Verify script: atprogram.exe -t atmelice -i swd -d atsams70q21 verify -f file.hex

 

But this sequence passes on the 2nd script:

Program/verify script: atprogram.exe -t atmelice -i swd -d atsams70q21 program -c -f file.hex --verify

Verify script: atprogram.exe -t atmelice -i swd -d atsams70q21 verify -f file.hex

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How, exactly, does it "fail" ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
How, exactly, does it "fail" ?

The programmed bytes are not correct. They don't match the file. The program is not running.