Tool/software: Code Composer Studio
Hello,
I am using CCS in windows.
I have installed both gnu arm and TI compiler for arm running in Linux, which also contain gdb/gdbserver.
Yet, on creating a new project, I don't find how to set cross compiler for arm.
I found in C:\ti\ccsv7\tools\compiler
the following:
04/15/2018 11:36 PM <DIR> .
04/15/2018 11:36 PM <DIR> ..
07/20/2017 12:17 AM <DIR> dmed
07/20/2017 12:18 AM <DIR> gcc-arm-none-eabi-6-2017-q1-update
07/20/2017 12:14 AM <DIR> ti-cgt-arm_16.9.3.LTS
11/29/2017 07:39 PM <DIR> ti-cgt-arm_16.9.6.LTS
04/15/2018 10:52 PM <DIR> ti-cgt-arm_16.9.7.LTS
04/15/2018 11:36 PM <DIR> ti-cgt-arm_18.1.1.LTS
07/20/2017 12:13 AM <DIR> ti-cgt-c6000_8.1.3
11/29/2017 07:39 PM <DIR> ti-cgt-c6000_8.1.5
04/15/2018 10:52 PM <DIR> ti-cgt-c6000_8.1.6
So, I tried to use gcc-arm-none-eabi-6-2017-q1-update (although not sure if it fits Linux ??) , and then I got the following build errors:
make all
Building file: ../src/example.c
Invoking: Cross GCC Compiler
arm-none-eabi-gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/example.d" -MT"src/example.o" -o "src/example.o" "../src/example.c"
Finished building: ../src/example.c
Building target: example
Invoking: Cross GCC Linker
arm-none-eabi-gcc -o "example" ./src/example.o
c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0x18): undefined reference to `_sbrk'
c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x24): undefined reference to `_write'
c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text._close_r+0x18): undefined reference to `_close'
c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text._fstat_r+0x20): undefined reference to `_fstat'
c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text._isatty_r+0x18): undefined reference to `_isatty'
c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text._lseek_r+0x24): undefined reference to `_lseek'
c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text._read_r+0x24): undefined reference to `_read'
collect2.exe: error: ld returned 1 exit status
make: *** [example] Error 1
08:14:37 Build Finished (took 1s.158ms)
Thank you,
ran