No object file created for new c source file in project.
This is an STM32CubeMX generated project that has the FREERTOS option enabled.
Only the default thread is generated in code. All other threads I added manually using the default thread as an example of how to add them in freertos.c. The threads I added are defined in seperate file from freertos.c. The threads in that file are compiling without error.
Now I have new thread to add. I added it just like others in freertos.c, and I defined its start function “`StartThreadNew” in its own .c and .h files which I have newly added to the project. Just as all the other threads I created it with this code:
And just as the other threads are prototyped, so did I prototype the start function of this new thread:
When I compile it I get the error:
The new filename (with the .o extension) that StartThreadNew is defined in did not make it into the objects.list file. But that filename (with the .c extension) is listed in both the Project Explorer tab and the C/C++ Projects tab.
I added this new file by going to File => New => Source File. That file was created in the Eclipse project file system. I wanted it linked in the file system. So I deleted the new file from the project, moved that file to the directory all the other files in the project are in outside the Eclipse file system. Then I dragged the file from the Windows Explorer into the desired directory in Eclipse Project Explorer tab. I specified that the file is to be linked to in the pop up dialog box that appeared.
What has gone wrong here? Why isn’t an object file created for the new file that StartThreadNew() is defined in?