AnsweredAssumed Answered

cannot find entry symbol __thumb_startup

Question asked by Ilkka Nisula on Feb 21, 2016
Latest reply on Feb 22, 2016 by Ilkka Nisula

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/,--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?