Electronics - STM32 - Setting up PlatformIO in ROS2 DevContainers
This guide provides a step-by-step workflow to bridge physical STM32 hardware into a virtualized ROS2 DevContainer. It leverages PlatformIO and usbipd to enable firmware flashing from a Docker environment. First of all Github project for this tutorial: https://github.com/badprog/badprog-electronics-stm32-setting-up-platformio-in-ros2-devcontainers Shopping list: An electronic board like the STM32F3Discovery board (STM32F303VCT6 microcontroller) Windows 10 or 11 WSL 2 (Windows Subsytem for Linux) Ubuntu 24.04 usbipd-win:https://github.com/dorssel/usbipd-win/releases A Dockerfile withROS 2 image (osrf/ros:jazzy-desktop) VSCode with extensions: Dev Containers (ms-vscode-remote.remote-containers) Robot Developer Extensions for ROS 2 (Ranch-Hand-Robotics.rde-ros-2) PlatformIO IDE (platformio.platformio-ide) WSL: Windows Subsystem for Linux In order to get WSL, simply open a PowerShell terminal in Admin mode: ...