Duplicate of How to config STM32F030C6T6 support arduino framework?
See GitHub - maxgerhardt/pio-f030-test