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

I am running BOTH an Arduino IDE and AS6 IDE on a Windows XP platform. I can upload sketches from Arduino to my Atmega2560, but can’t load same sketch from AS6.

The programmer listed for Arduino is USBasp. I have tried three avrdude command lines in AS6. Not one works. I have listed the setup and results below:

Using: id arduino …\avrdude.conf -v -v -p m2560 -c arduino -P COM4 -b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(ItemFileName).hex":i

result: Using Port : COM4 Using Programmer : arduino Overriding Baud Rate : 115200 avrdude.exe: stk500_getsync(): not in sync: resp=0x00

Using: programmer id usbasp …\ avrdude.conf -v -v -p m2560 -c usbasp -P COM4 -b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(ItemFileName).hex":i

result:

Using Port : COM4 Using Programmer : usbasp Overriding Baud Rate : 115200 avrdude.exe: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc

Using: programmer id stk500v2 …\ avrdude.conf -v -v -p m2560 -c stk500v2 -P COM4 -b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(ItemFileName).hex":i

result:

Using Port : COM4 Using Programmer : stk500v2 Overriding Baud Rate : 115200 avrdude.exe: stk500v2_ReceiveMessage(): timeout

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