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

SEGGER Embedded cannot initialize nfr52 SoftDevice

Hello,

I have tried to debug ble_app_uart_pca10040_s132 application included in nordic SDK12.2 with Segger Embedded studio v3.12, but even though I don't get error while compiling, I cannot debug that application since SEGGER seems to have issues to enable the softDevice.

I have debugged it step by step and I see how the application reaches till the point where it calls the method softdevice_enable(), which returns as error_code 0x00000004 as shown in the picture image description

Going inside the method shows (pic) that the there's an issue with the mapping of the RAM memory mapping

image description

I would appreciate if someone could enligthen me concerning to this.

Thanks in advance,

Regards

EDIT< my memory config image description

  • What values did you use for flash start and ram start(memory mapping)?

  • I used FLASH_START=0x1F000 SRAM_START=0x20002000 in the Linker->Section Placement Macros, should I import section placement in my project if I have made those settings?

  • You should use SRAM_START=0x20002128. You can find the correct settings for each example in linker script e.g ble_app_uart\pca10040\s132\armgcc\ble_app_uart_gcc_nrf52.ld

  • Thanks Daniel, I will try it. Do you know whether or not it is necessary to add the LENGTH in the memort mapping, if so, how I should do it? With the same macro?

  • @ndarkness : You should not have to specify the length as long as you do not plan to use our bootloader.

1 2