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.

Tivaware grlib with GNU compiler

Other Parts Discussed in Thread: ENERGIA

Hi, 

I imported a project from energia to CCS6. The compiler is GNU Linaro (can't change it).

I am trying to link the Tivaware Grlib so i can use a library for a LCD/TOUCH display. I am able to get the library going on the TI V5.2.5 compiler but not under the GNU (linaro).

Any tutorial or key steps on acessing the Grlib via GNU compiler would be much appreciate.

Thanks

  • Note : I followed : processors.wiki.ti.com/.../Using_GCC_with_Tiva_in_CCSv6

    But I get the error :
    Description Resource Path Location Type
    error: projet.out uses VFP register arguments, C:/ti/TivaWare_C_Series-2.1.2.111/driverlib/gcc\libdriver.a(adc.o) does not projet C/C++ Problem
    error: projet.out uses VFP register arguments, C:/ti/TivaWare_C_Series-2.1.2.111/driverlib/gcc\libdriver.a(cpu.o) does not projet C/C++ Problem
    error: projet.out uses VFP register arguments, C:/ti/TivaWare_C_Series-2.1.2.111/driverlib/gcc\libdriver.a(gpio.o) does not projet C/C++ Problem
    error: projet.out uses VFP register arguments, C:/ti/TivaWare_C_Series-2.1.2.111/driverlib/gcc\libdriver.a(interrupt.o) does not projet C/C++ Problem
  • Christophe Cloutier-Tremblay said:
    error: projet.out uses VFP register arguments, C:/ti/TivaWare_C_Series-2.1.2.111/driverlib/gcc\libdriver.a(adc.o) does not projet C/C++ Problem

    The error indicates a mismatch between the floating-point ABI used for building the project and the one that the driverlib was built for.

    If you look at your CCS Project Properties->GNU Compiler->Runtime, you will likely see the -mfloat-abi option set to "hard". The "hard" setting allows generation of floating-point instructions and uses FPU-specific calling conventions. However, it appears the driverlib was not built for that setting. 

    To resolve the error, try setting the -mfloat-abi option in your project to either "soft" or "softfp". Here is a link I found with a bit of information about these options.