Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: pracas on Jul 21, 2011, 10:13 am

Title: (solved) Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 21, 2011, 10:13 am
I've been trying to break my head on getting 2 of these boards to work. They are not detected as USB serial ports. As soon as i plug it, device manager in windows shows Atmega8u2. Is this how these boards show up by default? aren't they supposed to show as USB Serial ports? What could be wrong? In ubuntu 10.04, 'dmesg' shows high-speed USB Device but no Serial port... My other UNO works fine.

Anybody with a ADK board?

All help welcome...
Title: Re: Arduino ADK Mega2560 Drivers
Post by: knox on Jul 22, 2011, 11:15 am
I received mine today and I can't get it working, either.
There is an updated boards.txt and a driver under
http://arduino.cc/en/Main/ArduinoBoardADK (http://arduino.cc/en/Main/ArduinoBoardADK) (at the very bottom).
Unfortunately, this does not seem to work for me.

Please keep me posted if you find something
Title: Re: Arduino ADK Mega2560 Drivers
Post by: knox on Jul 22, 2011, 11:40 am
I just received an email from Arduino Shop:

Quote
we made a double check on the stock and we found that some unprogrammed ADK boards were shipped for mistake. We will send you immediately a replacement. Sorry for the disease.

Whatever that's supposed to mean...
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 23, 2011, 10:00 am
Nothing works... tried programming the Atmega8u2 using another arduino & avrdude... it throws up a verification error towards the end and after this windows does not detect the device....

2 questions i have

1) what are fuse settings for the Atmega8u2 on a normal uno / mega2560? efuse, hfuse, lfuse, lock & unlock

2)How does one get the Atmega8u2 to show as AT90USB82 ? Another bricked uno on a hardware reset(like described in the DFU programming pafe) started showing as a AT90USB82 and it was easy to get it back working with flip

Cheers,
Pracas
Title: Re: Arduino ADK Mega2560 Drivers
Post by: shawnf on Jul 23, 2011, 06:09 pm
I managed to get it into a mode where the Arduino app can see it on my Mac, but the ADK demo fails to upload with:
avrdude: stk500_2_ReceiveMessage(): timeout

If you want to try, I downloaded the ATMel Flip program onto a Win7 box, then installed the correct USB drivers by browsing for them in Device Manager.
I then used the SourceForge link to download the Arduino-usbserial-mega.hex file.
I selected the USB device in Flip and then loaded the USBSerial mega hex file and it let me program it with the Run option. At this point I selected the Start Application which switch the Mega 2560 into the USB serial mode rather than DFU mode and the serial drivers appear in the Arduino app on the Mac and I can attempt (and fail) to upload the  demokit.pde from the ADK.
However I see other people complaining about a similar avrdude timeout on the Mac, so it could be I have got it "working" as much as I can on the Mac... trying an ADK download on the Win 7 box as I type this, so fingers crossed.
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 24, 2011, 08:17 am
What is the device you chose in flip? and can you outline the step by step process... it keeps failing for me... after programming with flip, it still shows as an "Unrecognised USB device"
Title: Re: Arduino ADK Mega2560 Drivers
Post by: shawnf on Jul 24, 2011, 09:09 am
I'll have to remember from memory as once I did the Start Program it switched out of DFU mode and I'm not sure how to switch it back.
I should say I still haven't got past the timeout when uploading, so I might have flashed the wrong .hex file, but it certainly got me further, as the RX light is now flashing and it is set to COM6 on the PC and detected by the Arduino app.

I used Win7 x64. I started with it showing as a Atmega8u2 device without the driver installed (! in Dev Manager).
After installing flip, I installed the driver for the Atmega8u2 by browsing for it on PC in Dev Man.
Then in Flip I think I just selected USB and it un-greyed all the lower screen allowing you to chose things in the Run panel and select a HEX file.
I then selected the .HEX file I had downloaded from SourceForge (using RAW) - note the combined DFU/Serial file won't work, only the SerialUSB.... of course this still could be the wrong HEX file, given my upload issues.
At this point I chose the Start Program button on the bottom right of Flip. This switched the Mega ADK out of DFU mode and a new serial driver appeared in Dev Man (again without a driver).
I installed the driver by browsing PC in Dev Man and at this point it shows up as COM6.
Then back to the Arduino app and I can see it as COM6 in the Tools menu and having done the boards.txt change, I can select it as a Mega ADK.
On the Mac it shows in the dev/tty list and I can select it in the Tools menu.
Now I'm stuck at the timeout after verifying and trying to upload the ADK .PDE (or any built setup):
avrdude: stk500_2_ReceiveMessage(): timeout

