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

Parents
  • Hello guys! Thank you for your anwers! I'm sorry to have not replied before but I had some troubles with my ISP :S

    Good evening!

    EDIT: Guys, I still have troubles with this particular example: this time it compiles correctly and, after i merge it against the SoftDevice 110 7.1 with the command

    srec_cat s110_nrf51822_7.1.0_softdevice.hex -intel nrf51422_xxac.hex -intel -offset 0x16000 -o com.hex -intel
    

    I can successfully flash it on the chip through CMSIS-DAP but it doesn't work, and debugging it, I can see that the code does not reach the main..

    Do you have any suggestion to get this simple example working?

  • This is not an answer to your original question. Please open up a new thread when you have a new question. We are trying to keep it this way so that it's easier for others to find a solution if they have a similar question.

Reply Children
No Data
Related