I have nrf52dk (nrf52832) board and a custom nrf52805 board. The nrf52805 board has no external 32kHz crystals, but only 32MHz crystal. Also, it is in LDO mode (no DC-DC inductors).
I compiled "nRF5_SDK_17.0.0_9d13099\examples\ble_peripheral\ble_app_beacon\pca10040e\s112\arm5_no_packs" example in Keil without any problem. However, the code gets stuck in both nrf52805 and nrf52832, exactly at ble_stack_init() -> nrf_sdh_enable_request(). The MCU runs in loop and never passes ble_stack_init() .
Before compiling, As mentioned in https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/developing-for-the-nrf52805-with-nrf5-sdk I completed the procedures "Patching nRF5 SDK v17.0.0 to support the nRF52805", and
(i) "Creating an emulated project for the nRF52805 on the nRF52 DK" in the above link when i program nrf52832 dev kit, and
(ii) "Transferring an emulated project to nRF52805 hardware" when i program nrf52805
Note that first i load softdevice (s112_nrf52_7.0.1_softdevice.hex) onto both the boards before i program app_beacon example. Alongside, I also tried changing
nrf_clock_lf_cfg_t const clock_lf_cfg =
{
.source = NRF_SDH_CLOCK_LF_SRC,
.rc_ctiv = NRF_SDH_CLOCK_LF_RC_CTIV,
.rc_temp_ctiv = NRF_SDH_CLOCK_LF_RC_TEMP_CTIV,
.accuracy = NRF_SDH_CLOCK_LF_ACCURACY
};
where I set NRF_SDH_CLOCK_LF_SRC = 0 , and NRF_SDH_CLOCK_LF_ACCURACY=1,
but no luck.
I want to run ble beacon on nrf52805.