Skip to content

Commit 3569e75

Browse files
Merge pull request #2607 from madeline-underwood/zephyr
Zephyr_JA to sign off
2 parents 01b791a + 6bb95fa commit 3569e75

4 files changed

Lines changed: 102 additions & 110 deletions

File tree

Lines changed: 47 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,108 @@
11
---
2-
title: Install and configure Workbench for Zephyr in VS Code
2+
title: Set up your environment
33
weight: 2
44

55
### FIXED, DO NOT MODIFY
66
layout: learningpathall
77
---
88

9-
## Set up your Zephyr development environment
9+
## The benefits of using Workbench for Zephyr Visual Code extension
1010

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.
1212

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.
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.
1414

15-
In this Learning Path, you'll learn the essential steps to install Workbench for Zephyr and configure a complete development environment on your local machine. Once complete, you'll be ready to create, build, and debug applications for Arm Cortex-M platforms 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.
1616

17-
Workbench for Zephyr provides one-click environment setup that automatically installs the required tools including Python, CMake, Ninja, and Git. It supports importing and managing Zephyr SDKs with version and architecture selection, while initializing west workspaces and creating board-specific applications from samples. The extension builds Zephyr applications and flashes hardware directly from the VS Code interface. It also provides breakpoint debugging and memory usage insights with hardware probe support.
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.
1818

19-
## What you need before installing Workbench for Zephyr
19+
## Install dependencies
2020

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:
2222

23-
**Windows OS:**
23+
24+
### Windows
2425
For Windows, you need version 10 or later (64-bit x64), along with administrator privileges for installing runners and drivers.
2526

26-
**MacOS:**
27-
On MacOS, the Homebrew package manager is required. To install Homebrew, run the following command:
27+
### macOS
28+
On macOS, the Homebrew package manager is required. To install Homebrew, run the following command:
2829

2930
```bash
3031
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
3132
```
3233

33-
**Linux:**
34-
- 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 may 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.
3736

3837

3938
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.
4039

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.
44-
45-
### Install the extension
40+
## Install and configure the Zephyr Workbench extension
4641

47-
To install the Workbench for Zephyr extension, open Visual Studio Code and navigate to the Extensions view by selecting the Extensions icon in the Activity Bar.
42+
This section covers installing the Workbench for Zephyr extension and configuring your Arm development environment.
4843

49-
You can also use the keyboard shortcut `Ctrl+Shift+X` (Windows/Linux) or `Cmd+Shift+X` (macOS).
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**.
5045

51-
In the search box, type "Workbench for Zephyr" and locate the official "Workbench for Workbench" extension by Ac6. Select **Install** to add the extension to VS Code.
46+
You can also use the keyboard shortcut **Ctrl+Shift+X** on Windows or Linux, or **Cmd+Shift+X** on macOS.
5247

53-
The extension icon appears in the Activity Bar, and a welcome message may appear confirming successful installation.
48+
In the search box, enter `Workbench for Zephyr`. Locate the official extension by **Ac6** and select **Install**.
5449

55-
Once installed, the Workbench for Zephyr icon appears in the sidebar with a welcome screen.
50+
After installation, the Workbench for Zephyr icon appears in the **Activity Bar**. A welcome screen confirms that the extension is ready to use.
5651

57-
### Install the required host tools
52+
## Install the required host tools
5853

5954
In the Workbench for Zephyr panel, select **Install Host Tools** to automatically install the required dependencies.
6055

6156
This process installs Python 3.x, CMake, the Ninja build system, Git, Device Tree Compiler (DTC), and the West meta-tool.
6257

