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

Can't detect nrf51422 with ble scanner on smartphone but blinky example works

Hello, we just made a raw board with the MDBT40, which use a nrf51422 chip. I downloaded SDK version v12.3.0 (which supports nrf51) on the nordic website. With nrfGoStudio I programmed the blinky example (in sdk/examples/periperal/blinky/hex) with a J-LINK and nrfGoStudio. Everything works and I see the LED blinking. Now, the next step is to detect the nrf51422 on my smarthone. So I programmed, with the same idea as the blinky example, the nrf51422 with a lot of examples in the ble_periperal folder, for example experimental_ble_app_blinky_pca10028_s130.hex, I can always program it perfectly with nrfGoStudio, but I can't never detect the nrf51422 on my smartphone. My bluetooth and location is turned on. Anybody who knows what the problem can be?

Parents
  • I found one issue: my code hangs on macro function SOFTDEVICE_HANDLER_INIT. I know I have an external clock of 32MHz, the settings of the NRF_CLOCK_LFCLKSRC in pca10028 are:

    #define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_XTAL, \
    .rc_ctiv = 0, \
    .rc_temp_ctiv = 0, \
    .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM}

    This clock xtal_accuracy was mentioned as default in the nrf_sdm.h file of the s130 softdevice.

Reply
  • I found one issue: my code hangs on macro function SOFTDEVICE_HANDLER_INIT. I know I have an external clock of 32MHz, the settings of the NRF_CLOCK_LFCLKSRC in pca10028 are:

    #define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_XTAL, \
    .rc_ctiv = 0, \
    .rc_temp_ctiv = 0, \
    .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM}

    This clock xtal_accuracy was mentioned as default in the nrf_sdm.h file of the s130 softdevice.

Children
No Data
Related