async uart fails when adding shell

Hello,

Starting the ncs 3.1.1 UART ASYNC examples on nrf52840dk and nrf9151dk, works fine.

Then I add SHELL on nrf9151 side, it crashes when getting incoming bytes (rx).

When adding the below CONFIGs (async on uart3, shell on uart0), it no longer crashes, but shell and app freezes when uart3 receives bytes.

The configs are added to the nrf9151 side, the nrf52 side just continue running the sample without shell.


CONFIG_UART_3_ASYNC=y
CONFIG_UART_3_INTERRUPT_DRIVEN=n
CONFIG_UART_3_NRF_HW_ASYNC=y
CONFIG_UART_3_NRF_HW_ASYNC_TIMER=2
CONFIG_NRFX_TIMER2=y
CONFIG_NRFX_UARTE3=y
CONFIG_SHELL=y
CONFIG_SHELL_TAB=y

CONFIG_UART_0_ASYNC=n
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_0_INTERRUPT_DRIVEN=y
If trying this config:
CONFIG_UART_ASYNC_API=y
CONFIG_UART_3_INTERRUPT_DRIVEN=n
CONFIG_UART_3_ASYNC=y

CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_0_ASYNC=n
CONFIG_UART_0_INTERRUPT_DRIVEN=y
As suggested here 
CONFIG_SHELL=y
CONFIG_SHELL_TAB=y

CONFIG_UART_ASYNC_API=y
CONFIG_UART_3_INTERRUPT_DRIVEN=n
CONFIG_UART_3_ASYNC=y

CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_0_ASYNC=n
CONFIG_UART_0_INTERRUPT_DRIVEN=y
It crashes again.


If trying this config:
CONFIG_UART_3_ASYNC=y
CONFIG_UART_3_INTERRUPT_DRIVEN=n
CONFIG_UART_3_NRF_HW_ASYNC=y
CONFIG_UART_3_NRF_HW_ASYNC_TIMER=2
CONFIG_NRFX_TIMER2=y
CONFIG_NRFX_UARTE3=y

CONFIG_UART_0_ASYNC=n
CONFIG_UART_0_INTERRUPT_DRIVEN=y
CONFIG_UART_0_NRF_HW_ASYNC=n
CONFIG_NRFX_UARTE0=y
It does not crash, but get error on rx:
[06/11/25 - 11:59:11:158] [00:00:10.378,631] <inf> sample: Loop 1: Sending 1 packets
[06/11/25 - 11:59:11:166] [00:00:10.378,692] <err> sample: Unknown error (-134)
[06/11/25 - 11:59:11:174] [00:00:10.378,723] <inf> sample: RX is now disabled
[06/11/25 - 11:59:16:158] [00:00:15.378,814] <inf> sample: Loop 2: Sending 2 packets
[06/11/25 - 11:59:16:166] [00:00:15.378,875] <err> sample: Unknown error (-134)
[06/11/25 - 11:59:16:174] [00:00:15.378,906] <err> sample: Unknown error (-134)
[06/11/25 - 11:59:16:181] [00:00:15.378,936] <inf> sample: RX is now enabled
[06/11/25 - 11:59:21:159] [00:00:20.379,028] <inf> sample: Loop 3: Sending 4 packets
What config combination should work?
UART3: ASYNC
UART0: SHELL
Related