Compiling Error with Ubuntu 14.04 LTS

The "Cube4" is a 4x4x4 RGB LED cube with an Arduino Leonardo compatible onboard controller. [Product page]
anthonyc
Posts: 11
Joined: Sat Aug 23, 2014 9:39 am

Compiling Error with Ubuntu 14.04 LTS

Post by anthonyc » Sat Aug 23, 2014 10:31 am

Cancel this post
Last edited by anthonyc on Mon Aug 25, 2014 11:55 pm, edited 2 times in total.

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Compiling Error with Ubuntu 14.04 LTS

Post by andrew » Sat Aug 23, 2014 10:41 am

If you haven't already done so, could you please install the library etc as per:
http://www.freetronics.com/pages/cube4- ... m-firmware

anthonyc
Posts: 11
Joined: Sat Aug 23, 2014 9:39 am

Re: Compiling Error with Ubuntu 14.04 LTS

Post by anthonyc » Mon Aug 25, 2014 4:12 pm

Thanks heaps John. That fixed the problem. No problems compiling now.
However now I get the message below when I try to upload a sketch.
Does it matter which programmer I have selected in the IDE. I am currently using Arduino as ISP.

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

Is it safe to assume that because I am yet to see the on board LEDs flicker, I have a TX RX problem between my laptop and the cube?

I have been to the troubleshooting page at Arduino and downloaded a few packages that they recommend and let synapticpackage manager do its thing but the packages are still in the download folder. Is that a problem?

I have just tried the AVRISPmkll as the programmer. I get the 'done uploading' message but: no flickering leds and the sketch doesn't run.

Thanks again again,
Tony

Thanks for you help.
Last edited by anthonyc on Mon Aug 25, 2014 11:56 pm, edited 1 time in total.

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Compiling Error with Ubuntu 14.04 LTS

Post by andrew » Mon Aug 25, 2014 11:55 pm

Please select "AVR ISP" as your programmer type and see how you go.

anthonyc
Posts: 11
Joined: Sat Aug 23, 2014 9:39 am

Re: Compiling Error with Ubuntu 14.04 LTS

Post by anthonyc » Tue Aug 26, 2014 3:32 am

Thanks again John. That did have an affect but now I am getting the error message below:

avrdude: ser_open(): can't open device "/dev/ttyACM4": Device or resource busy.

Regards
Tony

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Compiling Error with Ubuntu 14.04 LTS

Post by andrew » Tue Aug 26, 2014 5:21 am

Ah I believe that's Linux/Ubuntu not giving permission to access the port. I'll find our resident Linux person to go further with you.

anthonyc
Posts: 11
Joined: Sat Aug 23, 2014 9:39 am

Re: Compiling Error with Ubuntu 14.04 LTS

Post by anthonyc » Wed Aug 27, 2014 4:59 am

Thanks John. That would be great . I love the cube but its drivin me mad at the moment. A bit like a wife hey?

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: Compiling Error with Ubuntu 14.04 LTS

Post by angusgr » Wed Aug 27, 2014 5:01 am

Hi Tony,

I think "Device or resource busy" means that something is holding open the serial port so the Arduino IDE can't get access, rather than a permissions problem.

With the Arduino IDE on Linux I often find orphaned avrdude uploader processes are created and run forever in the background, sometimes holding on to resources.

If you open a terminal window and type:

Code: Select all

killall avrdude
Does that make any difference?

If that doesn't make any difference, try keeping the terminal open and running instead:

Code: Select all

sudo lsof /dev/ttyACM4
lsof stands for "List Open Files" and will display a summary of what other processes are holding open the serial port ttyACM4.

If nothing is displayed, verify ttyACM4 is the right serial port out of any listed in the Tools -> Serial Port menu in the Arduino IDE.

Regards,


ANgus

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Compiling Error with Ubuntu 14.04 LTS

Post by andrew » Wed Aug 27, 2014 6:00 am

anthonyc wrote:Thanks John. That would be great . I love the cube but its drivin me mad at the moment. A bit like a wife hey?
I give as good as I get :)

anthonyc
Posts: 11
Joined: Sat Aug 23, 2014 9:39 am

Re: Compiling Error with Ubuntu 14.04 LTS

Post by anthonyc » Wed Aug 27, 2014 12:44 pm

Hey Angus thanks for your help. I did as you recommended with the lsof command and this mssage came back

lsof warning: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs

there were no list of application using that serial port.
I read a few other posts that said the fuse file could restrict access to a serial port . I tried removing the gvsd file with synaptic but it made no difference and I stil got the same message.

I have re installed the gvfsd fuse files and now the serial port option in the Arduino IDE is always greyed out.

I am starting to think me and the cube just weren't meant to be together.

thanks for your help.

Tony

Post Reply