Difficulties directing shell to both RTT and UART backend

Hi,

I am experiencing difficulties directing shell to both RTT and UART backend simultaneously for ncs v1.8.0. UART stops outputting while RTT is disconnected and only seems to output when RTT viewer is connected.

I am using the sample in zephyr/samples/subsys/shell/shell_module with the nRF52850dk.

I have the following configs:

CONFIG_SHELL_LOG_BACKEND=y
CONFIG_SHELL_BACKEND_RTT=y
CONFIG_SHELL_BACKEND_SERIAL=y

I have reviewed the following, and made the recommended changes from zephyr project backport 2.7, but  had no change in outcome:  Log and shell through RTT backend don't play nicely

I am building using: west build -b nrf52840dk_nrf52840 .\shell_module\ -d .\shell_module\build_shell_rtt

Below is the zipped shell module sample including my board overlay for the nRF52840, build folder for reference, and configuration files. I have also added a while(1) loop with prints in main to show this issue.

3122.shell_module.zip

Results: UART prints as expected when RTT Viewer is connected. When disconnecting RTT viewer, uart prints out a few more lines but eventually stops logging. 

Here are some snips of the issue I’m seeing, which aligns with what was found in the linked thread above.

I would like to have uart continue receiving data and logging, regardless of if RTT is connected. Is there something I’m missing in regards to shell having multiple backends?

Thank you in advance for your help.

Alyssa

Parents Reply Children
No Data
Related