Create an interactive shell for Zephyr RTOS on Arm Cortex-M
Introduction
Set up the Zephyr shell development environment
Understand the Zephyr shell subsystem and backends
Build and run the Zephyr MQTT shell on Arm Cortex-M
Build and run the Zephyr UART shell on Arm Cortex-M
Next Steps
Create an interactive shell for Zephyr RTOS on Arm Cortex-M
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You should see a shell prompt on the selected backend after boot. Run a built-in command such as
kernel version to confirm the shell responds.No. The MQTT example starts the shell, network stack, DHCP client, and MQTT shell backend from configuration options in
prj.conf.Use the UART shell backend. It maps shell input and output to the active UART console over the board’s USB serial interface and doesn’t require network connectivity.
Verify that the UART shell backend is enabled in
prj.conf and that you’re connected to the board’s USB serial interface selected as the active console. Use a serial terminal application supported on your host OS to view the console.Confirm
CONFIG_SHELL_BACKEND_MQTT is enabled and that required networking options are set in prj.conf so the device can obtain network connectivity. Ensure the MQTT broker is reachable from the board over Ethernet.