Skip to main content
ananya
Associate II
August 7, 2019
Question

Linker error in IAR

  • August 7, 2019
  • 2 replies
  • 1660 views

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 

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
August 7, 2019

Make sure the libraries CAN source files are added to the project.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ananya
ananyaAuthor
Associate II
August 7, 2019

The C file containing the function definitions of these functions i.e stm32f4xx_hal_can.c is included in the project.

Tesla DeLorean
Guru
August 7, 2019

Linker says it can't see them.

Check you have CAN modules selected in stm32f4xx_hal_conf.h

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..