Switching from LPN in runtime, HCI fault

Hello ,

I'm switching in runtime from battery to USB on my custom nrf52832

On battery ->

bt_mesh_lpn_set enabled
bt_mesh_relay_set disabled
bt_mesh_friend_set disabled

On USB ->
bt_mesh_lpn_set disabled
bt_mesh_relay_set enabled
bt_mesh_friend_set enabled
Unfortunately, I am getting a hard fault during the state change due to HCI

ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:333
command opcode 0x2042 timeout with err -11
[15:06:45.000,000] <err> os: r0/a1: 0x00000003 r1/a2: 0x00000000 r2/a3: 0x00000004
[15:06:45.000,000] <err> os: r3/a4: 0x00000003 r12/ip: 0x00004dcf r14/lr: 0x0003113d
[15:06:45.000,000] <err> os: xpsr: 0x01000016
[15:06:45.000,000] <err> os: Faulting instruction address (r15/pc): 0x0003114c
[15:06:45.000,000] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
[15:06:45.000,000] <err> os: Fault during interrupt handling

[15:06:45.000,000] <err> os: Current thread: 0x200055a0 (unknown)
[15:06:45.000,000] <err> os: Halting system

I am not actually using HCI for this project, and am unable to turn HCI off using the KCONFIG
CONFIG_BT_HCI=n




Parents Reply Children
No Data
Related