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

BLE code not working on nrf52832 customised board

Hi ,

We have designed an Nrf52832 customized board having 32mhz crystal but not having any low frequency clock. The board is working fine with the blinky and other codes but its not getting discover while using bke code. we are using SDk 15.0. As we are not having low frequency clock source, so we have used following recomended configuration:

#define NRF_CLOCK_LFCLKSRC                        {.source = NRF_CLOCK_LF_SRC_RC, \

                                                                               .rc_ctiv = 32,                                              \   

                                                                                .rc_temp_ctiv = 2,                                    \

                                                                                .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}

But it didn't work.

So we have used following code at the start of our main check if the External High freq clock is working fine.

  NRF_CLOCK->TASKS_HFCLKSTART = 1;
  while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);

and we didnt stuck in the while loop and hence our external high clock crystal is working fine.

So let me know , how we can sort out this problem? The code is working fine on nrf52DK hardware.
Parents Reply Children
Related