The topic is old, but I didn’t even think that this could cause a problem. As you can see, I have the src and the Inc folder are in the Core folder, I do not want to copy the contents of the folders since the project is under development and there is an option that I will change the configuration in CubeMX. It would seem that there is no problem to do everything according to the documentation
https://docs.platformio.org/en/latest/projectconf/section_platformio.html#include-dir
but it didn’t work.
[env:demo_f030f4]
platforms = stm32
board = demo_f030f4
framework = stm32cube
upload_protocol = stlink
lib_archive = no
;include_dir = Core/Inc
src_dir = Core/Src
build_flags =
-I Core/Inc
, i.e. if the Inc and Src folder are copied to the root of the project, then the project is compiled, but not in the current form.
I would appreciate your help!