I got following error when disconnect in a timer handler:
ASSERTION FAIL [err == 0] @ WEST_TOPDIR/external/zephyr/subsys/bluetooth/host/hci_core.c:330
command opcode 0x0406 timeout with err -11
[00:00:16.589,874] <err> os: esf_dump: r0/a1: 0x00000003 r1/a2: 0x00000000 r2/a3: 0x00000002
[00:00:16.589,874] <err> os: esf_dump: r3/a4: 0x20001618 r12/ip: 0x00000010 r14/lr: 0x000154e1
[00:00:16.589,904] <err> os: esf_dump: xpsr: 0x41000021
[00:00:16.589,904] <err> os: esf_dump: Faulting instruction address (r15/pc): 0x000154ec
[00:00:16.589,965] <err> os: z_fatal_error: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
[00:00:16.589,965] <err> os: z_fatal_error: Fault during interrupt handling
[00:00:16.589,996] <err> os: z_fatal_error: Current thread: 0x200028b0 (unknown)
�*** Booting Zephyr OS build v3.3.99-ncs1-1 ***al_error_handler: Resetting system
[00:00:00.000,579] <inf> bt_sdc_hci_driver: hci_driver_open: SoftDevice Controller build revision:
e0 7e 2e c1 5e 05 85 23 46 15 dc fa 8e 29 7d 70 |.~..^..# F....)}p
10 93 a5 fc |....
[00:00:00.003,204] <inf> bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.003,234] <inf> bt_hci_core: hci_vs_init: HW Variant: nRF52x (0x0002)
[00:00:00.003,265] <inf> bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 224.11902 Build 2231721665
[00:00:00.004,333] <inf> bt_hci_core: bt_dev_show_info: Identity: D5:87:50:C3:35:79 (random)
[00:00:00.004,364] <inf> bt_hci_core: bt_dev_show_info: HCI: version 5.4 (0x0d) revision 0x1077, manufacturer 0x0059
[00:00:00.004,394] <inf> bt_hci_core: bt_dev_show_info: LMP: version 5.4 (0x0d) subver 0x1077
here is my code:
bt_conn_disconnect(mconn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
How can I fix this?
Thanks,