Batch programming with the Dragon

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

Is batch programming possible with the AVRDragon?

I have batch files for many different projects for my STK500 and I would like to be able to use them to program chips with my Dragon. I couldn't find any references to batch programming in the Dragon manual.

If batch programming isn't possible, is there any other way to save chip profiles in AVR Studio?

Thank you,

Kevin

--------------------------------
Kevin Pierson

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

This any use to you?...

C:\Program Files\Atmel\AVR Tools\AvrDragon>avrdragon -h
avrdragon.exe v1.0.0 Copyright (C) Atmel Corporation 2006
Usage: avrdragon.exe [commands] [options]
Commands:
 -h, -?         Print this help.
 -he            Print exit codes.
 -e             Erase device.
 -f  Write high/low fuse bytes. The LSB of fusebytes will be
                written to the low fuse byte, and the MSB will be written
                to the high fuse byte.
 -j         Read JTAG ID string. If an optional ID is specified, the
                program will terminate if the read ID differs.
 -l   Set the lock byte to the specified value.
 -p[f|e|b]      Program FLASH (-pf), EEPROM (-pe) or both (-pb) memories.
                Requires input files specified with the -if (FLASH)
                and/or -ie (EEPROM) options.
 -q             Read fuse bytes. If the selected device has extended fuse,
                it will be also be read.
 -r[f|e|b]      Read FLASH (-rf), EEPROM (-re) or both (-rb) memories.
                Requires output files specified with the -of (FLASH) and/or
                -oe (EEPROM) options.
 -s             Read signature bytes.
 -v[f|e|b]      Verify FLASH (-vf), EEPROM (-ve) or both (vb) memories.
                Requires input files specified with the -if (FLASH) and/or
                -ie (EEPROM) options.
 -y             Read lock byte.
 -E   Write extended fuse byte.
 -F  Verify high/low fuse bytes. The LSB of fusebytes will be
                compared to the low fuse byte, and the MSB will be compared
                to the high fuse byte.
 -L   Verify the lock byte.
 -G   Verify the extended fuse byte against the given value.
 -O 
Read oscillator calibration byte. Address is location of byte as specified in the device's data sheet. -S[f|e]
Write oscillator calibration byte read with -O or -Z to given location in FLASH (-Sf) or EEPROM (-Se). -W Disable debugWIRE interface, enabling ISP mode. Only available for debugWIRE devices. -Y Perform the oscillator calibration sequence. See appnote AVR053 for more information. -Z
Load value from address in EEPROM prior to erasing the device. This value can be written to FLASH or EEPROM again with the -S[f|e] command. Options: -ae , Specify address range for reading EEPROM memory. Default is entire memory. -af , Specify address range for reading FLASH memory. Default is entire memory. -d [required] Specify the type of device. -ie Specify input file for programming EEPROM memory. -if Specify input file for programming FLASH memory. -m[i|j|p] Choose programming mode: ISP (-mi), parallel/high-voltage (-mp) or JTAG (-mj) (default). -oe Specify output file for reading EEPROM memory. -of Specify output file for reading FLASH memory. -z No progress indicator. Useful when redirecting output to file. -D Set daisy chain settings. Only available in JTAG mode. -I Specify ISP frequency (Hz). Only available for ISP mode. -J Specify device speed (Hz). Only available for JTAG mode. -R Apply external reset while programming. Only available in JTAG mode. Example usage: avrdragon.exe -d ATmega128 -e -pf -if c:\tmp\test.hex Supported devices: AT90CAN128, AT90CAN32, AT90CAN64, AT90USB1286, AT90USB1287, AT90USB646, AT90USB647, ATmega128, ATmega1280, ATmega1281, ATmega16, ATmega162, ATmega164P, ATmega165, ATmega165P, ATmega169, ATmega169P, ATmega2560, ATmega2561, ATmega32, ATmega324P, ATmega325, ATmega3250, ATmega3250P, ATmega325P, ATmega329, ATmega3290, ATmega3290P, ATmega329P, ATmega406, ATmega64, ATmega640, ATmega644, ATmega644P, ATmega645, ATmega6450, ATmega649, ATmega6490 Supported devices for ISP, PARALELL/SERIAL HV mode and oscillator cal. only: AT90PWM2, AT90PWM2B, AT90PWM3, AT90PWM3B, ATmega168, ATmega48, ATmega48P, ATmega88, ATtiny13, ATtiny2313, ATtiny24, ATtiny25, ATtiny261, ATtiny44, ATtiny45, ATtiny461, ATtiny84, ATtiny85, ATtiny861

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

Yes and no.

It allows me modify my existing batch files to allow programming but it also shows that, for some reason, it isn't compatible with either Tiny11 or Tiny12 chips.

Thank you!

--------------------------------
Kevin Pierson

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

Quote:

it isn't compatible with either Tiny11 or Tiny12 chips

Half strange. From the documentation it seems like the Dragon should be able to ISP (-mi) ATtiny12. To me it seems unclear if the command line avrdragon.exe can do HV serial programming (-mp) as the above quote that its parallell high voltage. (Further search here and in the documentation might shed light on this.)

If you didn't select any programming mode it defaults to JTAG (-mj) which none of those two can handle.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

It will program both 11s and 12s, I've been using it to so ever since my STK500 quit working on me. I was able to program 13s from the command line, but not 11s or 12s.

I guess its not a big deal, I'm on my last batch of 11s until I will be forced to port them to 13s, and I'm guessing the 12s won't be available too much longer either. At least the 12s run at the same speed as the 13s!

--------------------------------
Kevin Pierson

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

At www.atmel.no/beta_ware you'll find a set of the AVR Studio command line tools broken out separately from the Studio package. Not sure if the version contained therein is going to be identical or newer - but it may be worth a look.

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

the "Supported devices" list is list of devices that are supported as debugging target. it can do ISP programming on any AVR currently available

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

It can do ISP on the AVRs, but for some reason it does not support programming the 11s or 12s from the command line. I've got my Dragon programming 13s and 45s from the command line, but if you try 11s or 12s it says "unknown device". I can program 11s, 12s, 13s, and 45s through the AVR Studio interface.

--------------------------------
Kevin Pierson

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

Have you considered avrdude? It knows Dragons and it knows Tiny's - I'd imagine it could work the combination you require.

Clli