Other Parts Discussed in Thread: CC2538
I have a CC2538DK, I have downloaded "cc2538_foundation_firmware_1_0_1_0" added the necessary .h and .c files for the led blinking example (blinky.c),
I use GNU-C v4.7.4. with the below configs
flag settings "-mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -v -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd"
When I compile it, it outputs this error "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/bin/ld.exe:../cx2538xf53_ccs.cmd:9: syntax error"
I guess the linker I use don't support GNU-C. If it is the case, where do I download the linker for GCC?
Here is the full build output:
**** Build of configuration Debug for project CC2538_test **** "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 'Building file: ../bsp.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"bsp.d" -MT"bsp.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"bsp.o" "../bsp.c" 'Finished building: ../bsp.c' ' ' 'Building file: ../bsp_led.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"bsp_led.d" -MT"bsp_led.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"bsp_led.o" "../bsp_led.c" 'Finished building: ../bsp_led.c' ' ' 'Building file: ../cpu.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"cpu.d" -MT"cpu.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"cpu.o" "../cpu.c" 'Finished building: ../cpu.c' ' ' 'Building file: ../debug.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"debug.d" -MT"debug.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"debug.o" "../debug.c" 'Finished building: ../debug.c' ' ' 'Building file: ../gpio.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"gpio.d" -MT"gpio.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"gpio.o" "../gpio.c" 'Finished building: ../gpio.c' ' ' 'Building file: ../interrupt.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"interrupt.d" -MT"interrupt.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"interrupt.o" "../interrupt.c" 'Finished building: ../interrupt.c' ' ' 'Building file: ../ioc.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"ioc.d" -MT"ioc.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"ioc.o" "../ioc.c" 'Finished building: ../ioc.c' ' ' 'Building file: ../main.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"main.o" "../main.c" 'Finished building: ../main.c' ' ' 'Building file: ../ssi.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"ssi.d" -MT"ssi.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"ssi.o" "../ssi.c" 'Finished building: ../ssi.c' ' ' 'Building file: ../sys_ctrl.c' 'Invoking: GNU Compiler' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m3 -mthumb -mfpu=vfp -I"c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"sys_ctrl.d" -MT"sys_ctrl.d" -mno-thumb-interwork -msoft-float -mfix-cortex-m3-ldrd -o"sys_ctrl.o" "../sys_ctrl.c" 'Finished building: ../sys_ctrl.c' ' ' 'Building target: CC2538_test.out' 'Invoking: GNU Linker' "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc.exe" -mthumb -g -gstrict-dwarf -Wall -Wl,-Map,"CC2538_test.map" -o"CC2538_test.out" "./bsp.o" "./bsp_led.o" "./cpu.o" "./debug.o" "./gpio.o" "./interrupt.o" "./ioc.o" "./main.o" "./ssi.o" "./sys_ctrl.o" "../cx2538xf53_ccs.cmd" "../targetConfigs/driverlib.lib" -Wl,--start-group -l"c" -l"gcc" -l"nosys" -Wl,--end-group c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/bin/ld.exe:../cx2538xf53_ccs.cmd: file format not recognized; treating as linker script c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/bin/ld.exe:../cx2538xf53_ccs.cmd:9: syntax error collect2.exe: error: ld returned 1 exit status gmake: *** [CC2538_test.out] Error 1 gmake: Target `all' not remade because of errors. **** Build Finished ****
