I've recently switched over to Atmel Studio 7 (AS7) for one of my AVR projects and after a bit of fiddling around have worked out how to get the "Custom Programming Tool" to correctly upload compiled firmware to a target device using the command:
"$(SolutionDir)\avrdude\avrdude.exe" -C"$(SolutionDir)avrdude\avrdude.conf" -patmega2560 -cwiring -b115200 -D -v -Uflash:w:"$(OutputDirectory)\$(OutputFileName).hex":i -P\\.\COM5
While this works successfully, AS7 seems to think it fails every time because it outputs verbose information. If I look at the output window for the custom programming tool, I get the verbose output from avrdude as expected, but it AS7 treats it all as error messages:
ERROR:avrdude.exe: writing flash (12578 bytes):
ERROR:Writing | ################################################## | 100% 2.05s
ERROR:avrdude.exe: 12578 bytes of flash written
ERROR:avrdude.exe: verifying flash memory against ATMega2560\AstroEQ6Mega2560.hex:
ERROR:avrdude.exe: load data flash data from input file ATMega2560\AstroEQ6Mega2560.hex:
ERROR:avrdude.exe: input file ATMega2560\AstroEQ6Mega2560.hex contains 12578 bytes
ERROR:avrdude.exe: reading on-chip flash data:
ERROR:Reading | ################################################## | 100% 1.47s
ERROR:avrdude.exe: verifying ...
ERROR:avrdude.exe: 12578 bytes of flash verified
ERROR:avrdude.exe: safemode: lfuse reads as FF
ERROR:avrdude.exe: safemode: hfuse reads as D8
ERROR:avrdude.exe: safemode: efuse reads as FF
ERROR:avrdude.exe: safemode: Fuses OK (H:FF, E:D8, L:FF)
ERROR:avrdude.exe done. Thank you.
Process exited with code 0
Clearly avrdude completes successfully, and the program is downloaded and running. However all those "ERROR:" prefixes are really annoying, especially as at the end of the process I get an error window insisting that the custom programming tool failed.
Has anyone got any experience with setting up the custom programming tool and could tell me how I need to adjust the programming tool command so that its output does not show up as errors?