Receiving HCI_HARDWARE_ERROR_EVENT event_time_overrun, advertising never observed
My company is working on a product based on the STM32WB55, using the full BLE stack, currently v1.11.0. The error described below was also occurring on v1.10.1 previously.
As far as the host application on CPU1 knows, the device is advertising successfully. See logs such as:
[app_ble.c][Adv_Request][718] Successfully Start Fast AdvHowever, I am never able to actually observe advertisements from a BLE scanning mobile phone app.
In BLE debug trace logs, I am receiving the following:
[tl_mbox.c][OutputDbgTrace][759] ble evt: 0x10
[tl_mbox.c][OutputDbgTrace][762] payload: 02
[tl_mbox.c][OutputDbgTrace][777] According to AN5270, Table 311 in section 3.1 and Table 315 in section 3.1.4, this signifies HCI_HARDWARE_ERROR_EVENT with error code event_time_overrun, described as "bluecore time overrun error detected". I haven't found any more documentation anywhere about this.
Full log posted here: https://gist.github.com/towynlin/2744c2101c4175ab77154ddf1eca6312
User @MLancaster posted about the same error in early January and has not received a response. See https://community.st.com/s/question/0D53W00000TIcraSAD/receiving-hcihardwareerrorevent-from-ble-stack
Questions:
- What can cause the CPU2 time overrun?
- How can I prevent the overrun?
- Is there something I need to do that I'm not doing, like resetting a watchdog timer?
- Is the overrun a symptom of a bug in the BLE stack?
- Would the time overrun in fact prevent advertising?
This is the highest priority blocker for the product and for the company right now, so nearly all my attention is on this issue. Thanks in advance for any and all help. Let me know if there's anything else I can provide or any testing I can perform.
