I tried to add the STM32G031F to platform IO.
inspired by the discussion here Custom Board definition for STM32G031G8.
I added the .platformio\packages\framework-arduinoststm32\variants\STM32G0xx\G031F(4-6-8)P_G031Y8Y_G041F(6-8)P_G041Y8Y – copied from github/stm32duino.
Created a genericSTM32G031F8.json file in the project boards folder and a plotformio.ini configuration.
[env:custom_g031f8p6]
platform = ststm32
board = genericSTM32G031F8
board_build.mcu = stm32g031f8p6
framework = arduino
upload_protocol = stlink
build_flags = -D ARDUINO_GENERIC_G031F8PX
lib_deps = adafruit/Adafruit NeoPixel@^1.12.4
but I always get a this error:
: fatal error: variant_generic.h: No such file or directory
but in the variants\STM32G0xx\G031F(4-6-8)P_G031Y8Y_G041F(6-8)P_G041Y8Y folder there is the variant_generic.h file.
It seems like the new variant folder is ignored - maybe not in the search path …
How can I fix this?
Any suggestions are highly appreciated - Thanks