1. Overview
This note describes how to set up and use the serial console for the SOM-NRF9151 board. Use of the Zephyr interactive shell command interface, on top of the serial consoles, is explained as well.
2. Setting Up Serial Consoles
After the board is connected to your Linux PC, use dmesg
to identify the board serial port:
$ sudo dmesg ... TBD ...
Connect to it using a terminal program on your Linux PC:
picocom -b 115200 /dev/ttyUSB0
After the application image is programmed to the target board, reset the board and observe the Zephyr banner and shell on the serial console:
TBD uart:~$
3. Using Zephyr Shell
The SOM-NRF9151 software is configured to run the Zephyr interactive shell command interface in the serial console.
Most of the standard Zephyr shell features are available, such as the auto-completion, command history, etc.
Various Zephyr shell commands are enabled:
uart:~$ kernel kernel - Kernel commands Subcommands: cycles :Kernel cycles. reboot :Reboot. stacks :List threads stack usage. threads :List kernel threads. version :Kernel version. sleep :ms log-level :<module name> <severity (0-4)> uart:~$ device device - Device commands Subcommands: list :List configured devices uart:~$