Replies: 1 comment 1 reply
-
First make sure your device tree overlay file has selected the correct RX and TX pins selected. Mine looks like this: &pinctrl { However, I too have an issue where I get the printk() function output to my console, but no shell interface is functioning. I have the same code working on a very old(3 years ago) release of Noedic Nrf Connect and Zephyr. But porting to the latest release my SHELL does not work either. First check your device tree and test with printk() or similar. Hopefully I can figure out what is wrong or someone else can help both of us. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to enable the shell on zephyr OS; however, I only see the printf but do not see the prompt pop-up. I am wondering that what did I need to check in order to fix the issue.
/ {
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &ram0;
};
};
&uart0 {
status = "okay";
current-speed = <115200>;
clock-frequency = <32500000>;
};
on my main.c; I already have the following code which create the shell command:
SHELL_STATIC_SUBCMD_SET_CREATE(sub_demo,
SHELL_CMD(dictionary, &sub_dict_cmds, "Dictionary commands", NULL),
SHELL_CMD(hexdump, NULL, "Hexdump params command.", cmd_demo_hexdump),
SHELL_CMD(params, NULL, "Print params command.", cmd_demo_params),
SHELL_CMD(ping, NULL, "Ping command.", cmd_demo_ping),
SHELL_CMD(board, NULL, "Show board name command.", cmd_demo_board),
#if defined CONFIG_SHELL_GETOPT
SHELL_CMD(getopt, NULL, "Cammand using getopt, looking for: "abhc:".",
cmd_demo_getopt),
#endif
SHELL_SUBCMD_SET_END /* Array terminated. */
);
Therefore I am wondering that what do I need to check in order to see the prompt on my UART.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions