Pages: [1]   Go Down
Author Topic: How do I upload a sketch to an Atmega2560 from AS6 using avrdude?  (Read 985 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: