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

Why ble_app_hrs with s310 is not starting on pc10006(nRF51422)?

Hello, I'm trying examples supplied with SDK, running on pca10006 with nRF51422 chip board and Segger J-Link debugger.

I am able to

  1. Erase entire chip with nRFgo studio
  2. Flash and run blinky example. Behaves as expected
  3. Flash and run debouncer example. Behaves as expacted
  4. Flash the device with s310 softdevice (nrfgo studio)

Then i am downloading the ble_app_hrs example to the device. It is not starting as it should be (button 0 push should start the broadcast and the led 0 should light on)

When i am trying to use debug options it is stuck and can not be used (on the blinky example it works fine)

Versions: softdevise s310 2.0.1 nRF51 SDK 7.2.0 Keil uVision 5.14.0.0 nRFgo studio 1.17.13252

Screenshots:

  1. nRFgo studio, flashing the softdevice nRFgo studio, flashing the softdevice

  2. Keil, memory settings Keil, memory settings

  3. Flashing with Keil Flashing with Keil

  4. Keil stuck in debug state Keil stuck in debug state

Please advise how i can make it working.

Parents
  • Hi

    The ble_app_hrs example is made for the S110 stack. The ble_app_hrm example is actually made for the S310 stack and should work out of the box. It should however be easy to port an example made for the S110 stack to the S310 stack, see the porting guide here. This porting guide is made however for S310 1.0.0 which consumes different flash space than S310 2.0.1. The application should be flashed to address 0x1d000 instead of 0x20000 as done in the porting guide. See more information about ROM and RAM consumption of the S310 2.0.0 in the S310 SDS 2.0 section 11.1.

    Update 31.3.2015 When using BLE example like the ble_app_hrs for the S310 v2 and PCA10007/PCA10006 board, you should have the following compiler define:

    image description

    You should also disable optimization by setting "Optimization: Level 0" as shown above in order to successfully debug the application.
    Also use the following ROM and RAM settings:

    image description

  • Hi Derek, At this stage, i made it working with s110 softdevice and everything works as expected. Will port it to s310 in near future and will update. Hope it helps.

Reply Children
No Data
Related