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

Multilink central example stuck at SOFTDEVICE_HANDLER_INIT

I'm trying the multilink central example with s120 and SDK 7.2 (because of simple_uart). However, my PCA10028 board gets stuck at this macro:

SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION, false);

How can I solve this? (I'm using Keil 5)

The main is the only file I've altered main.c

  • Update

    Altered main.c, SOFTDEVICE_HANDLER_INIT works, but UART doesn't. main.c

    Update 2

    My entire Keil solution: ble_app_multilink_central.zip

  • Something is wrong with your setup. I have used your main.c and changed just one line (uncommented line 535) and this was the output in my serial port

    Parsing adv data...
    Parsing adv data...
    Power manage.
    BLE event dispatch...
    BLE event.
    Parsing adv data...
    Parsing adv data...
    Power manage.
    BLE event dispatch...
    BLE event.
    Parsing adv data...
    Parsing adv data...
    Power manage.
    BLE event dispatch...
    BLE event.
    Parsing adv data...
    Parsing adv data...
    Power manage.
    BLE event dispatch...
    BLE event.
    Parsing adv data...
    Parsing adv data...
    Power manage.
    

    I think you have changed something somewhere. I suggest you to save your main.c file and install your SDK fresh just to make sure that there are no other unwanted changes lying around in your workspace.

  • Agreed, it got into an eternal loop at that line. But that's not my problem. The thing is, it stops working now at client_handling_init() or a function call to UART. I tried setting everything up anew (new Windows VM), but that didn't work. It might be a problem in my setup. This is what I've done:

    1. Fresh Win7 install with all updates
    2. Install nRFTools, nRF51 SDK, Master control panel, MDK and nRFGo Studio.
  • Next, Open Keil and install following packs form pack installer: -BLE 2.0.0 and 1.1.1 -Device Family Pack 7.1.0 -Drivers 2.0.0 and 1.2.1 -External Drivers 1.1.2 -Examples 7.2.0 (NOT 8.0.0 because those worked even less) -Libraries 2.0.0 and 1.1.1 -Proprietary RF 1.1.2 -RTX 2.74.0-5 -Serialisation 1.1.1 -SD common 1.1.2, 1.1.1 -S110 7.1.0-3 (NOT 8.0.0) -S120 1.0.1-3 (NOT 2.0.0) -S130 0.9.0-1.alpha. Other packs: ARM CMSIS, Keil Middleware 6.3.0 and 6.2.0. Sorry if my problem's a bit stupid/dumb but I am really new to both these Nordic Semi chips and to microcontroller development (I'm and electrical engineering student).

  • Oh, and I'm using a standard data micro-usb cable directly connected from my Mac usb-port (I'm running a Windows VM in OS X Yosemite). I've uploaded S120 2.0.0 to the nRF51 DK using nRFGo Studio. I program by clicking the LOAD button in Keil. I've also tried the previous S120 version without results.

Related