Linker giving error when building the ble_app_alert_notification_pca10028_s130

Hi,

I have installed Segger Studio for ARM v6.22a.

I have also installed the SDK5 version 12.3.0.

I imported the IAR project project  ble_app_start_notification_pca10028_s130 (.eww file) 

I also selected internal toolchain on the popup.

I also followed the directions followed for importing KEIL projects into the workspace :https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/segger-embedded-studio-a-cross-platform-ide

I was not able to "import section placement" as the option is not showing up when I right click on the project name. Is it because I am using a non commercial license?

Now when I do the build I get a whole lot of linker errors.

Can you please tell me what I am missing?

Please see error image below:

Rajkumar

Parents Reply Children
  • Hi Simon,

    Actually I was able to finally flash the softdevice-130 using the nrfgo. I am using nrf51422xxxac.

    I was able to then flash the application using the debugger. However the ble_stack_init() function when it calls sd_softdevice_enable, hits the app_error handler function with error code 8. I have not made any changes to the application, so I was wondering why I am getting this error all the time. I have tried multiple times. I have also tried with other applications.

    My RAM and flash settings are:

    FLASH1 RX 0x1B000 0x00025000;RAM1 RWX 0x200013C8 0x00006c38

    Please tell me where I am going wrong. Thanks.

    regards,

    Rajkumar

  • Hi Simon,

    Sorry, I noticed that I had #defined my "SRAM_segment_end__" to resolve the previous undefined reference error. Now I followed the flash_placement steps and have renamed FLASH to FLASH1 and SRAM to SRAM1.

    I am getting the following error now:

    cannot find run section .fast_run referenced in fast

    Here, attached is my flash_placement.xml. Can you please tell me what is wrong? Thanks.

  • Hi Simon,

    After the last error of "

    cannot find run section .fast_run referenced in fast,

    I changed the "RAM_NAME=RAM" to "RAM_NAME="RAM1" and now I am getting the following error:

    undefined reference to `__RAM_segment_end__'

    I am attaching my last flash_placement file here for your reference. This error is not going away. Please check this one.

  • Hi Simon,

    Can you please clarify the above? Thanks.

    regards,

    Rajkumar

  • Hi Simon,

    Actually I was able to completely build the project by changing the "__RAM_segment_end__" reference to "__RAM1_segment_end__". Hope that is fine.

    However, When I tried the s130 softdevice 2.0.1 with the peripheral example in the 12.3.0 SDK, the soft device initialization returns error code 8. 

    My device kit is an nrf51422 device. From the compatibility matrix I read that for nrf51422, the peripheral examples are compatible with S110 softdevice and the (central and peripheral) examples are compatible with S130.

    Is that true?

    So for trying out a peripheral example in the 12.3.0 SDK, I would need S110?

    Thanks.

    best regards,

    Rajkumar

Related