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

nRF51822 locks at sd_softdevice_enable

Hello dear friends,

I'm trying to bring up a Raytac module for the first time. I was able to program S110 7.1 and I'm using the Beacon example found in the SDK 6.1

But the nRF51822 SoC is not advertising, it is stuck!

Example Location: C:\Nordic Semiconductor\nRF51 SDK_v6.1.0.0\Nordic\nrf51822\Board\nrf6310\s110\ble_app_beacon\arm

I programmed the nRF using Keil. My settings are:

IROM: 0x16000 Size: 0x29000 IRAM: 0x20002000 Size: 0x2000 <-- 8 KB is reserved, is it correct?

Using Keil debugger I see that it is hanging in the following call during the ble_init():

sd_softdevice_enable(clock_source, softdevice_assertion_handler);

nRFgo Studio is showing S110 v 7.1 in Region 0, 88KB.

What Am I missing?

Parents
  • In sd_softdevice_enable(), change the clock_source argument to NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION. This will make the softdevice use the internal 32 kHz RC oscillator instead of an external crystal. If the external crystal is selected, but you don't have one on your board, the stack will wait forever for the non-existing crystal to start.

Reply
  • In sd_softdevice_enable(), change the clock_source argument to NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION. This will make the softdevice use the internal 32 kHz RC oscillator instead of an external crystal. If the external crystal is selected, but you don't have one on your board, the stack will wait forever for the non-existing crystal to start.

Children
Related