Skip to content

Commit 6dd5393

Browse files
committed
Zephyr shell tech review
1 parent ec8a909 commit 6dd5393

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

content/learning-paths/embedded-and-microcontrollers/zephyr_shell/3_mqtt_shell.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Select **Create** to generate the project.
4949

5050
The `hello_world` sample provides a working `CMakeLists.txt`, `prj.conf`, and `src/main.c`. Leave `CMakeLists.txt` unchanged, and replace `prj.conf` and `src/main.c` with the contents below.
5151

52-
### prj.conf
52+
Replace the contents of `prj.conf` with the text below:
5353

5454
```text
5555
# Shell and MQTT backend
@@ -99,9 +99,11 @@ CONFIG_NET_CONFIG_MY_IPV4_GW="192.168.1.1"
9999

100100
Keep `CONFIG_NET_CONFIG_SETTINGS=y` enabled so Zephyr applies the network configuration at boot.
101101

102-
### src/main.c
102+
### Main function
103103

104-
The shell and MQTT backend start from Zephyr initialization hooks, so `main.c` can stay minimal:
104+
The shell and MQTT backend start from Zephyr initialization hooks.
105+
106+
Replace the contents of `main.c` with the code below:
105107

106108
```c
107109
int main(void)
@@ -128,7 +130,7 @@ mosquitto_shell/
128130
`-- mosquitto.conf
129131
```
130132

131-
### docker-compose.yml
133+
Edit the `docker-compose.yml` file and add the text below:
132134

133135
```yaml
134136
services:
@@ -144,7 +146,7 @@ services:
144146
restart: unless-stopped
145147
```
146148
147-
### mosquitto/config/mosquitto.conf
149+
Edit the `mosquitto.conf file and add the text below:
148150

149151
```text
150152
listener 1883 0.0.0.0

content/learning-paths/embedded-and-microcontrollers/zephyr_shell/4_uart_shell.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Select **Create** to generate the project.
3434

3535
The `hello_world` sample provides a working `CMakeLists.txt`, `prj.conf`, and `src/main.c`. Leave `CMakeLists.txt` unchanged, and replace `prj.conf` and `src/main.c` with the contents below.
3636

37-
### prj.conf
37+
Edit the `prj.conf` file and replace the contents with the text below:
3838

3939
```bash
4040
CONFIG_SHELL=y
@@ -50,7 +50,9 @@ CONFIG_MAIN_STACK_SIZE=2048
5050

5151
The UART shell backend routes shell input and output through the board's USB serial interface.
5252

53-
### src/main.c
53+
### Main
54+
55+
Edit the `main.c` file and replace the contents with the code below:
5456

5557
```c
5658
#include <zephyr/logging/log.h>

content/learning-paths/embedded-and-microcontrollers/zephyr_vsworkbench/1_installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: learningpathall
88

99
## Set up the Workbench for Zephyr development environment
1010

11-
Getting started with [Zephyr](https://zephyrproject.org/) RTOS development can be challenging. You often need to install SDKs, set up toolchains, and organize workspace directories by hand. The process is different for each operating system and board vendor, which can make setup confusing and lead to errors.
11+
Getting started with [Zephyr](https://zephyrproject.org/) RTOS development can be challenging. You often need to install SDKs, set up toolchains, and organize workspace directories by hand.
1212

1313
[Workbench for Zephyr](https://z-workbench.com/) is an open-source [Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=Ac6.zephyr-workbench) that transforms Zephyr RTOS development into a streamlined IDE experience. Created by [Ac6](https://www.ac6.fr/en/), it automates toolchain setup, project management, and debugging, making Zephyr projects faster to start and easier to scale.
1414

0 commit comments

Comments
 (0)