Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / How do I upload a sketch to an Atmega2560 from AS6 using avrdude? on: October 11, 2012, 07:23:18 pm
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
2  Using Arduino / Project Guidance / Re: arduino2560 - can I use 16u2 USB protocol stack? on: September 14, 2012, 08:18:01 pm
Thanks for the response. I was afraid that was the answer.
Concerning LUFA, the little reading I've done makes me think that it must be used with an Atmel chip that had USB hardware. Is that true, or can I write a bit-banging driver for the low-level USB functions? If so, where would that fit in the LUFA framework?
3  Using Arduino / Project Guidance / arduino2560 - can I use 16u2 USB protocol stack? on: September 14, 2012, 02:47:49 pm
I have an Arduino Mega 2560 that uses a 16U2 to do serial/USB translation between the 2560 and the host PC. Up to now, I’ve only used it to program the 2560.

I would like to use the 2560 to implement an HID (Joystick and some switches) that talks USB to a game on the host. Is there a way to setup (provide USB Descriptors to) and access the USB stack on the 16U2 from the 2560 without changing the 16U2’s firmware?
Pages: [1]