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

BLE examples halt at sd_softdevice_enable() on the custom board.

Hi.

I'm struggling with BLE example projects on the my custom board.

my board uses nRF52832-QFAA, 16MHz external crystal with no 32,768kHz optional RTC.

and I choose SDK 15.1v, softdevice 6.1v as development environment.

there is a problem with running only BLE examples but peripheral examples that do not need softdevice work well. (ex blink, uart etc..)

in the ble_app_uart project, when the code go into

main()

-> ble_stack_init();

-> nrf_sdh_enable_request();

-> sd_softdevice_enable(&clock_lf_cfg, app_error_fault_handler);

and goes to infinite loop..

and then I realised I didn't do the clock setting, so I changed like this.

    nrf_clock_lf_cfg_t const clock_lf_cfg =
    {
        .source       = NRF_SDH_CLOCK_LF_SRC,                           => 0 (initial value=1)
        .rc_ctiv      = NRF_SDH_CLOCK_LF_RC_CTIV,                     => 16 (initial value=0)
        .rc_temp_ctiv = NRF_SDH_CLOCK_LF_RC_TEMP_CTIV,    => 0 (initial value=0)
        .accuracy     = NRF_SDH_CLOCK_LF_ACCURACY              => 7 (initial value=7)
    };

(this values is derived from my previous project using nRF51822. of course, it is working well)

and it goes to error, and reset.

    NRF_BREAKPOINT_COND;
    // On assert, the system can only recover with a reset.

If you have suggestion, please reply. Thank you.

Parents Reply Children
No Data
Related