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

Softdevice clock Operation failing

I am using SES SDK 15.3 SD 132 

I am trying to step through simple operations and need to enable a softdevice clock.

Right now i am using nrf_drv_clock and engaging clock using

 err_code = nrf_drv_clock_init();
APP_ERROR_CHECK(err_code);
nrf_drv_clock_lfclk_request(NULL);
 

However i try and add the nrf_sdh.c and nrf_sdh_soc.c files to the project and update my Preprocessor definitions to include S132 and SOFTDEVICE_PRESENT and when i try and compile changing nothing else i get all kinds of ewrrors saying NRF_SUCCESS not found. I figured i should have been able to add the files to the project and compile without incident.

I am trying to just use the softdevice clock using

err_code = nrf_sdh_enable_request();
APP_ERROR_CHECK(err_code);

instead of the above

What is the basic things i need to add within proprocessor definitions, sdk_config and calls in order to use the softdevice clock.

Parents
  • Hi

    Add the header files located in "nRF5_SDK_15.2.0_9412b96\components\softdevice\s132\headers\". Modify the flash and RAM settings according to the Memory Resource Requirements in the S132 SoftDevice specification. Then, make sure the preprocessor definitions are set (which you have done already). 

    The easiest way is to just start out with an example using the SoftDevice already, and go from there, but if you want to implement it into an existing project, the above instructions should be the way.

    Due to the summer holidays in Norway, our support team is understaffed this week, and delayed replies must be expected. Sorry for the inconvenience!

    Best regards,

    Simon

  • no problem with delay. I need to incorporate it into the current program. I have found most things and i can get it to compile however when i try and debug the program i get a stopped by vector crash error or report. I followed the guide for the memory mapping based on link you sent.

    Now i am getting this error

    Even though my memory mapping flash files has these declared.

Reply
  • no problem with delay. I need to incorporate it into the current program. I have found most things and i can get it to compile however when i try and debug the program i get a stopped by vector crash error or report. I followed the guide for the memory mapping based on link you sent.

    Now i am getting this error

    Even though my memory mapping flash files has these declared.

Children
No Data
Related