AnsweredAssumed Answered

Problem building MQXLite with GNU Arm Embedded build chain

Question asked by James Wiblin on Jul 14, 2014
Latest reply on Jul 17, 2014 by soledad

Hi there.

 

I am trying to build mqx lite using the GCC arm build chain for a KL25Z target. I am using the processor expert driver suite plugin 10.4 with Eclipse Kepler.

 

I encounter problems when it comes to building the assembly files. With boot.S i have the followings errors:

 

'Building file: ../MQXLITE/psp/cortex_m/core/M0/boot.S'

'Invoking: Cross GCC Assembler'

arm-none-eabi-as -I"C:/project/frdm-demo-mqxl/MQXLITE/include" -I"C:/project/frdm-demo-mqxl/MQXLITE/config" -I"C:/project/frdm-demo-mqxl/MQXLITE/kernel" -I"C:/project/frdm-demo-mqxl/MQXLITE/psp/cortex_m" -I"C:/project/frdm-demo-mqxl/MQXLITE/psp/cortex_m/core/M0" -I"C:/project/frdm-demo-mqxl/MQXLITE/psp/cortex_m/compiler/rv" -o "MQXLITE/psp/cortex_m/core/M0/boot.o" "../MQXLITE/psp/cortex_m/core/M0/boot.S"

../MQXLITE/psp/cortex_m/core/M0/boot.S: Assembler messages:

../MQXLITE/psp/cortex_m/core/M0/boot.S:47: Error: bad instruction `asm_comp_specific_directives'

../MQXLITE/psp/cortex_m/core/M0/boot.S:49: Error: unexpected character `t' in type specifier

../MQXLITE/psp/cortex_m/core/M0/boot.S:49: Error: bad instruction `asm_code_section(.text)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:51: Error: bad instruction `set_function_alignment'

../MQXLITE/psp/cortex_m/core/M0/boot.S:53: Error: bad instruction `asm_public(__boot)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:64: Error: bad instruction `asm_equate(NVIC_ICER, 0xE000E180)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:65: Error: bad instruction `asm_equate(NVIC_ICPR, 0xE000E280)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:68: Error: bad instruction `asm_public_begin(__boot)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:69: Error: bad instruction `asm_public_func(__boot)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:70: Error: bad instruction `asm_label(__boot)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:81: Error: selected processor does not support requested special purpose register -- `mrs r0,MSP'

../MQXLITE/psp/cortex_m/core/M0/boot.S:82: Error: selected processor does not support requested special purpose register -- `msr PSP,r0'

../MQXLITE/psp/cortex_m/core/M0/boot.S:85: Error: selected processor does not support requested special purpose register -- `mrs r0,CONTROL'

../MQXLITE/psp/cortex_m/core/M0/boot.S:88: Error: selected processor does not support requested special purpose register -- `msr CONTROL,r0'

../MQXLITE/psp/cortex_m/core/M0/boot.S:94: Error: bad instruction `asm_extern(__thumb_startup)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:95: Error: unrecognized relocation suffix -- `bl ASM_PREFIX(__thumb_startup)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:97: Error: bad instruction `asm_extern(__iar_program_start)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:98: Error: unrecognized relocation suffix -- `bl ASM_PREFIX(__iar_program_start)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:100: Error: bad instruction `asm_extern(__thumb_startup)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:101: Error: unrecognized relocation suffix -- `bl ASM_PREFIX(__thumb_startup)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:103: Error: bad instruction `asm_public_end(__boot)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:106: Error: bad instruction `asm_align(4)'

../MQXLITE/psp/cortex_m/core/M0/boot.S:107: Error: bad instruction `asm_end'

make: *** [MQXLITE/psp/cortex_m/core/M0/boot.o] Error 1

 

It seems like the assembly instructions used in this file is not compatible with the gcc compiler however it is my understanding that the code generated by the plugin should be compatible with gcc/gnu?

 

Thanks

 

James.

Outcomes