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

Program hang in sd_softdevice_enable

Hi all,

I'm working with the nRF52 and I'm trying to run the heart rate sensor example from SDK version 13.1.0 using Crossworks as my IDE. I can compile and run the program but nothing happens and when I debug the program I find that it is hanging in sd_softdevice_enable(). I have used PCA100040 evaluation board and I have set FLASH_START=0x1F000 and RAM_START=0x20002800. I have also tried another ble_app_template example and got the same issue. I am using soft device s132.

I have tried using nRFGo to separate program soft device hex and app code hex separate and it did not work. It worked with pre-provided hex file.

Any ideas as to why this is happening?

Thanks,

William

Parents
  • Ok, I built and ran ble_app_hrs, from SDK 13.0 (sorry never downloaded 13.1 seems insignificant) on a PCA100040.

    It was broadcasting and I was able to connect using the HRM app in nRF Toolbox.

    I had to turn off nRF Logging to get the image size down for Keil. Also the ROM start in the app as provided was wrong.

    IROM1 start needs to be 0x1F000 and size is 0x61000. The size is arbitrarily large. Actual size of the image is under 32k. The start is specified in the S132_4.0.2 release notes.

    IRAM1 start is 0x20002558 and size is 0xDAA8

    The S132 4.0.2 image I loaded is the unaltered one in the components folder of the SDK.

    Take a look at this and see how things are configured on your end.

Reply
  • Ok, I built and ran ble_app_hrs, from SDK 13.0 (sorry never downloaded 13.1 seems insignificant) on a PCA100040.

    It was broadcasting and I was able to connect using the HRM app in nRF Toolbox.

    I had to turn off nRF Logging to get the image size down for Keil. Also the ROM start in the app as provided was wrong.

    IROM1 start needs to be 0x1F000 and size is 0x61000. The size is arbitrarily large. Actual size of the image is under 32k. The start is specified in the S132_4.0.2 release notes.

    IRAM1 start is 0x20002558 and size is 0xDAA8

    The S132 4.0.2 image I loaded is the unaltered one in the components folder of the SDK.

    Take a look at this and see how things are configured on your end.

Children
No Data
Related