This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/AM1808: Windows-hosted-“ld.exe” that accepts “-m “armelf_linux_ebai”?

Part Number: AM1808

Tool/software: Code Composer Studio

I am an old embedded programmer trying to set up a Lego-EV3-Windows-IDE (AM1808) for students using CCSTUDIO-SITARA. I am cross-compiling and linking hello.c from ev3dev-c with only one minor error, but I am hung up because the windows-hosted-linker  (“C:\ti\ccsv7\tools\compiler\gcc-arm-none-eabi-6-2017-q1-update\bin\ arm-none-eabi-ld.exe”) only supports “-m armelf” and not “-m “armelf_linux_ebai”.

Any and all help is appreciated! 

Bob 

  • Bob,

    The compiler you mentioned that ships with CCS is tailored for "baremetal" projects - i.e., with no Linux involved.

    If you want to use a linux cross compiler toolchain for windows, you can try to get one from Linaro. However, their latest releases only seem to support ARMv7 (Cortex cores) and newer, therefore I suspect you may need release 4.9, which is available at:

    releases.linaro.org/.../

    If I am not mistaken, the actual build for Windows host / Linux target should be under arm-linux-gnueabi/gcc-linaro-4.9.4-2017.01-i686-mingw32_arm-linux-gnueabi.tar.xz

    Hope this helps,
    Rafael
  • Thank you!

    I am getting a good link now, and hopefully using the correct EV3 libraries and flags.

    Bob