Getting Started with PlatformIO
Note that this tutorial is written by and maintained by the PlatformIO team. This guide will help you take the first steps with programming STM32 microcontrollers using the PlatformIO ecosystem. The goal of this guide is to show you how simple it is to set up PlatformIO with Visual Studio Code and use it to compile, upload, and debug STM32Cube-based application on the STM32 Nucleo-F401RE board.
https://stm32-base.org/guides/platformio.html