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.

Using the GNU Scientific Library with Code Composer Studio for ARM Cortex M4 processor

Other Parts Discussed in Thread: ENERGIA

Hi,

   I am trying to interface GSL with code composer studio v6.1 but getting lots of error and I could not found any help document which explains interfacing of GSL with CCS or any other ARM Dev IDE. Any help would be appreciated. 

  • I have no expertise with the GSL.  I presume you build it with the TI ARM compiler.  You probably would have more success if you used a GNU ARM compiler instead.  See this wiki article for details on how to change compiler versions in CCS.

    Thanks and regards,

    -George

  • I am using GNU v4.8.4 (Linaro) compiler and manged to remove some erros . Now one last error (I hope so) is showing as follows

    c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libc.a(lib_a-abort.o): In function `abort':
    abort.c:(.text.abort+0xa): undefined reference to `_exit'
    collect2.exe: error: ld returned 1 exit status
    gmake: *** [RR_HR_Peak_Rev1.out] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

  • I'm confident, but not certain, you have the problem described in this forum thread.  Note the part about adding the library specification options: -lc -lgcc -lnosys.  Do that in CCS with this method: Right-click on the name of the project, select Show Build Settings.  In the directory-like box on the left, browse to CCS Build | GNU Linker | Libraries.  In the box titled Libraries add entries until you see, in order: c, gcc, nosys.  Here is a screen shot:

    Thanks and regards,

    -George

  • Thank You George. It works !!!

  • Hi @George, One more help please, I am running out of heap size by 5kb but I am unable to find heap and stack size selection settings in CCS settings.
    I have configured GSL-2.1 with CCS as well Energia together and my code is very large (dwt+fft+wifi+sd card). All these codes are creating very large file size. Almost all data types are used in program sach as double, float, char, int etc. Now I am looking it to optimize for space rather than speed for that what should I do.