Skip to main content
scottSD
Senior III
November 4, 2019
Solved

Is the STM32F46G-Discovery (v2.0.0) 24 bit supported in Stm32CubeIDE?

  • November 4, 2019
  • 1 reply
  • 816 views

I recently created a project for the Stm32F746G-Discovery kit in TouchGFX 4.12.3 and chose version 2.0.0. I was only able to select 24 bit color depth.

When creating a new project in STM32CubeIDE 1.1.0, I was only presented with one option for the STM32F46G-Discovery kit, so I chose it. I see that it is only 16 bit color depth as seen in the BoardConfiguration.cpp file as well as with in the Stm32CubeMX > Middleware >TouchGFX section.

Am I missing something, is there a way to set this up?

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Hi Scott,

This is because Application templates through the designer are made to showcase various bit depths. When you configure things from scratch through CubeIDE/MX you're creating a SPECIFIC hardware configuration (16,24, etc).

/Martin

1 reply

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
November 5, 2019

Hi Scott,

This is because Application templates through the designer are made to showcase various bit depths. When you configure things from scratch through CubeIDE/MX you're creating a SPECIFIC hardware configuration (16,24, etc).

/Martin

scottSD
scottSDAuthor
Senior III
November 5, 2019

Thanks for your reply Martin.

I am still a bit new at CubeMX, so I am a bit unsure where it needs to be setup.

I assumed it was the LTDC Display Type, but when changing that, the TouchGFX Color Frame Buffer Depth did not change.

However, when I changed the LTDC > Layer Settings > Pixel Parameters, it did effect the TouchGFX Color Frame Buffer Depth. I show it below for other people's reference:

LTDC Pixel Parameters:

0690X00000ArhwJQAR.png

Change reflected in TouchGFX Color Frame Buffer Depth:

0690X00000ArhwYQAR.png

I also found that this does automatically alter the TouchGFX BoardConfiguration.cpp file as well (which is very helpful). 

And, since this relates more to STM32CubeMX, I added this thread to that topic as well.