Skip to main content
Jnevi.1
Associate III
March 24, 2022
Solved

Touchgfx 4.18.1, CubeMX 6.5.0, Keil 5.36 LCD1bpp.h header not found

  • March 24, 2022
  • 3 replies
  • 919 views

I created a MDK-ARM project in CubeMXwith touchgfx custom target, BW display 128x64

I generate the sources via cube mx adn the touchgfx Designer

I try to compile and get

TouchGFX\target\generated\TouchGFXConfiguration.cpp(32): error: #20: identifier "LCD1bpp" is undefined

It looks like the Middlewares\ST\touchgfx\framework\include\platform\driver\lcd\LCD1bpp.h is not included.

Had anyone this problem before?

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

Hello @Jnevi.1​,

Sorry we apparently forgot to answer your post some months ago.

Indeed, this bug was fixed in 4.21.0, you can see it if you open the .pdsc inside the X-CUBE-TouchGFX installation repository :

0693W00000Y9EYVQA3.png 

/Yoann

3 replies

Jnevi.1
Jnevi.1Author
Associate III
April 20, 2022

any update on this? it is a error of the code generation. after every generation i manually have to add this header

Jnevi.1
Jnevi.1Author
Associate III
January 26, 2023

i think this bug is fixed now...if i regenrate the code this header gets added.

i think there were some bigger changes in code generation because in the past you had these markers for private code and code managed by touchgfx/cubeMX which are not there anymore

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
January 26, 2023

Hello @Jnevi.1​,

Sorry we apparently forgot to answer your post some months ago.

Indeed, this bug was fixed in 4.21.0, you can see it if you open the .pdsc inside the X-CUBE-TouchGFX installation repository :

0693W00000Y9EYVQA3.png 

/Yoann

Yoann KLEINST Software Developer | TouchGFX