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
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