63-
![Install Host Tools #center](images/install_host_tools.png)
58+
![Workbench for Zephyr extension panel in Visual Studio Code showing the Install Host Tools button highlighted. The panel lists required tools such as Python, CMake, Ninja, Git, and Device Tree Compiler. The environment is a modern code editor interface with a sidebar and clear labels. The tone is instructional and welcoming. Visible text includes Install Host Tools and a checklist of dependencies to be installed. alt-text#center](images/install_host_tools.png "Workbench for Zephyr extension panel")
6459

6560
{{% notice Note %}}
66-
On Windows, you may be prompted for permission when tools are executed. Select "Allow" when requested.
67-
{{% /notice %}}
61+
On Windows, you might see permission prompts when Workbench for Zephyr installs or runs tools. Select **Allow** to continue with the setup.{{% /notice%}}
62+
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.
64+
## Import and configure the Zephyr toolchain
65+
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.
6867

69-
When the installation completes, select **Verify Host Tools** to check the version of each installed package.
68+
In the Workbench for Zephyr panel, select **Import Toolchain**. This opens a guided setup panel.
7069

71-
### Import and configure the toolchain
70+
In the **Import Toolchain** panel, configure the following options to set up your Zephyr toolchain for Arm development:
7271

73-
Next, download and configure the toolchain by selecting **Import Toolchain** in the Workbench for Zephyr panel. Select the toolchain family (*Zephyr SDK*) and configure the SDK Type by choosing *Minimal* for basic functionality.
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.
7476

75-
Select your desired version (such as v0.17.4... your version may vary a little) and choose the target architectures. For this Learning Path, you only need to select *arm*.
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.
7678

77-
Specify the parent directory for SDK installation and select **Import** to download and install the SDK.
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.
7880

79-
![Import Toolchain #center](images/import_toolchain.png)
81+
If you see errors during import, check your internet connection and confirm you have at least 2 GB of free disk space. For more troubleshooting tips, review the extension's documentation or check the Visual Studio Code output panel.
8082

8183

82-
### Initialize the Zephyr project workspace
84+
![Workbench for Zephyr Import Toolchain panel in Visual Studio Code. The panel displays options for selecting the toolchain family, SDK type, version, and target architectures. Visible text includes Import Toolchain, Zephyr SDK, Minimal, v0.17.0, v0.17.3, and arm. The interface is organized and user-friendly, with clearly labeled dropdown menus and buttons. The overall tone is instructional and welcoming, set within a modern code editor workspace. alt-text #center](images/import_toolchain.png "Workbench for Zephyr Import Toolchain panel")
85+
86+
87+
## Initialize the Zephyr project workspace
8388

8489
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.
8590

86-
In the Workbench for Zephyr panel, select **Initialize Workspace** to set up your project environment. Configure the workspace settings by selecting "Minimal from template" for the source location and using the default path `https://github.com/zephyrproject-rtos/zephyr`.
91+
In the Workbench for Zephyr panel, select **Initialize Workspace** to set up your project environment. Configure the workspace settings by selecting **Minimal from template** for the source location and using the default path `https://github.com/zephyrproject-rtos/zephyr`.
8792

8893
Choose a target-specific template (such as STM32 or NXP) and select your Zephyr version (such as v4.3.0... your version may vary a bit). Specify the directory for your workspace, keeping in mind that initialization takes approximately 10 minutes to complete.
8994

9095
Select **Import** to create and update the workspace.
9196

92-
![Initialize West Workspace #center](images/initialize_workspace.png)
97+
![Workbench for Zephyr Initialize Workspace panel in Visual Studio Code. The panel displays options for setting up a new West workspace, including fields for source location, template selection, Zephyr version, and workspace directory. Visible text includes Initialize Workspace, Minimal from template, https://github.com/zephyrproject-rtos/zephyr, STM32, NXP, v3.7.0, v4.1.0, and Import. The interface is organized and user-friendly, with dropdown menus and buttons clearly labeled. The overall tone is instructional and welcoming, set within a modern code editor workspace. alt-text#center](images/initialize_workspace.png "Workbench for Zephyr Initialize Workspace panel in Visual Studio Code.")
9398

9499
{{% notice Note %}}
95-
The workspace initialization downloads the Zephyr source code and dependencies. This process may take several minutes depending on your internet connection speed.
96-
97-
Additionally, the selected revision you select may be a bit different from the one shown above.
100+
The workspace initialization downloads the Zephyr source code and dependencies. This process can take several minutes depending on your internet connection speed.
98101
{{% /notice %}}
99102

100-
### Verify setup
103+
## Verify setup
101104

102105
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.
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 %}}
103107

104-
{{% notice Note %}}
105-
**Troubleshooting tips:**
106-
- Run VS Code as Administrator if host tool installation fails on Windows
107-
- Ensure internet access is allowed through your firewall
108-
- Check for minimum 2 GB free disk space before importing SDK
109-
{{% /notice %}}
110-
111-
You're ready to create and build your first Zephyr application targeting an Arm Cortex-M board.
108+
You're now ready to create and build your first Zephyr application targeting an Arm Cortex-M board.

0 commit comments

Comments
 (0)