If you wanted to write the file test.hex to the flash memory, you would use -U flash:w:test.hex:i. We will always be using "Intel Hex" format, so use i and means theres an optional format flag. The is, well, the file that you want to write to or read from.
the r|w|v means you can use r (read) w (write) or v (verify) as the command. The is either flash or eeprom (or hfuse, lfuse or efuse for the chip configuration fuses, but we aren't going to mess with those). Its the one that actually does the programming. -U :r|w|v: : OK this one is the important command.-e: This erases the chip, in general we don't use this because we auto-erase the flash before programming.The test is strongly recommended as it tests the connection, so don't use this switch. -F: This overrides the signature check to make sure the chip you think you're programming is.
#Avr dragon manual update serial#
It might be COM1 for serial or LPT1 for parallel or USB for, well, USB.
Don't use this switch, the default is correct. -b : This is for overriding the serial baud rate for programmers like the STK500.For example, if you are programming an ATtiny2313, use attiny2313 as the partnumber -p : This is just to tell it what microcontroller its programming.Don't try to memorize them, just get a sense of what some of them may do. There are a lot of options, lets review them quickly.