run-avrdude with two arguments?

Greetings,

the script /usr/bin/run-avrdude fires up avrdude in order to (re)program the 32u4 mcu; if programs the three fuse bytes and the flash rom; what I do not understand is the line in the script:

        avrdude -q -c linuxgpio -C /etc/avrdude.conf -p m32u4 -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xFB:m -Uflash:w:$1:i $2

What is the second argument '$2' supposed to be? (the first argument contains the intel hex code for the flash rom)

kind regards,

Jos

JosAH: ::::SNIP::::

What is the second argument '$2' supposed to be? (the first argument contains the intel hex code for the flash rom)

@JosAH,

I'm not familiar with this tool, but based on the man page and examples, I would say (perhaps) to issue a -v (for versbose). Reminder, the last options will override any previously given command line options. Many Linux tools work that way. I expect this to do the same.

Jesse

http://linux.die.net/man/1/avrdude

http://www.nongnu.org/avrdude/user-manual/avrdude_6.html

http://www.nongnu.org/avrdude/user-manual/avrdude_4.html

Yes, that was the only use I could come up with: you can specify, say, another -U option on the command line (the option can't contain spaces without proper quoting though ...)

kind regards,

Jos