Is that called from SD space or APP space? SES project file attached. nrf5-ble-tutorial-characteristic-CompletedCode.zip
Is that called from SD space or APP space? SES project file attached. nrf5-ble-tutorial-characteristic-CompletedCode.zip
Under what circumstances does this happen? When advertising? During connection? Etc. It doesn't look like you have done a lot of important changes in the code?
I compiled your code with Keil and tested it, but it seems to work fine for me.
It turned out, RTT in debugging section in Segger was turned on, which probably caused those hard faults. It was happening with some breakpoints during advertising. This project was a test one, I almost didn't change anything in it - I just wanted to get a working sample project in Segger. So, problem solved. However, it would be nice to see, how to use this pc value in similar situations.
I'm glad you figured it out.
Unfortunately, what goes on inside the Softdevice space is Nordic's proprietary information, so in cases like these your best option is to create a thread like this, post the PC value, and provide as much information as you can about your application and how/when/where things go wrong.