Skip to main content
youssef.amimi
Associate II
May 22, 2019
Question

error while linking a graphic application with keil 5.26 generated with cubemx5:"Undefined symbol OTM8009A_Init

  • May 22, 2019
  • 9 replies
  • 1613 views

I have configured my application in cubeMX then I execute touchgfx to generete graphic code and finally i build the project with keil but an error occured on linking "Error: L6218: Undefined symbol OTM8009A_Init (referred from stm32f769i_discovery_lcd.o).

This topic has been closed for replies.

9 replies

Tesla DeLorean
Guru
May 22, 2019

So likely a missing file. Make sure the project has whatever files it needs from the BSP\Components directories.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
May 22, 2019

Repository\STM32Cube_FW_F7_V1.15.0\Drivers\BSP\Components\otm8009a\otm8009a.c

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Martin KJELDSEN
Principal III
May 23, 2019

The explanation is that CubeMX will not concern itself with BSP (even if you're using the BoardSelector) so you must add these files to your project on your own. OTM8009A_Init may not be the only undefined symbol. Just grab them from the appropriate cube firmware as suggested.

Best regards,

Martin

Tesla DeLorean
Guru
May 23, 2019

>>The explanation is that CubeMX will not concern itself with BSP..

With automated tools you create the expectation that they'll do the job completely/correctly. It will save a lot of unnecessary technical support load.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
youssef.amimi
Associate II
May 23, 2019

Hi @Community member​ and @Martin KJELDSEN​ , I added files to the Drivers\BSP\Components in the project before building it.

Martin KJELDSEN
Principal III
May 24, 2019

And you're sure you included otm8009a.c (Drivers\BSP\Components\otm8009a\otm8009a.c) ?

youssef.amimi
Associate II
May 25, 2019

the problem was that i forgot to include in path "Drivers\BSP\Components". (I am very sorry for wasting your time, it was a silly mistake.)

But after all the application didn't work(the lcd didn't work) despite i configured cubeMX and touchgfx using the application note AN4861 for the LTDC.

I will try again, if it doesn't work i will posted the problem and i will count for your help. Thank you very much :smiling_face_with_heart_eyes: