nrf52840 nrf5_sdk_17.1.0 ''nrf_sdh_ble_enable" error code 4

    error_code = nrf_sdh_ble_enable(&ram_start);
    APP_ERROR_CHECK(err_code);

recived error code 4

I am using nrf52840 for my application and use ble_app_template_pca10056_s140 for my project
and receives error code 4 for nrf_sdh_ble_enable

Parents
  • Hello,

    What does your log say when this happens? I would think that you need to adjust your memory sections, if you have changed something in the SoftDevice configuration since your last build.

    Please make sure to have DEBUG defined in your preprocessor defines, like shown in the included image:

    This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.

    Best regards,
    Karl

Reply
  • Hello,

    What does your log say when this happens? I would think that you need to adjust your memory sections, if you have changed something in the SoftDevice configuration since your last build.

    Please make sure to have DEBUG defined in your preprocessor defines, like shown in the included image:

    This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.

    Best regards,
    Karl

Children
Related