This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error compiling blinky_rtx example nrf51

Hello guys!

I'm experiencing some troubles trying to compile the blinky_rtx example for my new nrf51DK. The source is taken from the SDK7.2.0.

I'm under Linux and I'm using arm-none-eabi-gcc suite for compiling. All I get is here:

Compiling file: system_nrf51.c
Compiling file: main.c
Compiling file: RTX_Conf_CM.c
Compiling file: gcc_startup_nrf51.s
Linking target: nrf51422_xxac.out
/tmp/cc927Z2N.s: Assembler messages:
/tmp/cc927Z2N.s:133: Error: cannot honor width suffix -- `mov r2,#128'
/tmp/cc927Z2N.s:135: Error: cannot honor width suffix -- `lsl r2,r2,#1'
/tmp/cc927Z2N.s:139: Error: cannot honor width suffix -- `mov r1,#193'

[.... bla bla...]

/tmp/cc927Z2N.s:437: Error: cannot honor width suffix -- `lsl r2,r2,#8'
lto-wrapper: arm-none-eabi-gcc returned 1 exit status
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status

I really can't even guess what is causing it. I'm quite new to embedded programming :/ Can you give me a hint, please? Good evening, Francesco

Related