This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why is a HardFault exception occuring in sd_ble_gatts_hvx (SD 132 V5.1)

After already having sent a few notifications with a custom BLE characteristic, I am getting a HardFault in the softdevice.

Initially I had added a log call to print the result of the command with NRF_LOG_FLUSH() called immediately afterwards. However, this log message was never printed.

So I booted up Ozone, and found in the Call Stack that the device is getting choked up on HardFault Exception within the call to sd_ble_gatts_hvx.

Anyone else having crashes like this within the softdevice on the new S132 V5.1 release?

Parents
  • I had the issue again with S132 V5.0, but noticed a cause on our side. A buffer overflow in a part of our firmware had overwritten some memory that was important to the sd_ble_gatts_hvx function.

    This had not happened with SDK 12.0 and SD 132 V3 due to sheer luck. The memory that was being overwritten had before been non-critical.

    Thanks for your your help, happy to say there is no error in the SDK this time!

Reply
  • I had the issue again with S132 V5.0, but noticed a cause on our side. A buffer overflow in a part of our firmware had overwritten some memory that was important to the sd_ble_gatts_hvx function.

    This had not happened with SDK 12.0 and SD 132 V3 due to sheer luck. The memory that was being overwritten had before been non-critical.

    Thanks for your your help, happy to say there is no error in the SDK this time!

Children
Related