8 years, 10 months ago.

Compile error in mbed-rtos when exporting to GCC ARM Embedded toolchain

Error info:

mbed-rtos/rtx/TARGET_CORTEX_M/TARGET_M4/TOOLCHAIN_GCC/HAL_CM4.s: Assembler messages:
mbed-rtos/rtx/TARGET_CORTEX_M/TARGET_M4/TOOLCHAIN_GCC/HAL_CM4.s:217: Error: IT falling in the range of a previous IT block -- `ite EQ'
........
Cause:

GNU AS does NOT recognize C preprocessing keywords.

Workaround:

Change the Makefile to use GCC instead of AS for assembly source files.

.s.o:
#	$(AS) $(CPU) -o $@ $<
	$(CC) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu99 -x assembler-with-cpp $(INCLUDE_PATHS) -o $@ $<

Thank you !

posted by Robert Spilleboudt 23 Jun 2015

Same problem here. Thanks for postings this.

posted by Mateusz Kaduk 23 Jun 2015
Be the first to answer this question.