Using PlatformIO with a custom board based on STM32F427VGT6 mcu

I’m a newcomer to PlatformIO, have used it for several simple ESP32 projects, and I love it!

Now I’m embarking on a more serious project – writing an app that will run on a custom board based on the STM32F427VGT6 mcu. This same board was previously programmed by someone else using VisualGDB, but I want to use PlatformIO,

I’m struggling a bit getting started, and would appreciate any and all assistance.

Is anyone else out there using the STM32F427VGT6 with PlatformIO?

Thanks!
~neurodancer

There are only two board definitions close the the STM32F427VG: Both use a F427VI.

https://github.com/search?q=repo%3Aplatformio%2Fplatform-ststm32+STM32F427V&type=code

But it’s also possible to create a new board definition for the STM32F427VGT6, based on e.g. this one, and use the Arduino framework with it (as provided e.g. by Arduino_Core_STM32). For this special case, the Arduino framework doesn’t supply the linkerscript (ldscript.ld), so we have to supply our own.

The board definition is by default setup to expect an ST-Link upload and debugging tool, but you can change it to any of the other supported ones as is documented (here, here).

1 Like

Hey Maximilian,

Thank you very much for your detailed response to my request for help.

I finally had time today to read it in detail, and then I cloned the repo that you prepared. When I built the project everything worked perfectly the first time!

You have saved me a great deal of time and frustration. I am very grateful.

Dude, you’re awesome!