2019-08-07 04:08 AM
We are using stm32f429i-eval board , with Touchgfx for GUI and IAR embedded tool.
We are facing the following issue:
Error[Li005]: no definition for "HAL_CAN_Init" [referenced from C:\TouchGFXProjects\MyApplicationpost\target\IAR\Debug\Obj\Screen1View.o]
Error[Li005]: no definition for "HAL_CAN_ConfigFilter" [referenced from C:\TouchGFXProjects\MyApplicationpost\target\IAR\Debug\Obj\Screen1View.o]
Error[Li005]: no definition for "HAL_CAN_Transmit" [referenced from C:\TouchGFXProjects\MyApplicationpost\target\IAR\Debug\Obj\Screen1View.o]
Error[Li005]: no definition for "HAL_CAN_GetState" [referenced from C:\TouchGFXProjects\MyApplicationpost\target\IAR\Debug\Obj\Screen1View.o]
Error[Li005]: no definition for "HAL_CAN_Receive" [referenced from C:\TouchGFXProjects\MyApplicationpost\target\IAR\Debug\Obj\Screen1View.o]
Error while running Linker
2019-08-07 04:10 AM
Make sure the libraries CAN source files are added to the project.
2019-08-07 04:12 AM
The C file containing the function definitions of these functions i.e stm32f4xx_hal_can.c is included in the project.
2019-08-07 04:23 AM
Linker says it can't see them.
Check you have CAN modules selected in stm32f4xx_hal_conf.h