AnsweredAssumed Answered

Why am I getting a compiler error on ../Project_Settings/Startup_Code/startup_ARM_CC.c?

Question asked by Rob Riggs on Jan 28, 2014
Latest reply on Aug 21, 2014 by micro eval

I have set up PE 10.3 for Eclipse on Linux (Fedora 19).  I am using arm-none-eabi-gcc.


I am following along a tutorial for MQX Lite.  Everything goes OK until the build phase.


arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -O2 -fmessage-length=0  -g -I../Generated_Code -I../MQXLITE/config -I../MQXLITE/include -I../MQXLITE/kernel -I../MQXLITE/psp/cortex_m -I../Sources -I../Project_Settings/Startup_Code -I"/usr/lib64/ProcessorExpert/lib/Kinetis/iofiles" -I"/usr/lib64/ProcessorExpert/lib/Kinetis/pdd/inc" -MMD -MP -MF"Project_Settings/Startup_Code/startup_ARM_CC.d" -MT"Project_Settings/Startup_Code/startup_ARM_CC.d" -c -o "Project_Settings/Startup_Code/startup_ARM_CC.o" "../Project_Settings/Startup_Code/startup_ARM_CC.c"

../Project_Settings/Startup_Code/startup_ARM_CC.c:24:7: error: expected '(' before 'void'

__asm void __thumb_startup(void) {



The syntax in startup_ARM_CC.c is clearly not GNU compatible.  How do I fix this?