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.

Tiva and GCC problem with libdriver.a

Other Parts Discussed in Thread: CCSTUDIO

Hello, I am trying compile exmple "usb_dev_serial" from TivaWare but this error with libdriver.a. I am using Eclipse and Sourcery CodeBench arm-none-eabi. Thak you for any answer.

  • I'm slightly confused. Have you added the library as source file ?

    Libraries (*.a files ) come into play in the linker stage.

    In Eclipse, add to Project Settings->Settings->Tool Settings -> Linker -> Libraries.

    (Following image is from another (Cross-) Toolchain ...).

  • Yes. It's that library finds. Those errors are from the compilation this library.

  • Hi Marek, happy see you on TIVA forum too, try if this can help you after that check all issue of GCC:
    http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/p/335069/1172263#1172263

    check these issue with GCC and CCStudio, TI compiler has less trouble GCC need be cured by hand:
    http://e2e.ti.com/search?q=libdriver.a%20gcc%20tiva%20error#serp=3
    Also check this from GCC
    http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/395287
  • Marek Prochazka said:
    Yes. It's that library finds. Those errors are from the compilation this library.

    How is the Eclipse project set-up to compile the library?

    From the screen shot it looks like the compiler is trying to compile the libdriver.a library file as if the file was a C source file. Whereas the libdriver.a library file should be passed as a library to the linker.

    Can you post the build console output from Eclipse when the failure occurs, to show the compiler and linker command lines used?

  • As stated in my first post, remove the library from the source files, and add as lib at the linker stage.
    Should look similiar as the image posted (as said, the image is NOT for a Cortex M toolchain !).