Skip to main content
zhuij.1
Associate II
June 30, 2022
Solved

STM32L4R9 + touchgfx4.20 + MDK build error?

  • June 30, 2022
  • 2 replies
  • 2636 views

Error: L6218E: Undefined symbol touchgfx::paint::rgb565::lineFromColor(unsigned short*, unsigned, unsigned, unsigned char, unsigned) (referred from painterrgb565.o).

How to resolve?

This topic has been closed for replies.
Best answer by Yoann KLEIN

Hello @zhuij.1​ ,

I tried to reproduce your error, but everything worked fine for me when I started a STM32L4R9 project from scratch, generated code for MDK-ARM in CubeMX and then generated code in TouchGFXDesigner.

Could you please try to delete your Middlewares>ST folder, then press generate code in TouchGFXDesigner again. After that, please try to rebuild your MDK-ARM project and let me know if you still have the same issue.

Thank you,

/Yoann

2 replies

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
June 30, 2022

Hello @zhuij.1​ ,

I tried to reproduce your error, but everything worked fine for me when I started a STM32L4R9 project from scratch, generated code for MDK-ARM in CubeMX and then generated code in TouchGFXDesigner.

Could you please try to delete your Middlewares>ST folder, then press generate code in TouchGFXDesigner again. After that, please try to rebuild your MDK-ARM project and let me know if you still have the same issue.

Thank you,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
zhuij.1
zhuij.1Author
Associate II
June 30, 2022

add the blow header,the error disappear0693W00000Nt82gQAB.png

RetroInTheShade
Associate
June 30, 2022

Hi @zhuij.1​ ,

If you have just upgraded touchgfx from an earlier version, it would be also worthwhile looking at:

https://support.touchgfx.com/4.20/docs/miscellaneous/known-issues

This references this type of issue.

Cheers.