Hi, I hope someone can help me. I have a stm32 project where I have different hardware configurations but similar software components. My idea was to create a PlatformIO lib with the base functionality that every project can use. This works with the general code, but when I move the stm32g4xx_it.c and stm32g4xx_it.h for example to the lib folder. The linker does not find them any more (or this is what I think happens).
It looks like a wrong structure to me. See the readme inside the lib folder:
lib/README:
This directory is intended for project specific (private) libraries.
PlatformIO will compile them to static libraries and link into the executable file.
The source code of each library should be placed in a separate directory
(“lib/your_library_name/[Code]”).
For example, see the structure of the following example libraries Foo and Bar: