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

Can't start LFCLK when softdevice is not present

Hi.

I am trying to get the RTC started, and I've followed the rtc example in the NRF51_SDK.

But things go wrong when I call:

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

I get the errer code: 2, meaning NRF_ERROR_SOFTDEVICE_NOT_ENABLED. And that is exactly right, the softdevice is not enabled, because I want to be able to debug for the moment?

(btw. will it ever be possible to debug while using the softdevice, it is getting pretty annoying, not to be able to debug :) )

Parents
  • No debugging with the SD is generally not possible. Monitor mode debugging is possible with the nRF52, but not the nRF51. Once any timing critical radio communications have started, ie you're advertising or in connection, as soon as you break the softdevice misses critical timing marks and it hardfaults as soon as you resume. If you just have the softdevice enabled but aren't in connection, you can do some debugging, but further than that, you can't, this is very well documented and understood.

Reply
  • No debugging with the SD is generally not possible. Monitor mode debugging is possible with the nRF52, but not the nRF51. Once any timing critical radio communications have started, ie you're advertising or in connection, as soon as you break the softdevice misses critical timing marks and it hardfaults as soon as you resume. If you just have the softdevice enabled but aren't in connection, you can do some debugging, but further than that, you can't, this is very well documented and understood.

Children
No Data
Related