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

BLE app beacon example not executing

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.

Parents
  • Hi

    I'm glad you got it working now! The SDK I uploaded is just a version of the original SDK v17.0.0 where I followed the Patching nRF5 SDK v17.0.0 to support the nRF52805 and Creating an emulated project for the nRF52805 on the nRF52 DK sections in my colleague Bjørn's guide. I assume that you missed a step in your effort to patch the SDK, so I did it here on my side to make sure the guide was working. No issue in the SDK. If you are satisfied with the reply, please verify the answer you found helpful in order to help forum users in the future having the same problem.

    Best regards,

    Simon

Reply
  • Hi

    I'm glad you got it working now! The SDK I uploaded is just a version of the original SDK v17.0.0 where I followed the Patching nRF5 SDK v17.0.0 to support the nRF52805 and Creating an emulated project for the nRF52805 on the nRF52 DK sections in my colleague Bjørn's guide. I assume that you missed a step in your effort to patch the SDK, so I did it here on my side to make sure the guide was working. No issue in the SDK. If you are satisfied with the reply, please verify the answer you found helpful in order to help forum users in the future having the same problem.

    Best regards,

    Simon

Children
No Data
Related