Shell does not work on nrf54l15bsim using zephyr,native-pty-uart
#93005
-
Describe the bugHey! I am trying to get the BabbleSim simulation working with both console and shell. While the former worked out of the box, the latter does not. I have created and chosen the native-pty-uart as such:
Enabled logging and shell as such:
And the application runs a simple hello world loop:
Connecting to the pty port, no shell prompt is printed, and keystrokes are not echoed back nor do anything, while the console works as expected. Regression
Steps to reproduceNo response Relevant log outputRunning the babblesim zephyr.exe prints:
zephyr.exe --nosim --wait_uart
d_00: @00:00:00.000000 WARNING: (/home/jaagup/projects/gale_ws/gale/projects/modules/bsim_hw_models/nrf_hw_models/src/HW_models/NHW_GRTC.c:441): The RT counter was not started while trying to read SYSCOUNTERL
d_00: @00:00:00.000000 WARNING: (/home/jaagup/projects/gale_ws/gale/projects/modules/bsim_hw_models/nrf_hw_models/src/HW_models/NHW_GRTC.c:441): The RT counter was not started while trying to read SYSCOUNTERH
d_00: @00:00:00.000000 uart_pty_0 connected to pseudotty: /dev/pts/16
---
Connecting to the pts port prints:
picocom v3.1
port is : /dev/pts/16
flowcontrol : none
baudrate is : 115200
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
hangup is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv -E
imap is :
omap is :
emap is : crcrlf,delbs,
logfile is : none
initstring : none
exit_after is : not set
exit is : no
Type [C-a] [C-h] to see available commands
Terminal ready
*** Booting My Application v0.1.0-alpha-a0a6a6afd2d5 ***
*** Using nRF Connect SDK v3.0.99-e612a113ce24 ***
*** Using Zephyr OS v4.1.99-1e9016c290bc ***
[00:00:00.000,093] <inf> main: Hello from HMI; 0.1.0-alpha
[00:00:00.000,093] <inf> main: TICK!
[00:00:01.000,100] <inf> main: TICK! ImpactFunctional Limitation – Some features not working as expected, but system usable. Environment
Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
(Converting this bug report to a discussion, as it is more of a request for support than a bug report.) @JaagupAverin Any reason to not use directly the nRF HW (modeled) UART? Creating a DT overlay to set the
Things should work directly, or?
|
Beta Was this translation helpful? Give feedback.
-
Anyhow, if you really want to use the
diff --git a/samples/subsys/shell/shell_module/prj.conf b/samples/subsys/shell/shell_module/prj.conf
index ff7c665b381..438eae99ea1 100644
--- a/samples/subsys/shell/shell_module/prj.conf
+++ b/samples/subsys/shell/shell_module/prj.conf
@@ -16,3 +16,8 @@ CONFIG_THREAD_RUNTIME_STATS=y
CONFIG_THREAD_RUNTIME_STATS_USE_TIMING_FUNCTIONS=y
CONFIG_STATS=y
CONFIG_STATS_SHELL=y
+
+CONFIG_UART_CONSOLE=y
+CONFIG_LOG_BACKEND_UART=y
+CONFIG_LOG_MODE_DEFERRED=y
+CONFIG_LOG_BUFFER_SIZE=4096
|
Beta Was this translation helpful? Give feedback.
-
Sidetrack, but just to clarify this. Note that the Babblesim simulation design is focused on speed and running tests in batch. Interactive runs are possible but can be quite clumsy (as you just found with the UART input overflowing)
Yes, the handbrake device does indeed stall and release the whole simulation periodically. |
Beta Was this translation helpful? Give feedback.
Anyhow, if you really want to use the
zephyr,native-pty-uart
with the nrf54l15bsim, you should also be able to do so:This would seem equivalent to what you are trying to do(?):
samples/subsys/shell/shell_module/boards/nrf54l15bsim_nrf54l15_cpuapp.overlay
: