cancel
Showing results for 
Search instead for 
Did you mean: 

Coocox to Makefile causes ASM compiling error

TGeof.2
Associate II

I'm attempting to migrate an old project from Coocox, to a good old Makefile, and somehow, even though all the gcc options are the same, and I use the same exact toolchain, I get his error, following this command:

arm-none-eabi-gcc
-c -g -O0 -Wall 
$(INCLUDES)
-DUSE_STDPERIPH_DRIVER
-D__ASSEMBLY__ 
-DSTM32F429VI 
-DSTM32F429xx
-mcpu=cortex-m4 
-Wall  -ffunction-sections -std=c99 cmsis_boot/startup/startup_stm32f4xx.c -o build/startup_stm32f4xx.o
/tmp/cc7cex4m.s: Assembler messages:
/tmp/cc7cex4m.s:180: Error: selected processor does not support `it lt` in Thumb mode
/tmp/cc7cex4m.s:181: Error: Thumb does not support conditional execution
/tmp/cc7cex4m.s:1995: Error: selected processor does not support requested special purpose register -- `mrseq r0,msp`
/tmp/cc7cex4m.s:1996: Error: selected processor does not support requested special purpose register -- `mrsne r0,psp`
make: *** [makefile:168 : build/startup_stm32f4xx.o] Erreur 1

2 REPLIES 2

What version of the assembler?

Try capitalizing MSP and PSP​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TGeof.2
Associate II

I've tried with two versions: the last one used with coocox, and the latest one I had installed, namely:

GNU assembler (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 2.29.51.20171128

GNU assembler (GNU Arm Embedded Toolchain 9-2020-q2-update) 2.34.0.20200428

Capitalizing MSP and PSP changed nothing