SoftDevice Controller assertion (file "57", line 5368) on nRF5340 network core: controller stops responding, HCI LE Create Connection Cancel (0x200E) times out

Summary
On an nRF5340 central running NCS v3.2.1, the SoftDevice Controller (hci_ipc on the network core) stops responding to the host. The host sees an HCI command time out after 10 s (BT_ASSERT in bt_hci_cmd_send_sync, k_oops) and the device resets. We have now captured the controller-side cause: the SDC assertion handler is called with file "57" and line 5368. We would like to know what this assertion means, and whether it is a known issue with a fix or a workaround.

Environment
- nRF Connect SDK v3.2.1 (Zephyr 4.2.99), SoftDevice Controller as shipped in NCS v3.2.1.
- nRF5340: the application core runs the Zephyr host; the network core runs the hci_ipc sample image.
- Controller roles in use at the same time:
  - PAwR advertiser with PAwR-originated connections (bt_conn_le_create_synced) and PAST sender.
  - Continuous scanning in parallel with initiating (CONFIG_BT_SCAN_AND_INITIATE_IN_PARALLEL=y on the host, CONFIG_BT_CTLR_SDC_ALLOW_PARALLEL_SCANNING_AND_INITIATING=y on the controller).
  - Auto-connect initiator using the Filter Accept List (bt_conn_le_create_auto / bt_conn_create_auto_stop), FAL size 128.
  - Max 1 connection.

Network core (hci_ipc) configuration
CONFIG_BT_PERIPHERAL=n
CONFIG_BT_BROADCASTER=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV=y
CONFIG_BT_PER_ADV_RSP=y
CONFIG_BT_PER_ADV_SYNC=y
CONFIG_BT_PER_ADV_SYNC_MAX=1
CONFIG_BT_CTLR_SYNC_TRANSFER_SENDER=y
CONFIG_BT_CTLR_SDC_PAWR_ADV=y
CONFIG_BT_CTLR_SDC_PAWR_ADV_COUNT=1
CONFIG_BT_CTLR_SDC_PERIODIC_ADV_RSP_TX_BUFFER_COUNT=3
CONFIG_BT_CTLR_SDC_PERIODIC_ADV_RSP_RX_BUFFER_COUNT=12
CONFIG_BT_CTLR_SDC_MAX_CONN_EVENT_LEN_DEFAULT=2500
CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=0
CONFIG_BT_CTLR_SDC_ALLOW_PARALLEL_SCANNING_AND_INITIATING=y
CONFIG_BT_CTLR_FAL_SIZE=128
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=73
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_MAX_CONN=1
CONFIG_BT_BUF_ACL_RX_SIZE=502
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_BUF_CMD_TX_SIZE=255
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM=y
CONFIG_BT_CTLR_ASSERT_HANDLER=y
CONFIG_MPSL_ASSERT_HANDLER=y

How the controller-side data was captured
The network core cannot log anywhere we can read in the field, so we added a small diagnostic module to the hci_ipc image. It does not change the controller. It does three things:
- It wraps bt_ctlr_assert_handle() (-Wl,--wrap). The wrapper stores the file and line in a reserved block of application-core SRAM, then calls the sample's own handler (irq_lock(), then while (true) k_cpu_idle()).
- It does the same for mpsl_assert_handle() and k_sys_fatal_error_handler().
- A k_timer increments an "alive" counter every 100 ms.
When an HCI command times out, the application core reads that block and reports it at the next boot.

What happened
Application core, at the timeout:
- Command that timed out: 0x200E (LE Create Connection Cancel), issued by bt_conn_create_auto_stop() from our auto-connect thread to stop the FAL initiator.
- The command had been sent to the controller (not stuck in the host TX queue). ncmd = 0: no Command Complete or Command Status ever came back.
- Last packet of any kind received from the controller: 10 015 ms before the timeout, which is about 15 ms before the command was sent. After that, nothing at all (no PAwR subevent data requests either).
- The host RX paths (IPC RX work queue, BT RX, system work queue) were all idle and not blocked, so the host was able to receive.
- Backtrace: bt_hci_cmd_send_sync() <- conn.c (bt_conn_create_auto_stop) <- our auto-connect thread.

Network core record
- Assertion kind: SDC (reached through bt_ctlr_assert_handle).
- file = "57", line = 5368.
- Network-core uptime at the assertion: 4 297 342 ms.
- No fatal error (k_sys_fatal_error_handler was not called).
- The "alive" counter kept increasing for the whole 10 s wait. We understand this is expected: after the assertion, the sample handler's k_cpu_idle() loop re-enables interrupts, so the system timer keeps running. We mention it in case it tells you in which context the assertion fired.

Questions
1. What does SDC assertion file "57", line 5368 mean in the SoftDevice Controller shipped with NCS v3.2.1?
2. Is it a known issue? Is it fixed in a later SDC / NCS release, and is there a workaround? For example: a restriction on HCI LE Create Connection Cancel while scanning in parallel, with PAwR active, or with a large FAL.
3. Is there a supported way to recover from a controller assertion without resetting the whole SoC? A full reset makes every tag lose its PAwR synchronisation, so we would rather reset only the network core and re-initialise the host if that is safe.

Related