Still trying to find out where to go next, but it's certainly better than the default ship state :)
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 24, 2011, 10:08 am
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
Title: Re: Arduino ADK Mega2560 Drivers
Post by: shawnf on Jul 24, 2011, 12:07 pm
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 :(
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 24, 2011, 07:52 pm
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
Title: Re: Arduino ADK Mega2560 Drivers
Post by: knox on Jul 26, 2011, 02:56 pm
I just received a replacement board.
It finally works :)
Title: Re: Arduino ADK Mega2560 Drivers
Post by: shawnf on Jul 27, 2011, 08:44 am
Glad it works :)
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.
Title: Re: Arduino ADK Mega2560 Drivers
Post by: knox on Jul 27, 2011, 11:16 am
Guess I rejoiced too early....

I keep running into an OSCOKIRQ error:
Quote
Error: OSCOKIRQ failed to assert

This happens when I try to connect to the Android Accessory via
Code: [Select]
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?
Title: Re: Arduino ADK Mega2560 Drivers
Post by: shawnf on Jul 27, 2011, 11:29 am
I managed to get my broken board working :)

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

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 :(
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.
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 27, 2011, 02:14 pm
@ 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?
Title: Re: Arduino ADK Mega2560 Drivers
Post by: shawnf on Jul 27, 2011, 02:17 pm
To answer your questions - yes, yes and yes ;)

I did the three things you said and it is working fine...
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 27, 2011, 04:27 pm
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!
Title: Re: Arduino ADK Mega2560 Drivers
Post by: shawnf on Jul 27, 2011, 04:39 pm
Computers are such fun ;)

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...
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 28, 2011, 02:39 pm
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?
Title: Re: Arduino ADK Mega2560 Drivers
Post by: shawnf on Jul 28, 2011, 02:47 pm
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.
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 28, 2011, 02:51 pm
Another thing i noticed... a loop back test works at 57600 and keeps throwing the text "RESET"
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 28, 2011, 03:06 pm
Ok...Got It Working!!!!
Title: Re: Arduino ADK Mega2560 Drivers
Post by: carey on Jul 28, 2011, 05:47 pm
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?
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 28, 2011, 07:28 pm
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...
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 29, 2011, 05:07 pm
@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...
Title: Re: Arduino ADK Mega2560 Drivers
Post by: mbanzi on Jul 30, 2011, 03:56 pm
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
Title: Re: Arduino ADK Mega2560 Drivers
Post by: pracas on Jul 31, 2011, 08:01 am
@ Mazzimo Received the replacements. Working fine. Thanks a ton!
Title: Re: Arduino ADK Mega2560 Drivers
Post by: carey on Aug 03, 2011, 05:38 pm

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?


Just for future reference, I'm updating my post.

After sending 2 more emails for help regarding my defective ADK boards, I received a reply from Davide at the Arduino store.  He sent out 2 new properly programmed ADK boards that I received today.  They work fine as Mega2560 boards.
Title: Re: (solved) Arduino ADK Mega2560 Drivers
Post by: gaitt on Sep 04, 2011, 12:12 am
Hey guys,

hope you can help me out!
I've just received my megaADK board, not ordered from Arduino Store :smiley-sad-blue: but a local retailer ... anyway!
When i plug it in, the board shows up as a "ATmego8U2 DFU" in device manager (W7 x86).

I've tried lots of stuff but still not able to connect to the board!
And like Pracas my UNO works fine!

Do you guy's think i need to ask for a new board? thx
Title: Re: (solved) Arduino ADK Mega2560 Drivers
Post by: carey on Sep 04, 2011, 07:33 pm
Hello Gaitt,

It looks to me as you have received one of the unprogrammed boards.  I was shipped 2 of them direct from the Arduino online store, and after quite a few complaints and emails, they did send me replacements.  I did manage to get one of them working, the other I bricked by making a dumb mistake while attempting to program it.

It is possible to program it yourself, thought it requires quite a few steps, that are poorly documented for the novice, downloading several programs and requires an ISP Burner.  I used a Pololu USB AVR Programmer.  I have documented my steps I used to get it to work, after spending many many hours researching what was required.  So if you want to attempt it I can send you my tips.  However, if you make a mistake and set the wrong "fuse" you will permanently brick the board, or at least require a high voltage burner to attempt to fix that problem, something I didn't bother with as it required yet more research and another type of burner I don't currently have.  I did it as a learning experience and challenge.  I don't claim to be a Arduino expert, but simply speaking from my personal experience.

Ideally you should simply complain to who you bought it from, claim you received a faulty/unprogrammed unit, and hope to get it replaced.
Title: Re: (solved) Arduino ADK Mega2560 Drivers
Post by: gaitt on Sep 04, 2011, 11:20 pm
Hello Carey,

thx for the answer!
Since i'm kind of newbie in electronics, i'm gonna try the easiest way ... sending back my board my retailer!
Hope i can get a new one and this time programmed! If not, i'll ask you for help!!
Title: Re: (solved) Arduino ADK Mega2560 Drivers
Post by: ragubond on Mar 15, 2012, 07:06 am
@pracas sir.. i saw your old posts in the arduino forum sir.. u have been worked on GSM modem sir how to interface the gsm  modem with arduino AT328 sir.. pls help me .. even i bought the gsm modem from nsk electronics..