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
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
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
Please consider these two images
Please add the DEBUG define, and enable logging. This will output exactly what you need to change in your section placement macros.
Best regards,
Karl
Added the debug but got the same error
for
error_code = nrf_sdh_enable_request(); APP_ERROR_CHECK(err_code);
error_code = nrf_sdh_ble_enable(&ram_start); APP_ERROR_CHECK(err_code);
What does your log say exactly, when these error codes are returned?
Please share the full log with me, for both cases.
There is no way for me to provide you with the necessary changes to the section macros without these error messages, or without seeing your complete project.
Best regards,
Karl