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

nRF51 DK soft devices examples not working

Hi,

I have an nRF51 DK, found here www.nordicsemi.com/.../nRF51-DK. I am using SDK V11.0 and S130 V2.0. I am developing on a Linux machine.

I can compile and run the blinky example successfully with the commands below:

cd /home/joe/Tools/nRF5/tools/nRF5_SDK_11.0.0_89a8197/examples/peripheral/blinky/pca10028/blank/armgcc
make
cd _build
nrfjprog --family nRF51 -e
nrfjprog --family nRF51 --program nrf51422_xxac.hex
nrfjprog --family nRF51 -r

But when I try the heart rate application that includes a soft device LED 1 blinks but the device cannot be seen from either the MCP app or my development machine. I used the commands below:

cd /home/joe/Tools/nRF5/tools/nRF5_SDK_11.0.0_89a8197/examples/ble_central/ble_app_hrs_c/pca10028/s130/armgcc
make
make flash_softdevice
cd _build
nrfjprog --family nRF51 --program nrf51422_xxac_s130.hex
nrfjprog --family nRF51 -r

I have managed to confirm that bluetooth works on the board by flashing an example application (developer.mbed.org/.../) using the mBed IDE.

I feel like I must be missing something simple. Any help would be much appreciated.

Thanks

Parents
  • @hkn

    I think the extra "nrfjprog --family nRF51 -e" was a copy and apaste error, any way tried again just in case and still didn't work.

    then I tried as you suggested:

    $ nrfjprog --program <path-to/s110-softdevice.hex>
    $ nrfjprog --program _build/nrf51422_xxac.hex && nrfjprog --pinreset
    

    And worked fine

    Also this convination worked fine:

    $ make flash_softdevice
    $ nrfjprog --program _build/nrf51422_xxac.hex && nrfjprog --pinreset
    

    And this will work too:

    $ cd nRF51_SDK_10.0.0/examples/peripheral/blinky/pca10028/blank/armgcc
    $ make flash_softdevice
    $ make
    $ cd _build
    $ nrfjprog --family nRF51 --program nrf51422_xxac.hex 
    $ nrfjprog --pinreset
    

    Looks lile --pinreset did the magic

    -p  --pinreset              Performs a pin reset. Core will run after the
                                operation.
    

    Thank you

Reply
  • @hkn

    I think the extra "nrfjprog --family nRF51 -e" was a copy and apaste error, any way tried again just in case and still didn't work.

    then I tried as you suggested:

    $ nrfjprog --program <path-to/s110-softdevice.hex>
    $ nrfjprog --program _build/nrf51422_xxac.hex && nrfjprog --pinreset
    

    And worked fine

    Also this convination worked fine:

    $ make flash_softdevice
    $ nrfjprog --program _build/nrf51422_xxac.hex && nrfjprog --pinreset
    

    And this will work too:

    $ cd nRF51_SDK_10.0.0/examples/peripheral/blinky/pca10028/blank/armgcc
    $ make flash_softdevice
    $ make
    $ cd _build
    $ nrfjprog --family nRF51 --program nrf51422_xxac.hex 
    $ nrfjprog --pinreset
    

    Looks lile --pinreset did the magic

    -p  --pinreset              Performs a pin reset. Core will run after the
                                operation.
    

    Thank you

Children
No Data
Related