I recently started using AVR Studio 6 to maintain a legacy project. I like to use the command line tools to program boards since it is much quicker and easier to automate than using the GUI. Having to upgrade the firmware on my JTAGICE mkII (and maybe Win 7 x64?) has broken the jtagiceii.exe application I used to use from the AS 4 days.
I'm putting together a script for using atprogram.exe that comes with AVR Studio 6 but the documentation on it seems lacking. I know what the appropriate command line to use is in order to program fuse bytes, but the question is what order are they supposed to be specified in? Is it 0xEEHHLL (E=extended, H=high, L=low), 0xHHLLEE, 0xLLEEHH, or something else? Looking around Google and the forums here didn't seem to turn anything up on this matter.
I'm using the ATmega644PA if it matters; the datasheet seems to suggest the last option (LLEEHH) but I'd like confirmation from someone because it appears I've already bricked one processor by taking a guess at it. (By bricked I mean, I can't talk to the AVR via JTAG OR ISP and also get strange serial output.)
Any advice is appreciated!