This guide provides instructions for setting up an environment for developing,
debugging, and programming embedded systems firmware in the Windows Subsystem
for Linux (WSL2).
This is a companion discussion topic for the original entry at https://interrupt.memfault.com/blog/wsl2-for-firmware-development
Highly recommended setup. At Simplexity Product Development, we’ve been using WSL + Docker as our development environment for the last 4-5 years. In addition to the near-native Linux performance for build time, keeping it on a Windows box keeps the IT guys happy and running native Docker inside of WSL means that all of our CI processes are running in the exact same container that runs on our Bitbucket server instance.
One more powerful use case : you can open your Win11 VSCode, and from there make a remote connection to your WSL, which will install VSCode server in your WSL2/linux.
From then on, you can use VSCode as if you were on linux. You can even install extensions etc.
It’s my favourite setup for doing Zephyr development.