I'm trying to compile my project using arm-none-eabi-gcc tools. I keep running into following error when linking the project:
Invoking: MCU Linker
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -Os -T ../lib/linker/MKE04Z8_flash.ld -I. -Iinclude -I../lib/Project_Headers -I../lib/platforms -I../lib/cpu -I../lib/cpu/headers -I../lib/platforms -I../lib/common -I../lib/cpu -I../lib/cpu/headers -I../lib/drivers/ics -I../lib/drivers/gpio -I../lib/drivers/uart -I../lib/drivers/wdog -I../lib/drivers/sim -I../lib/drivers/rtc -I../lib/drivers/adc -Iadc_mod -Ileds_mod -Iapp -specs=nano.specs -Wl,-Map=build/hkp_frdm_ke04.map,--gc-sections build/arm_cm0.o build/start.o build/sysinit.o build/systick.o build/vectors.o build/ics.o build/gpio.o build/uart.o build/wdog.o build/sim.o build/rtc.o build/adc.o build/main.o build/app.o build/leds_mod.o build/adc_mod.o build/cw_crt0.o -lm -lgcc -lc -lnosys -o build/hkp_frdm_ke04.elf
/usr/local/Cellar/arm-gcc-bin/4.9.3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol __thumb_startup; defaulting to 0000000000000410
build/vectors.o:(.vectortable+0x4): undefined reference to `__thumb_startup'
collect2: error: ld returned 1 exit status
make: *** [build/hkp_frdm_ke04.elf] Error 1
Files are from kexx_driver_lib zip file and I used sample main routine from sample ADC_FIFO_demo. I included cw_crt0.s compiled and used.
What I'm missing from the build?
Solved! Go to Solution.
Hi, Llkka,
Regarding your issue, I have used CodeWarrior for mcu ver10.6 to compile the project located at:
D:\Freescale\kexx_drv_lib\build\cw\ke04\ADC_FIFO_demo
I have not any problem. The void __thumb_startup(void) is located at _arm_start.c.
I copy the log here, hope it can help you.
which tools are you using CW, IAR or Keil?
BR
XiangJun Rong
**** Build of configuration FLASH for project ADC_FIFO_demo ****
"D:\\FreescaleC\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j8 all
'Building file: D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/wdog/wdog.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/uart/uart.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/sim/sim.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/spi/spi.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/rtc/rtc.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/pwt/pwt.c'
'Executing target #2 D:/Freescale/kexx_drv_lib/src/drivers/wdog/wdog.c'
'Executing target #1 D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/pit/pit.c'
'Executing target #3 D:/Freescale/kexx_drv_lib/src/drivers/uart/uart.c'
'Executing target #4 D:/Freescale/kexx_drv_lib/src/drivers/spi/spi.c'
'Executing target #5 D:/Freescale/kexx_drv_lib/src/drivers/sim/sim.c'
'Executing target #6 D:/Freescale/kexx_drv_lib/src/drivers/rtc/rtc.c'
'Executing target #7 D:/Freescale/kexx_drv_lib/src/drivers/pwt/pwt.c'
'Executing target #8 D:/Freescale/kexx_drv_lib/src/drivers/pit/pit.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c" @"src/projects/ADC_FIFO_demo/ADC_FIFO_demo.args" -MMD -MP -MF"src/projects/ADC_FIFO_demo/ADC_FIFO_demo.d" -o"src/projects/ADC_FIFO_demo/ADC_FIFO_demo.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/wdog/wdog.c" @"src/drivers/wdog/wdog.args" -MMD -MP -MF"src/drivers/wdog/wdog.d" -o"src/drivers/wdog/wdog.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/uart/uart.c" @"src/drivers/uart/uart.args" -MMD -MP -MF"src/drivers/uart/uart.d" -o"src/drivers/uart/uart.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/spi/spi.c" @"src/drivers/spi/spi.args" -MMD -MP -MF"src/drivers/spi/spi.d" -o"src/drivers/spi/spi.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/sim/sim.c" @"src/drivers/sim/sim.args" -MMD -MP -MF"src/drivers/sim/sim.d" -o"src/drivers/sim/sim.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/rtc/rtc.c" @"src/drivers/rtc/rtc.args" -MMD -MP -MF"src/drivers/rtc/rtc.d" -o"src/drivers/rtc/rtc.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/pwt/pwt.c" @"src/drivers/pwt/pwt.args" -MMD -MP -MF"src/drivers/pwt/pwt.d" -o"src/drivers/pwt/pwt.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/pit/pit.c" @"src/drivers/pit/pit.args" -MMD -MP -MF"src/drivers/pit/pit.d" -o"src/drivers/pit/pit.o"
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/wdog/wdog.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/sim/sim.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/uart/uart.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/rtc/rtc.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/pwt/pwt.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/nvm/flash.c'
' '
' '
' '
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/spi/spi.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/pit/pit.c'
'Executing target #9 D:/Freescale/kexx_drv_lib/src/drivers/nvm/flash.c'
' '
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/iic/i2c.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/ics/ics.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/gpio/gpio.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/ftm/ftm.c'
' '
' '
'Invoking: ARM Ltd Windows GCC C Compiler'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/crc/crc.c'
'Executing target #10 D:/Freescale/kexx_drv_lib/src/drivers/iic/i2c.c'
'Executing target #11 D:/Freescale/kexx_drv_lib/src/drivers/ics/ics.c'
'Executing target #12 D:/Freescale/kexx_drv_lib/src/drivers/gpio/gpio.c'
'Executing target #13 D:/Freescale/kexx_drv_lib/src/drivers/ftm/ftm.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/adc/adc.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/nvm/flash.c" @"src/drivers/nvm/flash.args" -MMD -MP -MF"src/drivers/nvm/flash.d" -o"src/drivers/nvm/flash.o"
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/acmp/acmp.c'
'Executing target #14 D:/Freescale/kexx_drv_lib/src/drivers/crc/crc.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #15 D:/Freescale/kexx_drv_lib/src/drivers/adc/adc.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/iic/i2c.c" @"src/drivers/iic/i2c.args" -MMD -MP -MF"src/drivers/iic/i2c.d" -o"src/drivers/iic/i2c.o"
'Executing target #16 D:/Freescale/kexx_drv_lib/src/drivers/acmp/acmp.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/ics/ics.c" @"src/drivers/ics/ics.args" -MMD -MP -MF"src/drivers/ics/ics.d" -o"src/drivers/ics/ics.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/gpio/gpio.c" @"src/drivers/gpio/gpio.args" -MMD -MP -MF"src/drivers/gpio/gpio.d" -o"src/drivers/gpio/gpio.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/ftm/ftm.c" @"src/drivers/ftm/ftm.args" -MMD -MP -MF"src/drivers/ftm/ftm.d" -o"src/drivers/ftm/ftm.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/crc/crc.c" @"src/drivers/crc/crc.args" -MMD -MP -MF"src/drivers/crc/crc.d" -o"src/drivers/crc/crc.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/adc/adc.c" @"src/drivers/adc/adc.args" -MMD -MP -MF"src/drivers/adc/adc.d" -o"src/drivers/adc/adc.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/acmp/acmp.c" @"src/drivers/acmp/acmp.args" -MMD -MP -MF"src/drivers/acmp/acmp.d" -o"src/drivers/acmp/acmp.o"
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/iic/i2c.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/nvm/flash.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/ftm/ftm.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/gpio/gpio.c'
' '
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/crc/crc.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/adc/adc.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/acmp/acmp.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/ics/ics.c'
' '
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/PMC/pmc.c'
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/arm_cm0.c'
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/start.c'
' '
' '
' '
' '
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/sysinit.c'
'Executing target #17 D:/Freescale/kexx_drv_lib/src/drivers/PMC/pmc.c'
'Executing target #18 D:/Freescale/kexx_drv_lib/src/cpu/arm_cm0.c'
'Executing target #19 D:/Freescale/kexx_drv_lib/src/cpu/start.c'
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/systick.c'
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/vectors.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/assert.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/io.c'
'Executing target #20 D:/Freescale/kexx_drv_lib/src/cpu/sysinit.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #21 D:/Freescale/kexx_drv_lib/src/cpu/systick.c'
'Executing target #22 D:/Freescale/kexx_drv_lib/src/cpu/vectors.c'
'Executing target #23 D:/Freescale/kexx_drv_lib/src/common/assert.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/PMC/pmc.c" @"src/drivers/PMC/pmc.args" -MMD -MP -MF"src/drivers/PMC/pmc.d" -o"src/drivers/PMC/pmc.o"
'Executing target #24 D:/Freescale/kexx_drv_lib/src/common/io.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/arm_cm0.c" @"src/cpu/arm_cm0.args" -MMD -MP -MF"src/cpu/arm_cm0.d" -o"src/cpu/arm_cm0.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/start.c" @"src/cpu/start.args" -MMD -MP -MF"src/cpu/start.d" -o"src/cpu/start.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/sysinit.c" @"src/cpu/sysinit.args" -MMD -MP -MF"src/cpu/sysinit.d" -o"src/cpu/sysinit.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/systick.c" @"src/cpu/systick.args" -MMD -MP -MF"src/cpu/systick.d" -o"src/cpu/systick.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/vectors.c" @"src/cpu/vectors.args" -MMD -MP -MF"src/cpu/vectors.d" -o"src/cpu/vectors.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/assert.c" @"src/common/assert.args" -MMD -MP -MF"src/common/assert.d" -o"src/common/assert.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/io.c" @"src/common/io.args" -MMD -MP -MF"src/common/io.d" -o"src/common/io.o"
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/arm_cm0.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/PMC/pmc.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/start.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/systick.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/vectors.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/sysinit.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/common/assert.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/memtest.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/common/io.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/printf.c'
' '
' '
' '
' '
'Executing target #25 D:/Freescale/kexx_drv_lib/src/common/memtest.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/queue.c'
' '
'Executing target #26 D:/Freescale/kexx_drv_lib/src/common/printf.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/startup.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/uif.c'
'Building file: ../Project_Settings/Startup_Code/__arm_end.c'
'Building file: ../Project_Settings/Startup_Code/__arm_start.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #27 D:/Freescale/kexx_drv_lib/src/common/queue.c'
'Building file: ../Project_Settings/Startup_Code/kinetis_sysinit.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #28 D:/Freescale/kexx_drv_lib/src/common/startup.c'
'Executing target #29 D:/Freescale/kexx_drv_lib/src/common/uif.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/memtest.c" @"src/common/memtest.args" -MMD -MP -MF"src/common/memtest.d" -o"src/common/memtest.o"
'Executing target #30 ../Project_Settings/Startup_Code/__arm_end.c'
'Executing target #31 ../Project_Settings/Startup_Code/__arm_start.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/printf.c" @"src/common/printf.args" -MMD -MP -MF"src/common/printf.d" -o"src/common/printf.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #32 ../Project_Settings/Startup_Code/kinetis_sysinit.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/queue.c" @"src/common/queue.args" -MMD -MP -MF"src/common/queue.d" -o"src/common/queue.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/startup.c" @"src/common/startup.args" -MMD -MP -MF"src/common/startup.d" -o"src/common/startup.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/uif.c" @"src/common/uif.args" -MMD -MP -MF"src/common/uif.d" -o"src/common/uif.o"
'Finished building: D:/Freescale/kexx_drv_lib/src/common/memtest.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/__arm_end.c" @"Project_Settings/Startup_Code/__arm_end.args" -MMD -MP -MF"Project_Settings/Startup_Code/__arm_end.d" -o"Project_Settings/Startup_Code/__arm_end.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/__arm_start.c" @"Project_Settings/Startup_Code/__arm_start.args" -MMD -MP -MF"Project_Settings/Startup_Code/__arm_start.d" -o"Project_Settings/Startup_Code/__arm_start.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/kinetis_sysinit.c" @"Project_Settings/Startup_Code/kinetis_sysinit.args" -MMD -MP -MF"Project_Settings/Startup_Code/kinetis_sysinit.d" -o"Project_Settings/Startup_Code/kinetis_sysinit.o"
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/common/printf.c'
'Finished building: ../Project_Settings/Startup_Code/__arm_end.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/common/startup.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/common/uif.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/common/queue.c'
'Finished building: ../Project_Settings/Startup_Code/__arm_start.c'
'Finished building: ../Project_Settings/Startup_Code/kinetis_sysinit.c'
' '
' '
' '
' '
' '
'Building target: ADC_FIFO_demo.elf'
'Executing target #33 ADC_FIFO_demo.elf'
'Invoking: ARM Ltd Windows GCC C Linker'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" @"ADC_FIFO_demo.args" -o"ADC_FIFO_demo.elf"
'Finished building target: ADC_FIFO_demo.elf'
' '
'Executing target #34 ADC_FIFO_demo.hex'
'Executing target #35 ADC_FIFO_demo.lst'
'Executing target #36 ADC_FIFO_demo.siz'
'Invoking: ARM Ltd Windows GNU Create Flash Image'
'Invoking: ARM Ltd Windows GNU Create Listing'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-objcopy" -O ihex ADC_FIFO_demo.elf "ADC_FIFO_demo.hex"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-objdump" -h -S ADC_FIFO_demo.elf >"ADC_FIFO_demo.lst"
'Invoking: ARM Ltd Windows GNU Print Size'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-size" --format=berkeley ADC_FIFO_demo.elf
'Finished building: ADC_FIFO_demo.hex'
text data bss dec hex filename
4828 24 572 5424 1530 ADC_FIFO_demo.elf
' '
'Finished building: ADC_FIFO_demo.siz'
' '
'Finished building: ADC_FIFO_demo.lst'
' '
D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c: In function 'main':
D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c:78:5: warning: missing braces around initializer [-Wmissing-braces]
D:/Freescale/kexx_drv_lib/src/common/startup.c:37:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c:38:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c:39:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c:40:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c:41:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c: In function 'common_startup':
D:/Freescale/kexx_drv_lib/src/common/startup.c:70:5: warning: implicit declaration of function '__section_begin' [-Wimplicit-function-declaration]
D:/Freescale/kexx_drv_lib/src/common/startup.c:71:23: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:72:5: warning: implicit declaration of function '__section_end' [-Wimplicit-function-declaration]
D:/Freescale/kexx_drv_lib/src/common/startup.c:81:24: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:82:22: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:95:32: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:96:28: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:97:32: warning: initialization makes pointer from integer without a cast [enabled by default]
../Project_Settings/Startup_Code/__arm_start.c:45:14: warning: 'argv' defined but not used [-Wunused-variable]
Hi, Llkka,
Regarding your issue, I have used CodeWarrior for mcu ver10.6 to compile the project located at:
D:\Freescale\kexx_drv_lib\build\cw\ke04\ADC_FIFO_demo
I have not any problem. The void __thumb_startup(void) is located at _arm_start.c.
I copy the log here, hope it can help you.
which tools are you using CW, IAR or Keil?
BR
XiangJun Rong
**** Build of configuration FLASH for project ADC_FIFO_demo ****
"D:\\FreescaleC\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j8 all
'Building file: D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/wdog/wdog.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/uart/uart.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/sim/sim.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/spi/spi.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/rtc/rtc.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/pwt/pwt.c'
'Executing target #2 D:/Freescale/kexx_drv_lib/src/drivers/wdog/wdog.c'
'Executing target #1 D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/pit/pit.c'
'Executing target #3 D:/Freescale/kexx_drv_lib/src/drivers/uart/uart.c'
'Executing target #4 D:/Freescale/kexx_drv_lib/src/drivers/spi/spi.c'
'Executing target #5 D:/Freescale/kexx_drv_lib/src/drivers/sim/sim.c'
'Executing target #6 D:/Freescale/kexx_drv_lib/src/drivers/rtc/rtc.c'
'Executing target #7 D:/Freescale/kexx_drv_lib/src/drivers/pwt/pwt.c'
'Executing target #8 D:/Freescale/kexx_drv_lib/src/drivers/pit/pit.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c" @"src/projects/ADC_FIFO_demo/ADC_FIFO_demo.args" -MMD -MP -MF"src/projects/ADC_FIFO_demo/ADC_FIFO_demo.d" -o"src/projects/ADC_FIFO_demo/ADC_FIFO_demo.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/wdog/wdog.c" @"src/drivers/wdog/wdog.args" -MMD -MP -MF"src/drivers/wdog/wdog.d" -o"src/drivers/wdog/wdog.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/uart/uart.c" @"src/drivers/uart/uart.args" -MMD -MP -MF"src/drivers/uart/uart.d" -o"src/drivers/uart/uart.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/spi/spi.c" @"src/drivers/spi/spi.args" -MMD -MP -MF"src/drivers/spi/spi.d" -o"src/drivers/spi/spi.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/sim/sim.c" @"src/drivers/sim/sim.args" -MMD -MP -MF"src/drivers/sim/sim.d" -o"src/drivers/sim/sim.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/rtc/rtc.c" @"src/drivers/rtc/rtc.args" -MMD -MP -MF"src/drivers/rtc/rtc.d" -o"src/drivers/rtc/rtc.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/pwt/pwt.c" @"src/drivers/pwt/pwt.args" -MMD -MP -MF"src/drivers/pwt/pwt.d" -o"src/drivers/pwt/pwt.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/pit/pit.c" @"src/drivers/pit/pit.args" -MMD -MP -MF"src/drivers/pit/pit.d" -o"src/drivers/pit/pit.o"
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/wdog/wdog.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/sim/sim.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/uart/uart.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/rtc/rtc.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/pwt/pwt.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/nvm/flash.c'
' '
' '
' '
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/spi/spi.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/pit/pit.c'
'Executing target #9 D:/Freescale/kexx_drv_lib/src/drivers/nvm/flash.c'
' '
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/iic/i2c.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/ics/ics.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/gpio/gpio.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/ftm/ftm.c'
' '
' '
'Invoking: ARM Ltd Windows GCC C Compiler'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/crc/crc.c'
'Executing target #10 D:/Freescale/kexx_drv_lib/src/drivers/iic/i2c.c'
'Executing target #11 D:/Freescale/kexx_drv_lib/src/drivers/ics/ics.c'
'Executing target #12 D:/Freescale/kexx_drv_lib/src/drivers/gpio/gpio.c'
'Executing target #13 D:/Freescale/kexx_drv_lib/src/drivers/ftm/ftm.c'
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/adc/adc.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/nvm/flash.c" @"src/drivers/nvm/flash.args" -MMD -MP -MF"src/drivers/nvm/flash.d" -o"src/drivers/nvm/flash.o"
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/acmp/acmp.c'
'Executing target #14 D:/Freescale/kexx_drv_lib/src/drivers/crc/crc.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #15 D:/Freescale/kexx_drv_lib/src/drivers/adc/adc.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/iic/i2c.c" @"src/drivers/iic/i2c.args" -MMD -MP -MF"src/drivers/iic/i2c.d" -o"src/drivers/iic/i2c.o"
'Executing target #16 D:/Freescale/kexx_drv_lib/src/drivers/acmp/acmp.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/ics/ics.c" @"src/drivers/ics/ics.args" -MMD -MP -MF"src/drivers/ics/ics.d" -o"src/drivers/ics/ics.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/gpio/gpio.c" @"src/drivers/gpio/gpio.args" -MMD -MP -MF"src/drivers/gpio/gpio.d" -o"src/drivers/gpio/gpio.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/ftm/ftm.c" @"src/drivers/ftm/ftm.args" -MMD -MP -MF"src/drivers/ftm/ftm.d" -o"src/drivers/ftm/ftm.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/crc/crc.c" @"src/drivers/crc/crc.args" -MMD -MP -MF"src/drivers/crc/crc.d" -o"src/drivers/crc/crc.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/adc/adc.c" @"src/drivers/adc/adc.args" -MMD -MP -MF"src/drivers/adc/adc.d" -o"src/drivers/adc/adc.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/acmp/acmp.c" @"src/drivers/acmp/acmp.args" -MMD -MP -MF"src/drivers/acmp/acmp.d" -o"src/drivers/acmp/acmp.o"
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/iic/i2c.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/nvm/flash.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/ftm/ftm.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/gpio/gpio.c'
' '
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/crc/crc.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/adc/adc.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/acmp/acmp.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/ics/ics.c'
' '
'Building file: D:/Freescale/kexx_drv_lib/src/drivers/PMC/pmc.c'
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/arm_cm0.c'
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/start.c'
' '
' '
' '
' '
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/sysinit.c'
'Executing target #17 D:/Freescale/kexx_drv_lib/src/drivers/PMC/pmc.c'
'Executing target #18 D:/Freescale/kexx_drv_lib/src/cpu/arm_cm0.c'
'Executing target #19 D:/Freescale/kexx_drv_lib/src/cpu/start.c'
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/systick.c'
'Building file: D:/Freescale/kexx_drv_lib/src/cpu/vectors.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/assert.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/io.c'
'Executing target #20 D:/Freescale/kexx_drv_lib/src/cpu/sysinit.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #21 D:/Freescale/kexx_drv_lib/src/cpu/systick.c'
'Executing target #22 D:/Freescale/kexx_drv_lib/src/cpu/vectors.c'
'Executing target #23 D:/Freescale/kexx_drv_lib/src/common/assert.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/drivers/PMC/pmc.c" @"src/drivers/PMC/pmc.args" -MMD -MP -MF"src/drivers/PMC/pmc.d" -o"src/drivers/PMC/pmc.o"
'Executing target #24 D:/Freescale/kexx_drv_lib/src/common/io.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/arm_cm0.c" @"src/cpu/arm_cm0.args" -MMD -MP -MF"src/cpu/arm_cm0.d" -o"src/cpu/arm_cm0.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/start.c" @"src/cpu/start.args" -MMD -MP -MF"src/cpu/start.d" -o"src/cpu/start.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/sysinit.c" @"src/cpu/sysinit.args" -MMD -MP -MF"src/cpu/sysinit.d" -o"src/cpu/sysinit.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/systick.c" @"src/cpu/systick.args" -MMD -MP -MF"src/cpu/systick.d" -o"src/cpu/systick.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/cpu/vectors.c" @"src/cpu/vectors.args" -MMD -MP -MF"src/cpu/vectors.d" -o"src/cpu/vectors.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/assert.c" @"src/common/assert.args" -MMD -MP -MF"src/common/assert.d" -o"src/common/assert.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/io.c" @"src/common/io.args" -MMD -MP -MF"src/common/io.d" -o"src/common/io.o"
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/arm_cm0.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/drivers/PMC/pmc.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/start.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/systick.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/vectors.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/cpu/sysinit.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/common/assert.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/memtest.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/common/io.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/printf.c'
' '
' '
' '
' '
'Executing target #25 D:/Freescale/kexx_drv_lib/src/common/memtest.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/queue.c'
' '
'Executing target #26 D:/Freescale/kexx_drv_lib/src/common/printf.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/startup.c'
'Building file: D:/Freescale/kexx_drv_lib/src/common/uif.c'
'Building file: ../Project_Settings/Startup_Code/__arm_end.c'
'Building file: ../Project_Settings/Startup_Code/__arm_start.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #27 D:/Freescale/kexx_drv_lib/src/common/queue.c'
'Building file: ../Project_Settings/Startup_Code/kinetis_sysinit.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #28 D:/Freescale/kexx_drv_lib/src/common/startup.c'
'Executing target #29 D:/Freescale/kexx_drv_lib/src/common/uif.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/memtest.c" @"src/common/memtest.args" -MMD -MP -MF"src/common/memtest.d" -o"src/common/memtest.o"
'Executing target #30 ../Project_Settings/Startup_Code/__arm_end.c'
'Executing target #31 ../Project_Settings/Startup_Code/__arm_start.c'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/printf.c" @"src/common/printf.args" -MMD -MP -MF"src/common/printf.d" -o"src/common/printf.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Executing target #32 ../Project_Settings/Startup_Code/kinetis_sysinit.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/queue.c" @"src/common/queue.args" -MMD -MP -MF"src/common/queue.d" -o"src/common/queue.o"
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/startup.c" @"src/common/startup.args" -MMD -MP -MF"src/common/startup.d" -o"src/common/startup.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "D:/Freescale/kexx_drv_lib/src/common/uif.c" @"src/common/uif.args" -MMD -MP -MF"src/common/uif.d" -o"src/common/uif.o"
'Finished building: D:/Freescale/kexx_drv_lib/src/common/memtest.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/__arm_end.c" @"Project_Settings/Startup_Code/__arm_end.args" -MMD -MP -MF"Project_Settings/Startup_Code/__arm_end.d" -o"Project_Settings/Startup_Code/__arm_end.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/__arm_start.c" @"Project_Settings/Startup_Code/__arm_start.args" -MMD -MP -MF"Project_Settings/Startup_Code/__arm_start.d" -o"Project_Settings/Startup_Code/__arm_start.o"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/kinetis_sysinit.c" @"Project_Settings/Startup_Code/kinetis_sysinit.args" -MMD -MP -MF"Project_Settings/Startup_Code/kinetis_sysinit.d" -o"Project_Settings/Startup_Code/kinetis_sysinit.o"
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/common/printf.c'
'Finished building: ../Project_Settings/Startup_Code/__arm_end.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/common/startup.c'
' '
'Finished building: D:/Freescale/kexx_drv_lib/src/common/uif.c'
'Finished building: D:/Freescale/kexx_drv_lib/src/common/queue.c'
'Finished building: ../Project_Settings/Startup_Code/__arm_start.c'
'Finished building: ../Project_Settings/Startup_Code/kinetis_sysinit.c'
' '
' '
' '
' '
' '
'Building target: ADC_FIFO_demo.elf'
'Executing target #33 ADC_FIFO_demo.elf'
'Invoking: ARM Ltd Windows GCC C Linker'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" @"ADC_FIFO_demo.args" -o"ADC_FIFO_demo.elf"
'Finished building target: ADC_FIFO_demo.elf'
' '
'Executing target #34 ADC_FIFO_demo.hex'
'Executing target #35 ADC_FIFO_demo.lst'
'Executing target #36 ADC_FIFO_demo.siz'
'Invoking: ARM Ltd Windows GNU Create Flash Image'
'Invoking: ARM Ltd Windows GNU Create Listing'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-objcopy" -O ihex ADC_FIFO_demo.elf "ADC_FIFO_demo.hex"
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-objdump" -h -S ADC_FIFO_demo.elf >"ADC_FIFO_demo.lst"
'Invoking: ARM Ltd Windows GNU Print Size'
"D:/FreescaleC/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-size" --format=berkeley ADC_FIFO_demo.elf
'Finished building: ADC_FIFO_demo.hex'
text data bss dec hex filename
4828 24 572 5424 1530 ADC_FIFO_demo.elf
' '
'Finished building: ADC_FIFO_demo.siz'
' '
'Finished building: ADC_FIFO_demo.lst'
' '
D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c: In function 'main':
D:/Freescale/kexx_drv_lib/src/projects/KE04/ADC_FIFO_demo/ADC_FIFO_demo.c:78:5: warning: missing braces around initializer [-Wmissing-braces]
D:/Freescale/kexx_drv_lib/src/common/startup.c:37:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c:38:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c:39:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c:40:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c:41:0: warning: ignoring #pragma section [-Wunknown-pragmas]
D:/Freescale/kexx_drv_lib/src/common/startup.c: In function 'common_startup':
D:/Freescale/kexx_drv_lib/src/common/startup.c:70:5: warning: implicit declaration of function '__section_begin' [-Wimplicit-function-declaration]
D:/Freescale/kexx_drv_lib/src/common/startup.c:71:23: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:72:5: warning: implicit declaration of function '__section_end' [-Wimplicit-function-declaration]
D:/Freescale/kexx_drv_lib/src/common/startup.c:81:24: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:82:22: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:95:32: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:96:28: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/Freescale/kexx_drv_lib/src/common/startup.c:97:32: warning: initialization makes pointer from integer without a cast [enabled by default]
../Project_Settings/Startup_Code/__arm_start.c:45:14: warning: 'argv' defined but not used [-Wunused-variable]
I can compile working projects in CW. I got rid of this error by including some more headers and code. But the compiled project doesn't work in hardware.