Problem building MQXLite with GNU Arm Embedded build chain

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem building MQXLite with GNU Arm Embedded build chain

跳至解决方案
1,415 次查看
jwiblin
Contributor II

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.

标记 (3)
0 项奖励
回复
1 解答
956 次查看
jwiblin
Contributor II

I think i might of fixed this. I was setting up the build environment using this tutorial: DIY Free Toolchain for Kinetis: Part 4 – Processor Expert for Eclipse | MCU on Eclipse but when i create a new PEx project and leave the build settings alone it builds fine.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
956 次查看
soledad
NXP Employee
NXP Employee

Hi James,

Thank you for share your solution :smileywink:


Have a great day,
Sol

0 项奖励
回复
957 次查看
jwiblin
Contributor II

I think i might of fixed this. I was setting up the build environment using this tutorial: DIY Free Toolchain for Kinetis: Part 4 – Processor Expert for Eclipse | MCU on Eclipse but when i create a new PEx project and leave the build settings alone it builds fine.

0 项奖励
回复