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

NRF52810 Getting a BLE example to work from SDK

We have developed a custom board based on nrf52810 SoC (package : QFN32)  , after following the guides on the forum we tried to run the example ble_app_uart(pa10040e) from the latest SDK .

The program run fines without breaking,

We removed the DEVELOP_IN_NRF52832, defined a custom_board.h compatible with our board  and changed the softdevice clock configuration to : 

#define NRF_SDH_CLOCK_LF_SRC 0

#define NRF_SDH_CLOCK_LF_RC_CTIV 16

#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0

#define NRF_SDH_CLOCK_LF_ACCURACY 1

We tried running the following : 

NRF_CLOCK->LFCLKSRC = CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos;
NRF_CLOCK->TASKS_LFCLKSTART = 1;
while (NRF_CLOCK->EVENTS_LFCLKSTARTED == 0)

{
   test++;
}

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

{
    test++;
}

The code get stuck in the second loop.

Here's the schematic , because we're not sure if this is a software problem  or hardware  .

Any help would be appreciated , thanks.

Parents Reply Children
Related