How do I upload a sketch to an Atmega2560 from AS6 using avrdude?

Just a suggestion. May be you can try using this commanline in studio.

-Cavrdude.conf -v -v -p m2560 -c wiring -P COM16 -b115200 -Uflash:w:"$(ProjectDir)Debug$(ItemFileName).hex":i