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

nRF SDK examples fail to compile in Segger Embedded Studio?

I just downloaded nRF SDK 17.0.2 and installed Segger Embedded Studio V5.20a

I opened the blinky example for the nrf52840 (C:\Nordic\nRF5_SDK_17.0.2_d674dde\examples\peripheral\blinky\pca10056\blank\ses), and when I go to build it, I get an error:

"unknown token in expression" and it directs me to line 62 of app_error_handler_gcc.c

which is:

    /* prepare arguments and call function: app_error_fault_handler */
    "ldr r0, =%4                    \n"
    "mov r1, lr                     \n"
    "mov r2, sp                     \n"
    "bl  %5                         \n"

What am I doing wrong here? I figured that the examples should work out of the box.

Parents
  • Hi,

    I'm not able to reproduce your issue. Could you please check which compiler you're using? You can find this by right clicking on "Project 'blinky_pca10056'" and then going to Options > Compiler, and check whether you're using gcc or clang. If you're using clang, try to switch to gcc.

    If this doesn't solve your problem, could you try to download the SDK again and see if you still get this error?

    Best regards,

    Marte

Reply
  • Hi,

    I'm not able to reproduce your issue. Could you please check which compiler you're using? You can find this by right clicking on "Project 'blinky_pca10056'" and then going to Options > Compiler, and check whether you're using gcc or clang. If you're using clang, try to switch to gcc.

    If this doesn't solve your problem, could you try to download the SDK again and see if you still get this error?

    Best regards,

    Marte

Children
Related