(solved) Arduino ADK Mega2560 Drivers

Ok i'm there as well... managed to put the usb-serial firmware on the 8u2 and then put the atmega2560 [atleast a mega2560 is better than a dead board!] firmware on it and now the same error

avrdude: stk500_2_ReceiveMessage(): timeout

both on ubuntu 10.10 & Windows XP

just an observation... left alone the led on pin 13, tx come on every once in a while...looks like the board is resetting

I have a nasty feeling that the bootloader hasn't been installed, so you need access to an AVR ISP programmer to install it the first time :frowning:

there was no bootloader on the atmega2560... avrdude wouldnt intially start without the -B 4800 option.... meaning which the fuses were not set... now i've burnt the bootloader using another duemilanove... everything is successful but still the same error...perhaps someone else can throw some light

I just received a replacement board.
It finally works :slight_smile:

Glad it works :slight_smile:
I got an AVR programmer and it installed the bootloader from the Arduino but it still won't communicate...
I can change preferences.txt to use the AVR programmer rather than bootloader and then I can install sketches like Blink. Interestingly I added some Serial traces to it and get nothing but corrupted characters in the serial monitor regardless of the baudrate I choose.
My guess is that serial comms are broken and this is why the bootloader isn't working.

Guess I rejoiced too early....

I keep running into an OSCOKIRQ error:

Error: OSCOKIRQ failed to assert

This happens when I try to connect to the Android Accessory via acc.powerOn();
The Mega ADK board is connected to a Tinkerkit. Moreover, there is an external power supply and USB B to the pc.
Any hints on this?

I managed to get my broken board working :slight_smile:

I flashed the combined DFU and usbserial HEX file using the AVRISP on the other 6 pin header and it turns into a at90usb82. Then I set it to running in Flip (Start button with reset unchecked).
At this point I installed the bootloader via the AVRISP and I can successfully install a Sketch via the bootloader. Turns out the test app I use was putting out too much over the serial port, so I went back to ISP installs rather than bootloader, but I am getting correct serial comms and I managed to install the devkit.pde :slight_smile:

I had to edit out some of the devkit joystick inits and at this point I can see the error that the USB device doesn't support accessory mode. I am trying CyanogenMod7 on my GalaxyS and with the accessory JAR and permission added, but it still doesn't support accessory mode :frowning:
Roll on a 2.3.4 official build on the Galaxy S... as I'm stuck until either my Xoom (running 3.0.1) or S or even the S2 gets accessory mode support.

@ Shawnf... can you be a bit more clear... Some questions for you

Which Combined DFU and usbserial HEX did you burn the MEGA-dfu_and_usbserial_combined.hex?

So first you put the above using avrisp and then it shows as AT90usb82 and then you used flip to put the Arduino-usbserial-mega.hex?

after that it shows up as mega 2560? and the you were able to use the arduino ide to put up the sketch?

To answer your questions - yes, yes and yes :wink:

I did the three things you said and it is working fine...

no no & no.... :0
none of it works for me... the board that was getting detected as 2560 is now back to usb device not recognised! i feel like yelling whisky, tango, foxtrot!

Computers are such fun :wink:

I was doing this on a 32 bit Vista system which didn't have the ATMel studio installed as that install on Win7x64 messed with USB drivers... by installing something like Jungo USB (from memory).

The AT90usb82 showed up as a libwin32 device and then I could select it as a device and choose USB in Flip.

I have the AVRISP Mk II libwin32 installed and it might have got the drivers from that or the ATMel Flip folder. I guess you can try pointing it at the Flip folder and do a search for drivers in subfolders. Failing that give the Arduino 22 folder a search. All from Device Manager of course...

Have to say it just work smoothly for me, having given up on the Win7x64 which is suffering from Driver hell due to the AtMel Studio...

Ok... got it recognised as a usb serial port again... back to the upload error now!
"avrdude: stk500_2_ReceiveMessage(): timeout"

I can make out that there is something wrong with the serial communication... can some throw more light on diagnostics?

I would try installing a sketch via the ISP mode (using the upload setting in preferences.txt and setting it to your ISP).
If you get corrupted characters in Serial Monitor rather than tracing, then the upload via bootloader option is never going to work...
I guess you can check you set the Serial port to 115200 as well.
I'm still waiting for an Android release that has accessory mode support... hoping the European Xoom update to 3.1 might include it and this is due by the end of next week.

Another thing i noticed... a loop back test works at 57600 and keeps throwing the text "RESET"

Ok...Got It Working!!!!

I've also ordered and received 2 of these ADK boards without programming. And received the cryptic email stating that they shipped out boards with a "disease".

Has anyone else tried to contact the Adruino store about this other than myself? I've sent 3 emails to them, asking for official instructions for programming, like they implied they'd offer in the email notification, and they are not replying. I haven't received replacement boards or a tracking number for replacement boards. Has anyone else with this same issue had contact from the store? I've replied to the email they sent out, and sent email to the store's website.

The company that the Arduino site says manufactures all the boards seems to have no contact info at all on their website, so I've been unable to contact them to ask questions regarding this as well.

I'm just curious if this is typical for the Arduino store to not help customers, or if I'm the exception?

Hey Carey,

Chill...If you have an AVR programmer, you get it working in no time

First put the mega dfu usb serial combined bootloader on the atmega8u2 with proper fuse settings (let me know if you need them)

then put the mega2560 bootloader ->stk500boot_v2_mega2560.hex with propose fuse settings and you are all ready to go... only the device would show as a mega2560....

Now onto my problem... my phone is not detecting the board to be a host though its getting powered from usb....any tests for this? i even tried the adb mode and that doesn't work as well.... it works with the usb host shield though...

@shawn did the adk work as a host immediately on uploading the demokit program? did you change anything in the usb host library? both of the boards i have done seem to get detected by my phone though the phone starts charging....i suspect the problem to be with the usb host capabilities...

Pracas

I've sent you a private message with details on how to get a new board.

I'm sorry you got that board that was never supposed to leave the factory.

Don't drive yourself crazy, there might be other issues with the board that you can't fix.

m

@ Mazzimo Received the replacements. Working fine. Thanks a ton!