atprogram do some tasks in one line

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

Hello, this is my first post here :-)

 

I have seen somewhere:

atprogram.exe -t avrispmk2 -i pdi -d atxmega32a4 -v program -f .\empty.elf -fl -fs -lb --verify
 
Is it possible to do several tasks in one line?

 
I would like to do this all in one line:
atprogram -t avrispmk2 -i isp -d atmega48 -v chiperase
atprogram -t avrispmk2 -i isp -d atmega48 -v write -fs --values E2DDFF
atprogram -t avrispmk2 -i isp -d atmega48 -v program -f "C:\prog\one_hex_file.hex" -fl --verify
atprogram -t avrispmk2 -i isp -d atmega48 -v write -fl --values FF 
 
Here I have 4 lines and every line needs time. Is it also possible to do this all in one line? Means: chiperase, write fuse bits, write lock bits, write flash and verify.

 

 

With stk500.exe it was possible do it in one line:
stk500 -cUSB -I125000 -dATMEGA48 -e -lFF -fDDD2 -EFF -if flash.hex

means:
-e: erase
-lFF: lock bit 0xFF
-fDDD2 and -EFF : set Fuse bits
-if: write hexfile to flash
 
Is it also possible with atprogram.exe?
 
Thank you in advance.

 

BR

EWiebe

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

Welcome!

ewiebe wrote:

Is it possible to do several tasks in one line?

Yes

Atprogram Application Usage | Using Atmel-ICE for AVR® Programming In Mass Production

Usage: atprogram [options] <command> [arguments] [<command> [arguments] ...]

 

"Dare to be naïve." - Buckminster Fuller

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

You are right...

(strange, earlier it did not work... )

 

atprogram -t avrispmk2 -i isp -d atmega48 -v  chiperase write  -fs --values D2DDFF   program -f  "one_hex_file.hex" -fl --verify   write -lb --values FF

 

Output:
Firmware check OK
Chiperase completed successfully
Write completed successfully.
Programming and verification completed successfully.
Write completed successfully.

 

Thank you!

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


Here again where it makes errors:

 

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

What's the version of Atmel Studio or Microchip Studio?

Reason : first guess is a Python defect in the interpreter (parts in multiple DLL); if true then repair.

Microchip Studio 7.0.2542 "An error occurred loading property page" | AVR Freaks

 

"Dare to be naïve." - Buckminster Fuller