cubeIDE shows: undefined reference to `MX_FREERTOS_Init()' if peripheral initialisation is generated as .c/.h files
As a project expands, scolling down the main.cpp file is slowing me down. So I wished to break down the main.cpp by selecting "Generate peripheral initialisation as a pair of '.c/.h'files" inside the ioc file-> project manager -> Code Generation ->Generated files. After compiling the generated code, the IDE shows:
undefined reference to `MX_FREERTOS_Init()'
make: *** [makefile:83: MX_FreeRTOS_test.elf] Error 1
The same issue exsits in an empty project, and the issue would not appear if the project is converted to a C project. I noticed that other peripheral files such as usart has a pair of .c/.h file, whereas freertos only has a .c file been generated. in a C project.
How can I fix this issue? Will this be fixed in later versions of cubeIDE?
