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

Softdevice assertion failed pc: 16346

Using:

  • nRF52832
  • SDK 15.3.0
  • SD S132 6.1.1
  • nRF5 SDK for Mesh 3.2.0
  • NRF_SDH_DISPATCH_MODEL == NRF_SDH_DISPATCH_MODEL_APPSH

Hi, i'm sometimes getting a crash when a phone connects, caused by softdevice assertion failed, pc: 16346. Can you tell me what could be the reason of this assert to fail?

Parents Reply Children
  • It's using the softdevice to advertise connectable advertisements. When a connection is made, it will start advertising non-connectable advertisements.

  • Hi, 

    Our softdevice team confirmed that 

    When the application starts a non-connectable advertiser right after a connection gets established, an assert may occur. The workaround is After pulling the event BLE_GAP_EVT_CONNECTED, pull events until sd_ble_evt_get returns NRF_ERROR_NOT_FOUND. 

    This bug is present in all released SoftDevices since 6.0.0. Please let me know if you are satisfied with the workaround.

    -Amanda

  • Thanks!

    The assert that may occur is the same as what I get?

  • Hi Amanda,

    I'm on the same team, Crownstone, as Bart. :-)

    1. We are of course happy that you know this issue exists and how to work around. Satisfaction is perhaps not the right word choice. ;-)
    2. It would be great to understand why we have to pull events till we get NRF_ERROR_NOT_FOUND. What's the underlying issue?
    3. If it's already since Softdevice 6.0.0, is it that you didn't know of this problem that no fix has been issued or is there something very fundamental about this which makes it difficult to solve within the Softdevice?
    4. If we use the workaround, will this completely fix this, or is it still possible to run into the assert so now and then?

    Of course, ideally we would have a complete explanation including some diagrams if there are some timing issues involved. Perhaps there are also some configuration settings which influence this bug. An overall picture would be ideal. (Of course, keeping private what you want to keep private).

    Thanks in advance!

    Anne

Related