UDOO Neo M4 Arduino IDE 1.6.5-r5 on Ubuntu 14.04.3 LTS 64 bits not working

Discussion in 'UDOO NEO' started by JackSilb, Dec 26, 2015.

  1. JackSilb

    JackSilb Active Member

    Joined:
    Nov 3, 2015
    Messages:
    100
    Likes Received:
    32
    Hello,
    Did anyone have success making Arduino IDE 1.6.5-r5 on Ubuntu 14.04.3 LTS compile for the Neo M4?
    I am using the latest Udoo Neo image:
    UDOObuntu 2 RC1

    I followed the instructions:
    http://www.udoo.org/docs-neo/Arduino_M4_Processor/Programming.html

    I get the following error when trying to compile any code with the M4 selected as the board:
    "
    Build options changed, rebuilding all
    Cannot run program "/home/jack/.arduino15/packages/UDOO/tools/gcc-arm-none-eabi/4.9-2014q4-20141203/bin/arm-none-eabi-g++" (in directory "."): error=2, No such file or directory

    "
    I followed the path to the directory and arm-none-eabi-g++ is there:

    ~/.arduino15/packages/UDOO/tools/gcc-arm-none-eabi/4.9-2014q4-20141203/bin$
    ~/.arduino15/packages/UDOO/tools/gcc-arm-none-eabi/4.9-2014q4-20141203/bin$ ls -l
    total 25156
    -rwxr-xr-x 1 jack jack 722252 Dec 2 2014 arm-none-eabi-addr2line
    -rwxr-xr-x 2 jack jack 749104 Dec 2 2014 arm-none-eabi-ar
    -rwxr-xr-x 2 jack jack 1237104 Dec 2 2014 arm-none-eabi-as
    -rwxr-xr-x 2 jack jack 732784 Dec 2 2014 arm-none-eabi-c++
    -rwxr-xr-x 1 jack jack 720236 Dec 2 2014 arm-none-eabi-c++filt
    -rwxr-xr-x 1 jack jack 731280 Dec 2 2014 arm-none-eabi-cpp
    -rwxr-xr-x 1 jack jack 24496 Dec 2 2014 arm-none-eabi-elfedit
    -rwxr-xr-x 2 jack jack 732784 Dec 2 2014 arm-none-eabi-g++
    -rwxr-xr-x 2 jack jack 731280 Dec 2 2014 arm-none-eabi-gcc
    -rwxr-xr-x 2 jack jack 731280 Dec 2 2014 arm-none-eabi-gcc-4.9.3
    -rwxr-xr-x 1 jack jack 23664 Dec 2 2014 arm-none-eabi-gcc-ar
    -rwxr-xr-x 1 jack jack 23632 Dec 2 2014 arm-none-eabi-gcc-nm
    -rwxr-xr-x 1 jack jack 23632 Dec 2 2014 arm-none-eabi-gcc-ranlib
    -rwxr-xr-x 1 jack jack 430868 Dec 2 2014 arm-none-eabi-gcov
    -rwxr-xr-x 1 jack jack 4289300 Dec 2 2014 arm-none-eabi-gdb
    -rwxr-xr-x 1 jack jack 4744244 Dec 2 2014 arm-none-eabi-gdb-py
    -rwxr-xr-x 1 jack jack 788460 Dec 2 2014 arm-none-eabi-gprof
    -rwxr-xr-x 4 jack jack 1025680 Dec 2 2014 arm-none-eabi-ld
    -rwxr-xr-x 4 jack jack 1025680 Dec 2 2014 arm-none-eabi-ld.bfd
    -rwxr-xr-x 2 jack jack 732556 Dec 2 2014 arm-none-eabi-nm


    Now to make things more interesting, the instructions worked on Windows 10 and Mac OS X Yosemite 10.10.5. I was able to compile and upload Arduino code to the Udoo Neo. It does not to seem to work all the time, but that is another discussion.
    I thought that Ubuntu would be the easiest of the OS to have it working o_O

    Thanks,
    -Jack
     
  2. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
  3. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
  4. JackSilb

    JackSilb Active Member

    Joined:
    Nov 3, 2015
    Messages:
    100
    Likes Received:
    32
    Oh boy, that helped and it should be captured/shared by the Udoo team.

    Indeed I am using a 64bits Ubuntu machine.

    This does not work anymore for the multiarch on new Ubuntus
    "apt-get install ia32-libs32"

    Here is the solution

    "
    http://gnuarmeclipse.github.io/toolchain/install/
    GNU/Linux
    The following steps were performed on Ubuntu 14.04 LTSx64 (please adjust them accordingly for other distributions):

    • since the toolchain executables are 32-bits apps, when running on 64-bits machines, be sure you install the following 32-bits libraries (for different versions check the toolchain README for the actual list):

      $ sudo apt-get -y install lib32z1 lib32ncurses5 lib32bz2-1.0
    "

    I can compile code for the M4 using Arduino 1.6.5 R5 on Ubuntu 64bits

    Thank you!
    -Jack
     
  5. JackSilb

    JackSilb Active Member

    Joined:
    Nov 3, 2015
    Messages:
    100
    Likes Received:
    32
    Just in case anyone cares. I am using a Ubuntu virtual machine inside Mac OS. When you plug Neo into to the Mac, it asks where you want to connect it (Mac or the virtual machine running under Fuse), chose your virtual machine name, ex Linux.
    It is compiling quick. I know this is relative, it will be relative to your hardware specs that is what should matter. It feels compiling and loading faster than running on Windows 10 running natively on the same machine.

    -Jack
     
    tcmichals likes this.
  6. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    I've just added it on our last line on the page about Programming Arduino in the Docs. Thank you very much Jack!
     

Share This Page