- Have WSL installed and configured. See this for instructions.
- Open Powershell and type the following command:
wsl --install -d Ubuntu - In Windows Powershell as Administrator, run the following commands to use your USB in WSL
<# Restart Shell after installation #>
winget install usbipd
<# Continue in Powershell #>
usbipd list
usbipd bind --busid <BUSID>
usbipd attach --auto-attach --busid <BUSID> --wsl- Follow Linux instructions below to install dependencies and setup Zephyr workspace.
- Install Homebrew if not already installed. See this for instructions.
- Install the base dependencies using Homebrew:
brew install cmake ninja gperf python3 python-tk ccache qemu dtc libmagic wget openocd- Follow Linux instructions below to install dependencies and setup Zephyr workspace.
-
Install the STM32Cube Programmer. See this for instructions.
-
Add the programmer to your PATH. For example, if you installed it in
/opt/stm32cubeprog, add the following line to your~/.bashrcor~/.zshrc:
export PATH=$PATH:STM32-Programmer/bin- Using the handy makefile provided, you can setup all your tools by running the following:
make setup- To build the project, run the following command:
make build- To flash the project to your board, run the following command:
make prog