PlatformIO with custom STM32Duino board variants See https://community.platformio.org/t/how-use-a-same-chip-but-with-different-environment/18082. Further see platformio.ini and custom_variants folder.