I looked into PlatformIO usage with the STM32 series after going thorugh Jan Hendrik's Otterpill workshop. This is the absolutely minimal blink exmaple.
It remains unclear to me how or if I could use a configuration that was generated with CubeMX in a PlatformIO project.
See Using STM32CubeMX with PlatformIO (archive) on how to import CubeMX configuration into your project or use stm32pio
.
- Create the files
platformio.ini
andsrc/main.c
from the sources above. - Hold down the
DFU
button on your Otterpill when you plug it in to enter DFU download mode. - Run
pio run -t upload
.