PlatformIO Community

How to use PlatformIO with STM32CubeMX

I would like to program a STM32-E407 board on PlatformIO with the ststm32 framework. The idea is to use the STM32CubeMX application to create the configuration files and use them in PlatformIO.

What I am trying to do is to fade in and out a LED connected to pin PA5 with PWM.

Is there any tutorial that could help me? Or can anybody explain to me the step required?

PS. I saw these posts but they are not complete enough to understand the whole process: