This project is a HRS example from latest SDK, without any modification. I use nrf51 DK board. WHen I debug, I get hardfault after some type. Try to run the code under debugger, then stop it, then run it a when you stop it again, you get hardfault. Why and how to debug the application? The project is here: ble_app_hrs.zip