Create a directory for the West workspace and switch into it:
mkdir chester-app
cd chester-app
Note: The word
chester-appin the title and command above should be replaced with your workspace name (and preferrably match a path/name of your Git repository). If you only have one application in the workspace, the name should contain the application name. Once done, do not forget to delete this note to avoid any future confusion.
Create Python virtual environment in the workspace:
python3 -m venv .venv
Note: If the command
python3cannot be found on your system, usepythoninstead.
Activate the Python virtual environment:
source .venv/bin/activate
Note: This command should be
.venv\Scripts\Activate.ps1in Windows Powershell. Also, in case of the Fish shell, it is important to run the command assource .venv/bin/activate.fish.
Upgrade the Python package installer:
pip install --upgrade pip
Install the West tool:
pip install west
Initialize the West workspace:
west init -m https://github.com/hardwario/chester-skeleton.git --manifest-rev main
Synchronize the West workspace:
west update
Install the required Python packages:
west packages pip --install
Export the Zephyr CMake packages:
west zephyr-export
Install the Zephyr SDK:
west sdk install -t arm-zephyr-eabi
Configure the default board:
west config build.board chester
Go to the application directory:
cd vendor/application
Build the application:
west build
Flash the application:
west flash
Open the console:
hardwario chester app console
- Read the CHESTER documentation
- Try the code samples
- See how the catalog applications work