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

SVC Handler Missing

I am trying to get the Heart Rate example in the nRF51 SDK to work (found in ...nrf51822/board/nrf6310/ble/ble_app_hrs). It fails at line 338 in main.c (at the call sd_ble_gap_device_name_set) with an error code of 1, which, according to nrf_error.h, is a "SVC Handler is Missing".

Here is my setup:

Windows 7, Keil uVision V5.05.15, nRF51 SDK: version v5_0_0_34603 Softdevice: s110_nrf51822_5.2.1 Board: PCA10005

I believe I have followed the User Guide exactly. I have not made any changes to the source code or the project settings. I was careful to program the softdevice with nRFgo Studio, before using Keil to flash the application. I also tried allowing nRFgo Studio to flash both the application and the softdevice.

I have even tried using a GNU tool chain from the command line, and also allowing Eclipse to build the application per the nAN-29 document. All efforts lead to the same error being returned from line 338 in main.c.

I am stuck. Any help at this point would be very welcome.

Thank You Dal

Parents
  • Hi, I though I'd append this problem here, rather than start a new thread as I'm having similar issues... for SDK 5.1.0, using Keil 5.1 and the _hrs example and _advertising example:

    If I load the softdevice 6.0, I get

    Error: Flash Download failed - "Cortex-M0"

    If I clear the softdevice and download, I get no load errors, get some LEDs (for _advertising); but of course it stops when initialising the softdevice.

    I've built for nrf51822_xxab and nrf51822_xxxx - same result.

    thanks for any ideas,

Reply
  • Hi, I though I'd append this problem here, rather than start a new thread as I'm having similar issues... for SDK 5.1.0, using Keil 5.1 and the _hrs example and _advertising example:

    If I load the softdevice 6.0, I get

    Error: Flash Download failed - "Cortex-M0"

    If I clear the softdevice and download, I get no load errors, get some LEDs (for _advertising); but of course it stops when initialising the softdevice.

    I've built for nrf51822_xxab and nrf51822_xxxx - same result.

    thanks for any ideas,

Children
Related