2026-03-02 12:46 AM
Hi,
I wrote my own source file. It is located in the Core/Src directory. I have also entered it accordingly in cmakelists.txt.
my cmakelists.txt
Now I get an error saying that the include files from the Drivers directory are missing.
If I remove my entry, I no longer get the error. But then I can't use my customs. Is there a sample cmakelists.txt that includes customs?
Thank you,
Funnypinky
Solved! Go to Solution.
2026-03-02 4:16 AM
If it's like other families, you should only include the top-level "stm32wlxx_hal.h", and not individual HAL files.
2026-03-02 2:09 AM
hi @Funnypinky
for me seems an include issue, how did you manage the includes in your custom file please ?
2026-03-02 2:13 AM
2026-03-02 4:16 AM
If it's like other families, you should only include the top-level "stm32wlxx_hal.h", and not individual HAL files.
2026-03-02 4:28 AM
Thank you, was a little mistake, but a big search.
2026-03-04 10:26 PM
You should modify it to Core/Src/ina226/ina226.c