SOFTDEVICE_HANDLER_INIT in nRF52832

Hello. Everyone. I'm Aaron and beginner in nRF52832. I have some serious problems with using the nRF52832. I'm trying "ble_peripheral\experimental_ble_app_blinky" in Keil Version5.and there is no External 32.729KHz crystal on my Board. Project is "ble_peripheral\experimental_ble_app_blinky\pca10036\s132" in examples

After upload flash firmware to nRF52832, chip stopped. I tried Debug, and then I think Reason is SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false); what's the solution? image description This is line(function) that stopped in debug. image description setting fro softDevice

What's ROM and RAM setting for BLE? link text

Please help!.

Thank you fro reading.

  • Are you using the PCA10040 DK? Have you tried ble_peripheral/ble_app_beacon or ble_peripheral/ble_app_uart instead? They both should work right out of the box. And check if the Keil debugger has the monitor mode debug enabled as you cannot do the single step debug without the monitor mode debugging turned on (search monitor mode debug in this forum or read the chapter on monitor mode debug in the JLink/JTrace User Guide).

  • Thank you for reply. I have tried PCA10040 DK and 10036.but both don't work. and I have tried ble_peripheral/ble_app_beacon and ble_peripheral\experimental_ble_app_blinky. also, don't work and stopped. What' the reason? CLOCK_SOURCE or setting 1ROM, 1RAM? .................... I will study Debug in Keil following your comment. Thank you.

  • If you're not using an external low frequency crystal then make sure you edit the "config/sdk_config.h" file and find and change "#define CLOCK_CONFIG_LF_SRC 0", "#define NRF_SDH_CLOCK_LF_SRC 0", "#define NRF_SDH_CLOCK_LF_RC_CTIV 16", and "#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2"

    Then try to build and run. These changes were needed to get my board without an external crystal working and it did after the modifications.

  • Thank you, Nemik I'm using pca10040_s132 I have changed CLOCK_CONFIG_LF_SRC 0 in sdk_config.h, but NRF_SDH_CLOCK_LF_SRC, NRF_SDH_CLOCK_LF_RC_TEMP_CTIV and NRF_SDH_CLOCK_LF_RC_CTIV can't find in project files.

    So, i changed NRF_CLOCK_LFCLKSRC in pca10040.h

    #define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_RC,
    .rc_ctiv = 16,
    .rc_temp_ctiv = 2,
    .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM} image description

    But don't work. chip stopped.

    main() in project

    image description

    I send to you my project file(example).

    If you have time, please check this. if so, I'm very thank you. Good luck.