cancel
Showing results for 
Search instead for 
Did you mean: 

touchgfx4.25.0 show color wrong

youxue
Associate II

Honeyview_eQckB7gk7X.jpg

It should be purple, but it shows up as blue. background is svg picture is normal.

 

14 REPLIES 14
Osman SOYKURT
ST Employee

Hello @youxue ,

The colors look good on my side with our discovery boards (tried on STM32U5G9J-DK2 and STM32F469I-DK).
However, when purple is placed over red, I occasionally experience an optical illusion where it appears blue instead of purple.

Osman SOYKURT
ST Software Developer | TouchGFX
youxue
Associate II

In that case, can I assume that there is an issue with the code generated by the STM32CubeMX or TouchGFX tool?

Maybe better as say generated is fail, place some info in your question. Primary how object is rectangle image, box , svg, ...? MX never generate LCD control init usw.

youxue
Associate II

I'm sure the issue lies in the code generated by TouchGFX or STM32CubeMX, because the problem persists even after I replaced it with a new screen. However, projects developed with other tools have normal screen colors.

Osman SOYKURT
ST Employee

Hello @youxue 

Are you sure you're using the same color format with the other tool? 
I can see from your ioc file that you're using an LTDC display. So I would suggest you to follow the procedure described in this article to show just 1 solid color on your screen , without using TouchGFX. This way we could say or not if the issue is coming from TouchGFX or CubeMX as you claim. 

Osman SOYKURT
ST Software Developer | TouchGFX