How to add C source files to a project in a Cube IDE project
I'm no noob to the STM32, but I am to Cube IDE.
I've added a new directory for my user code to separate it as much as possible from this dog's dinner of code that Cube auto config creates.
I've created a new function, it's all correct, its prototype is in its header file, yet the compiler is telling me that there's an undefined reference to the function I'm trying to call from the Cube generated code.
The code is right, so there must be something wrong with the way I've created the new files and that the IDE hasn't automatically added them to the project.
Include directories are set up in the project. If I control click on the function the compiler is complaining about not seeing, the IDE takes me to the function.
I just created a new directory in Eclipse, then created new files by right clicking on the new directory and selecting file from template, then wrote my code. Is there a non-obvious step you have to take to somehow add the actual file to the project? You'd expect the IDE just to add it to the project, but then this is Eclipse and anything's possible with Eclipse.
Thanks =)
