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

SEGGER and SoftDevice 130 example

Hello, 

I could not find a way to build S130 examples for nrf51822XXAC via SEGGER. I am getting errors at the build stage. I am using nRF5_SDK_12.3.0_d7731ad. Is there any tutorial?

Thanks in advance.

Parents
  • Hi,

    Support for SEGGER came in SDK v14.1.0. Since you're using an older version of the SDK, you must import and convert a Keil project. You can read how to do this in this guide.

    Best regards,

    Marte

  • Hi,

    I followed the guide for the app below.

    /Users/macbook/Downloads/nRF5_SDK_12.3.0_d7731ad/examples/ble_peripheral/ble_app_beacon/pca10028/s130/arm5_no_packs

    I got the error below at the build stage.

    Building ?ble_app_beacon_pca10028_s130? from solution ?ble_app_beacon_pca10028_s130? in configuration ?nrf51422_xxac Internal?
    1> Assembling ?SEGGER_THUMB_Startup.s?
    2> Compiling ?system_nrf51.c?
    3> Assembling ?ses_nrf51_startup.s?
    1> Compiling ?boards.c?
    4> Compiling ?main.c?
    1> Compiling ?ble_advdata.c?
    2> Compiling ?bsp_nfc.c?
    5> Compiling ?bsp.c?
    1> Compiling ?nrf_drv_clock.c?
    2> Compiling ?nrf_drv_common.c?
    1> Compiling ?nrf_drv_uart.c?
    3> Compiling ?nrf_drv_gpiote.c?
    4> Compiling ?ble_srv_common.c?
    6> Compiling ?ble_conn_params.c?
    1> Compiling ?app_error_weak.c?
    2> Compiling ?app_error.c?
    1> Compiling ?hardfault_implementation.c?
    2> Compiling ?nrf_assert.c?
    3> Compiling ?app_util_platform.c?
    1> Compiling ?nrf_log_backend_serial.c?
    4> Compiling ?sdk_errors.c?
    5> Compiling ?app_timer.c?
    7> Compiling ?app_button.c?
    1> Compiling ?SEGGER_RTT.c?
    2> Compiling ?RTT_Syscalls_KEIL.c?
    3> Compiling ?SEGGER_RTT_printf.c?
    5> In file included from /Users/macbook/Downloads/DeviceDownload_/nRF5_SDK_12.3.0_d7731ad/components/libraries/timer/app_timer.c:47:
    5> ../../../../../../components/drivers_nrf/delay/nrf_delay.h:236:6: error: '.syntax divided' arm assembly not supported
    5> :17:1: note: instantiated into assembly here
    8> Compiling ?nrf_log_frontend.c?
    Build failed
    


    Thanks.
    Durmaz

  • Hi,

    The error is on line 236 in nrf_delay.h, which is the following

    #if ( defined(__GNUC__) && (__CORTEX_M == (0x00U) ) )
        ".syntax divided\n"
    #endif

    So the problem is with the compiler. Did you remember to install the CMSIS-CORE Support Package? If not you can install it by going to Tools > Package Manager, and select and install CMSIS-CORE Support Package. Other things you can check is whether you chose the internal toolchain in the Import Build Configuration window, and that you added and deleted the correct files (delete Cortex_M_Startup.s and add system_nrf51.c and ses_nrf51_startup.s.)

    There's also a blog post here that you can follow. The steps are mostly similar to the other guide, but there's some added information in some places.

    Best regards,

    Marte

Reply Children
No Data
Related