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
- Create the files
src/main.cfrom the sources above.
- Hold down the
DFUbutton on your Otterpill when you plug it in to enter DFU download mode.
pio run -t upload.