Cannot Upload to Sparki in Linux

The Easy Robot for Everyone!

Re: Cannot Upload to Sparki in Linux

Postby cairn » Mon Feb 24, 2014 5:05 pm

I have similar problems with my Sparki. On my Asus ZenBook running Ubuntu 13.10, I get one of three errors when trying to upload code:

- The "...Maybe it isn't a butterfly/AVR109 but a AVR910 device?" error.
- The "... avrdude: butterfly_recv(): programmer is not responding" error.
- The Arduino IDE will indicate "Upload completed", but the Sparki doesn't run the new code.

I can try uploading the code multiple times in a row with now hardware or configuration changes and get different errors each time.

After a lot of troubleshooting, I decided to try the Sparki on my netbook running Linux Mint 12 and everything worked perfectly. No errors, code uploaded immediately and ran as expected.

I did a lot of googling and found that the ATMega 32u4 used in the Sparki and the Arduino Leonardo doesn't work well with USB 3.0 ports. This seems to be true regardless of the OS (Linux or Windows on the same machine) based on posts I've read. My Asus ZenBook only has USB 3.0 ports while my netbook has USB 2.0 ports, so that's the reason I assumed was the culprit.

morrta, I'm very interested in your finding that you got Arduino IDE to upload to the Sparki when using Windows 8 on the same machine where Linux Mint did not work. Likewise, that different versions of Linux Mint changed the outcome on the same computer. I hope you'll follow-up if and when you discover a solution.
cairn
 
Posts: 3
Joined: Wed Feb 12, 2014 7:15 pm

Re: Cannot Upload to Sparki in Linux

Postby theguidry » Tue Mar 25, 2014 2:11 am

Likewise here. I've been able to upload reliably from an old Asus eeePC netbook running Ubuntu 12.04, but never from either of two newer machines running Ubuntu 13.10. I can't confirm whether it's USB 3.0 or Ubuntu 13.10 (and the newer kernels). I've got identical setups on all machines: Arduino 1.0.5, the updated boards.txt mentioned in the OSX thread, and plenty of hope.

Please, oh please, ArcBotics, any love for your Linux users? I am literally scp-ing sketches from my "good" machines to my crappy netbook just to upload to my Sparki! My kids and I love this little guy so much ever since we brought him to his forever home (https://www.dropbox.com/sc/a3ocqya1d3jow2c/OdADhPm6yC); sadly, the poor 'uns are utterly confused as to how to do this upload dance when I'm not home.

I'm not sure what logs or debug switches might be relevant, but I'm happy to run any tests if I could get a little guidance here.
theguidry
 
Posts: 2
Joined: Tue Mar 25, 2014 1:56 am

Re: Cannot Upload to Sparki in Linux

Postby Charlie Foxtrot » Tue Mar 25, 2014 2:46 am

@theguidry your video is completely adorable.

Not much help, but a couple of data points:
- we can't upload to Sparki's Leonardo board from either of the Ubuntu 13.10 machines in this house
- we also can't upload to Uno boards or Freeduino (Uno-like board)
- the 12.04 machine that *used* *to* work with the Uno boards no longer does--something updated and broke it!
- we *can* upload to a Nano (ATMega328) board
(all of the above work on the Windows 8 laptop, so we know the boards are OK)

Many, many hours spent googling have led to a few possible fixes, none of which work.
Charlie Foxtrot
 
Posts: 6
Joined: Sun Sep 08, 2013 2:53 pm

Re: Cannot Upload to Sparki in Linux

Postby sparkifish » Wed Apr 09, 2014 7:24 pm

The post is old, but it seems there is no solution yet. Anyway a workaround is to disable the network-manager with

Code: Select all
sudo service network-manager stop
sparkifish
 
Posts: 5
Joined: Thu Jun 20, 2013 6:35 am

Re: Cannot Upload to Sparki in Linux

Postby rpcook » Wed Apr 09, 2014 8:13 pm

Thought I'd throw my data point onto the curve to see if it helps anyone with their configurations (this seems to be working just fine):
  • Xubuntu 12.04 LTS (Ubuntu with XFCE desktop environment)
  • Asus EeePC 1000H
  • Arduino 1.0.5
  • Writing as: Arduino Leonardo on /dev/ttyACMx
Had imported the Sparki library as described on the Arcbotics website.
Rob
A record of my exploits and musings with Hexy and Sparki: http://robcook.eu, content available under a Creative Commons license.
rpcook
 
Posts: 121
Joined: Tue Sep 04, 2012 6:42 pm
Location: Luton, UK

Re: Cannot Upload to Sparki in Linux

Postby theguidry » Fri Apr 11, 2014 11:17 am

sparkifish wrote:The post is old, but it seems there is no solution yet. Anyway a workaround is to disable the network-manager with

Code: Select all
sudo service network-manager stop


@sparkifish, do you know why there's a relationship between network-manager and Sparki?
theguidry
 
Posts: 2
Joined: Tue Mar 25, 2014 1:56 am

Re: Cannot Upload to Sparki in Linux

Postby Charlie Foxtrot » Sun Apr 13, 2014 11:50 pm

sparkifish wrote:The post is old, but it seems there is no solution yet. Anyway a workaround is to disable the network-manager with

Code: Select all
sudo service network-manager stop


Sparkifish's workaround works for me! Thank you Sparkifish!
Charlie Foxtrot
 
Posts: 6
Joined: Sun Sep 08, 2013 2:53 pm

Re: Cannot Upload to Sparki in Linux

Postby carolinescastle » Sat May 03, 2014 3:26 pm

Thank you Sparkifish! I was about to give up but this work around is workable :D
carolinescastle
 
Posts: 1
Joined: Sat May 03, 2014 3:24 pm

Re: Cannot Upload to Sparki in Linux

Postby sparkifish » Sat Jun 14, 2014 10:16 am

Hello,

i came across this solution whiel looking for Problems with the Arduino Leonardo and Linux. In fact u can also apply an udev-rule, but i tried this without success.

Good luck!
sparkifish
 
Posts: 5
Joined: Thu Jun 20, 2013 6:35 am

Re: Cannot Upload to Sparki in Linux

Postby troycurtisjr » Sun Jan 11, 2015 4:57 am

Hopefully the people on this post got their issues resolved, but for the others finding there way here from Google, I'd like to point them to how I fixed my issues on Fedora 19. Basically I just followed the "Installing Arduino on Linux" on the Arduino Playground for "All, the hard way" ( http://playground.arduino.cc/Linux/All ). The part about chmodding /run/lock was the magic piece for me. Before I made this change, everything looked like it was working. The device was created, the Sparki light flashed like it was uploading, but it would eventually timeout without the upload actually being performed.

Hopefully, this will save someone some headache!
troycurtisjr
 
Posts: 1
Joined: Sun Jan 11, 2015 4:47 am

PreviousNext

Return to Sparki

Who is online

Users browsing this forum: No registered users and 35 guests