You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/zephyr_vsworkbench/1_installation.md
+29-28Lines changed: 29 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,58 +1,55 @@
1
1
---
2
-
title: Prepare your system for Zephyr development in Visual Studio Code
2
+
title: Set up your environment
3
3
weight: 2
4
4
5
5
### FIXED, DO NOT MODIFY
6
6
layout: learningpathall
7
7
---
8
8
9
-
## Set up your environment
9
+
## The benefits of using Workbench for Zephyr Visual Code extension
10
10
11
-
Setting up a[Zephyr](https://zephyrproject.org/) RTOS development environment from scratch can be challenging, requiring you to manually install SDKs, configure toolchains, and initialize workspace directories. These steps often vary across operating systems and board vendors, leading to a fragmented and error-prone setup process.
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.
12
12
13
13
[Workbench for Zephyr](https://zephyr-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.
14
14
15
-
In this Learning Path, you'll follow clear steps to install Workbench for Zephyr and set up a full development environment on your computer. By the end, you'll be able to create, build, and debug applications for Arm Cortex-M boards using Zephyr RTOS.
15
+
In this Learning Path, you'll set up Workbench for Zephyr and configure a complete development environment on your computer. By the end, you can create, build, and debug applications for Arm Cortex-M boards using Zephyr RTOS.
16
16
17
-
Workbench for Zephyr makes it easy to set up your development environment with a single click. It automatically installs all the tools you need, such as Python, CMake, Ninja, and Git. You can import and manage different versions of the Zephyr SDK, choose the right architecture, and quickly initialize west workspaces. The extension lets you create board-specific applications from sample projects, build and flash them to your hardware, and debug your code, all within Visual Studio Code. You also get features like breakpoint debugging and memory usage insights when using a supported hardware probe.
17
+
Workbench for Zephyr makes it easy to set up your development environment with a single click. It automatically installs all the tools you need, such as Python, CMake, Ninja, and Git. You can import and manage different versions of the Zephyr SDK, choose the right architecture, and quickly initialize West workspaces. The extension lets you create board-specific applications from sample projects, build and flash them to your hardware, and debug your code, all within Visual Studio Code. You also get features like breakpoint debugging and memory usage insights when using a supported hardware probe.
18
18
19
19
## Install dependencies
20
20
21
-
To get started with Workbench for Zephyr, you need to have Visual Studio Code downloaded, installed, and running on your computer.
21
+
To get started with Workbench for Zephyr, you need to have Visual Studio Code downloaded, installed, and running on your computer:
22
22
23
-
**Windows OS:**
23
+
24
+
### Windows
24
25
For Windows, you need version 10 or later (64-bit x64), along with administrator privileges for installing runners and drivers.
25
26
26
-
**macOS:**
27
+
### macOS
27
28
On macOS, the Homebrew package manager is required. To install Homebrew, run the following command:
- A recent 64-bit X64 distribution such as Ubuntu 20.04 or later, Fedora, Clear Linux OS, or Arch Linux
35
-
- Other distributions might work, but might require manual configuration of system packages
36
-
- After installation, use the Workbench host tools manager to verify that all required tools were installed correctly
34
+
### Linux
35
+
To use Workbench for Zephyr on Linux, install a recent 64-bit distribution such as Ubuntu 20.04 or later, Fedora, Clear Linux OS, or Arch Linux. Other distributions can work, but you might need to manually configure some system packages. After installing your operating system, use the Workbench host tools manager to check that all required tools are installed correctly.
37
36
38
37
39
38
Zephyr Workbench supports STM32 development boards (STM32 Discovery, Nucleo series), Nordic Semiconductor boards (nRF52, nRF53, nRF91 series), NXP development boards (FRDM, LPCXpresso series), Espressif boards (ESP32-based boards), and many other Zephyr-supported platforms like Renesas, Silabs or Infineon. You need a development board to try out the code examples.
40
39
41
-
## Configure the Workbench for Zephyr extension in Visual Studio Code
42
-
43
-
This section covers installing the Zephyr Workbench extension and configuring your Arm development environment.
40
+
## Install and configure the Zephyr Workbench extension
44
41
45
-
### Install the Workbench for Zephyr extension
42
+
This section covers installing the Workbench for Zephyr extension and configuring your Arm development environment.
46
43
47
-
To install the Workbench for Zephyr extension, open Visual Studio Code. In the Activity Bar, select the **Extensions** icon to open the Extensions view.
44
+
To install the Workbench for Zephyr extension, open **Visual Studio Code**. In the **Activity Bar**, select the **Extensions** icon to open the **Extensions view**.
48
45
49
-
You can also use the keyboard shortcut `Ctrl+Shift+X` on Windows or Linux, or `Cmd+Shift+X` on macOS.
46
+
You can also use the keyboard shortcut **Ctrl+Shift+X** on Windows or Linux, or **Cmd+Shift+X** on macOS.
50
47
51
-
In the search box, enter **Workbench for Zephyr**. Locate the official extension by Ac6 and select **Install**.
48
+
In the search box, enter `Workbench for Zephyr`. Locate the official extension by **Ac6** and select **Install**.
52
49
53
-
After installation, the Workbench for Zephyr icon appears in the Activity Bar. A welcome screen confirms that the extension is ready to use.
50
+
After installation, the Workbench for Zephyr icon appears in the **Activity Bar**. A welcome screen confirms that the extension is ready to use.
54
51
55
-
###Install the required host tools
52
+
## Install the required host tools
56
53
57
54
In the Workbench for Zephyr panel, select **Install Host Tools** to automatically install the required dependencies.
58
55
@@ -64,16 +61,20 @@ This process installs Python 3.x, CMake, the Ninja build system, Git, Device Tre
64
61
On Windows, you might see permission prompts when Workbench for Zephyr installs or runs tools. Select **Allow** to continue with the setup.{{% /notice%}}
65
62
66
63
When the installation completes, select **Verify Host Tools** to confirm that each required package is installed and up to date. The panel displays the version and status for Python, CMake, Ninja, Git, and Device Tree Compiler. If any tool is missing or out of date, follow the prompts to resolve the issue before continuing.
67
-
###Import and configure the Zephyr toolchain
64
+
## Import and configure the Zephyr toolchain
68
65
69
66
To build and debug Zephyr applications for Arm Cortex-M boards, you need to import and configure the Zephyr toolchain using Workbench for Zephyr.
70
67
71
68
In the Workbench for Zephyr panel, select **Import Toolchain**. This opens a guided setup panel.
72
69
73
-
- For **Toolchain Family**, select *Zephyr SDK*
74
-
- For **SDK Type**, choose *Minimal* to install only the essential components
75
-
- For **Version**, pick the Zephyr SDK release you want to use, such as v0.17.0 or v0.17.3
76
-
- For **Target Architectures**, select *arm* to target Arm-based boards
70
+
In the **Import Toolchain** panel, configure the following options to set up your Zephyr toolchain for Arm development:
71
+
72
+
-**Toolchain Family**: select *Zephyr SDK* to use the official Zephyr toolchain.
73
+
-**SDK Type**: select *Minimal* to install only the essential components needed for development.
74
+
-**Version**: select the Zephyr SDK release you want to use, such as v0.17.0 or v0.17.3.
75
+
-**Target Architectures**: select *arm* to target Arm-based boards.
76
+
77
+
These settings ensure your environment is optimized for Arm Cortex-M development. After configuring these options, continue with the import process to download and install the selected SDK.
77
78
78
79
Next, specify the directory where you want to install the SDK. Select **Import** to start the download and installation process. When the import completes, the panel displays a confirmation that the toolchain is ready.
79
80
@@ -83,7 +84,7 @@ If you see errors during import, check your internet connection and confirm you
83
84

84
85
85
86
86
-
###Initialize the Zephyr project workspace
87
+
## Initialize the Zephyr project workspace
87
88
88
89
Zephyr uses a Git-based workspace manager called West to organize its source code, modules, and samples. Use Workbench for Zephyr to initialize your first West workspace.
89
90
@@ -99,7 +100,7 @@ Select **Import** to create and update the workspace.
99
100
The workspace initialization downloads the Zephyr source code and dependencies. This process can take several minutes depending on your internet connection speed.
100
101
{{% /notice %}}
101
102
102
-
###Verify setup
103
+
## Verify setup
103
104
104
105
Test your setup by confirming that the Workbench for Zephyr panel shows all components as installed successfully. Verify the host tools are installed, the SDK is imported and detected, and the West workspace is initialized. Ensure no error messages appear in the VS Code output panel.
105
106
{{% notice Troubleshooting Tips %}} If you have trouble installing host tools on Windows, try running Visual Studio Code as an administrator. Make sure your firewall allows internet access so dependencies can download. Before importing the SDK, confirm you have at least 2 GB of free disk space.{{% /notice %}}
Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/zephyr_vsworkbench/2_development.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
---
2
-
title: Build Zephyr applications in VS Code
2
+
title: Build a Zephyr application with Zephyr workbench
3
3
weight: 3
4
4
5
5
### FIXED, DO NOT MODIFY
6
6
layout: learningpathall
7
7
---
8
8
9
-
## Create and build your first Zephyr application
9
+
## Set up your Zephyr development board and environment
10
10
11
-
In this session, you'll learn how to create and build your first Zephyr application using Workbench for Zephyr. This step prepares you to customize, test, and expand real firmware projects on Arm Cortex-M boards.
11
+
In this section, you'll learn how to create and build your first Zephyr application using Workbench for Zephyr. This step prepares you to customize, test, and expand real firmware projects on Arm Cortex-M boards.
12
+
For this demonstration, you'll use an [NXP FRDM-MCXN947](https://www.nxp.com/design/design-center/development-boards-and-designs/FRDM-MCXN947) development board as your target device. The same process works for any Zephyr-supported Arm Cortex-M board.
12
13
13
-
For demonstration, you'll use an [NXP FRDM-MCXN947](https://www.nxp.com/design/design-center/development-boards-and-designs/FRDM-MCXN947) development board as the target device. However, the same steps apply to any Zephyr-supported Arm Cortex-M board.
14
-
You can find the full list of supported boards in the [Supported Boards](https://docs.zephyrproject.org/latest/boards/#).
14
+
To see all compatible boards, visit the [Zephyr Supported Boards list](https://docs.zephyrproject.org/latest/boards/#).
15
15
16
16
Depending on your board, you might need to install a different debug tool aka `runner`. The next section covers this setup.
17
17
18
-
###Create application
18
+
## Create the application
19
19
20
20
In the Zephyr Workbench panel:
21
21
@@ -29,17 +29,17 @@ Configure your project:
29
29
30
30
After you complete these steps, Workbench for Zephyr creates the project and prepares it for building.
31
31
32
-

32
+

33
33
34
-
###Build the application
34
+
## Build the application
35
35
36
36
Select the **Build** button in Workbench for Zephyr or press `Ctrl+Shift+B`.
37
37
38
38
The build system compiles your application and links it against the Zephyr kernel and board-specific drivers.
39
39
40
40
![VS Code Zephyr Workbench build application panel showing workspace selection, SDK version, target board dropdown, sample application selection, and project name fields. The primary subject is the Zephyr Workbench interface guiding users through building a Zephyr application. Visible text includes labels such as Workspace, SDK, Target Board, Sample Application, and Project Name, with buttons for Create New Application and Build. The wider VS Code environment is visible in the background, presenting a clean and organized workspace with a neutral, professional tone. alt-text#center]
41
41
42
-
###Install board-specific debug utilities
42
+
## Install board-specific debug utilities
43
43
44
44
To enable debugging on your target hardware, you might need to install additional tools based on the board vendor.
45
45
@@ -54,7 +54,7 @@ If Workbench for Zephyr doesn't automatically detect the installed debug runner,
54
54
Open the **Debug Manager** from the Zephyr sidebar, and enter the full path to the runner executable.
55
55
{{% /notice %}}
56
56
57
-
###Review output
57
+
## Review the output
58
58
59
59
Check the build output at the bottom panel of VS Code. Make sure there are no errors or warnings. A successful build displays:
60
60
@@ -65,7 +65,7 @@ Memory region Used Size Region Size % Used
65
65
SRAM: 4048 B 256 KB 1.5%
66
66
```
67
67
68
-
###Code walkthrough: hello_world
68
+
## Code walkthrough: hello_world
69
69
70
70
The following code shows a basic Zephyr application that prints a message to the console:
0 commit comments