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

BLE application problem

Hello!

I bought NFR52 DK preview board. As microcontroller it works well. But when I try BLE examples, they do not work. I installed SoftDevice S132, downloaded ble_app_uart_s132_pca10036 example in Keil and launched "nRF Toolbox" application from playmarket. BLE in mobile phone is supported, but I can't find nRF52 DK board in application.

When I launched debugging in Keil, program stopped on this line: SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); I can't find solution of this problem in internet.

Can you provide BLE working example or BLE beginners guide or detailed manual how to set up Keil or make it all work with BLE.

Thanks.

  • hi, GOT the same problem as you. i'm using the NRF51822-QFAC CHIP, and the program block @ SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);

    did you flash the softdevices to your nrf52 with nrfGo then go to keil and flash the application ?? did it work ?

    because I tried to follow the instruction in this tutorial : devzone.nordicsemi.com/.../

    I succeed flashing the softdevices using NrfGO then went to the application I opened with keil, then select the appropriate devices nrf51822_xxQC from the Options for target in keil. then when I tried to flash the program a problem occurs and error windows pop up and it said : Error : flash download failed - "CORTEX-M0"

    image description

    So I have to remove the softdevice by going back to the nrfgo and erase all. then I go back to keil and I try to flash the nrf and it work (I mean by it work , that the flashing process work).

    when I arrive to the SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); the program stop there.

    I think the problem for my case is because I have to remove the softdevices from the nrf in order to be able to flash the application. a simple application without using SOFTDEVICES like trun on LED work for me, but I think when I add softdevices instruction it block there.

    this is my conclusion. i'm newbie I just start programming the nrf. if somebody else have a solution i'll appreciate that.

  • Hi

    To start with, make sure you have the correct software components for the hardware that you have, by looking in the nRF52 compatibility matrix. For the preview nRF52-DK kit (PCA10036), you should use the S132 1.0.0-3.alpha and nRF52 SDK 0.9.2.

    Procedure:

    1. Open nRFgo Studio and press "Erase All"
    2. Select the "program softdevice" tab, browse to S132 1.0.0-3.alpha hex file and program it to the nRF52-DK
    3. Open example in nRF52 SDK 0.9.2 in Keil, compile it and flash it to the nRF52-DK, e.g. ble_app_hrs example
Related