After generation project from CubeMX
Error: L6218E: Undefined symbol MX_FREERTOS_Init() (referred from main.o).
Error: L6218E: Undefined symbol GRAPHICS_MainTask (referred from freertos.o).
Correct
main.cpp
void MX_FREERTOS_Init(void) -> extern "C" void MX_FREERTOS_Init(void);
BoardConfiguration.cpp
void GRAPHICS_MainTask(void) -> extern "C" void GRAPHICS_MainTask(void)
Error: L6218E: Undefined symbol MX_FREERTOS_Init() (referred from main.o).
Error: L6218E: Undefined symbol GRAPHICS_MainTask (referred from freertos.o).
Correct
main.cpp
void MX_FREERTOS_Init(void) -> extern "C" void MX_FREERTOS_Init(void);
BoardConfiguration.cpp
void GRAPHICS_MainTask(void) -> extern "C" void GRAPHICS_MainTask(void)