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

softdevice_enable() does not return on nRF52, sdk12.0.0

I am using s132_nrf52_3.0.0_softdevice.hex and sdk12 and compiling with arm-none-eabi-gcc. The problem is that the bluetooth set up just jams at:

   // Enable BLE stack.
    err_code = softdevice_enable(&ble_enable_params);
    APP_ERROR_CHECK(err_code);

So I do not get any error code, because the softdevice_enable never returns. I am thinking could the problem have something to do with the define in the Makefile:

CFLAGS += -DNRF_SD_BLE_API_VERSION=3 

Is that correct for the softdevice version I am using? Or what could be the reason for the problem?

Parents Reply
  • Yep, that is the SDK I am using. The softdevice_enable() now prints

    **SDH:INFO:sd_ble_enable: RAM START at 0x20002168
    SDH:WARNING:sd_ble_enable: app_ram_base should be adjusted to 0x20002128
    SDH:WARNING:ram size should be adjusted to 0xded8**
    

    So I assume those print outs will fail if NRF_LOG is not initialized. When I adjust those RAM values correctly, it still prints

    SDH:INFO:sd_ble_enable: RAM START at 0x20002128
    

    So maybe NRF_LOG_INIT() is needed even then?

Children
No Data
Related