@konradhalas, @ivankravets I have previously tried without success to compile code generated by the STM32CubeMX tool under PlatformIO. Others have had success compiling with gcc using makefile, see for example: http://wunderkis.de/stm32cube/index.html, so it should be possible.
The main problem I found is that the auto-generated code separates header files under
Inc/ and source files under
Src/. This also includes the many driver files, and it would be extremely tedious to copy them all to a flat format (but it could be scripted I guess). PlatformIO does not seem to traverse this complex tree of source files, and I cannot figure out any option in the
.platformio file to change this.