In this section, you’ll prepare your host computer and identify the hardware you need for two Zephyr shell examples. You’ll use the shell over two transports:
Make sure that you have a working Zephyr development environment set up in Visual Studio Code with:
Before working through this Learning Path, complete Build Zephyr projects with Workbench for Zephyr in VS Code .
The two examples in this Learning Path have additional requirements:
Both examples use the
FRDM-MCXN947
as the development board (Zephyr identifier frdm_mcxn947/mcxn947/cpu0). The FRDM-MCXN947 includes an Ethernet port for the MQTT shell example and a USB UART interface for the UART shell example. This allows both examples to run on the same board.
To check whether another board is supported by Zephyr, see the Zephyr supported boards list .
For the UART shell example, you’ll need a serial terminal application on your host computer. You’ll use the terminal application to connect to the Zephyr shell over the board’s UART interface.
You can complete this Learning Path on Windows, macOS, and Linux host computers.
Install PuTTY , which provides a lightweight serial terminal for UART communication on Windows.
macOS includes a built-in UART terminal utility through the screen command, so you don’t need additional software to connect to the shell.
Linux includes screen in most distributions, so you don’t need additional software to connect to the shell. If screen isn’t installed, use your package manager to install it:
sudo apt install screen
Workbench for Zephyr supports multiple debug runners depending on the connected board. The FRDM-MCXN947 board uses the onboard CMSIS-DAP/LinkServer interface for flashing and debugging, and UART over USB for shell access.
For the MQTT shell example, the board needs access to an MQTT broker over Ethernet. You’ll run Mosquitto locally and use the Mosquitto command-line tools to send and receive shell messages.
Make sure that:
prj.conf.1883.The example configuration uses IPv4. If your network doesn’t provide DHCP, use the static IPv4 settings shown in the next section.
You’ve now learned which boards to use, which host tools to install, and how the Zephyr shell fits into an embedded application.
In the next section, you’ll learn about the Zephyr shell subsystem and the two transports used in this Learning Path.