bmd-studio / stm32-for-vscode

STM32 extension for working with STM32 and CubeMX in VSCode
MIT License
207 stars 27 forks source link

Cannot add source file to the build #171

Closed vegmy closed 8 months ago

vegmy commented 8 months ago

Hello. I have no trouble compiling the code thats in the generated files from cube MX, that is main.c etc. But when I add my own source and header files, I get the undefined reference to a function call: undefined reference to `stts751_init'. The header file is included in main.c where the function is called, and I have checked for typos. Is there a specific way that a source file should be added to get compiled? Edit: typo