Skip to main content
DLips.1
Associate
January 12, 2020
Solved

White screen on stm32f429i-disc1display

  • January 12, 2020
  • 51 replies
  • 12788 views

Hi all,

I am trying to configure my stm32f429i-disc1 with the lates CubeMX 5.5 and TouchGfx 4.13. I have followed the instructions from here: https://touchgfx.zendesk.com/hc/en-us/articles/360010921760-TouchGFX-HAL-Development, but my display is still all white (there should be red background with simple 'hello world' string on it).

The project compiles and there is also 1s_cnt which increments properly. I've tried to debug the project and noticed that program enters inside functions:

  • void StartScreenPresenter::activate()
  • void StartScreenView::setupScreen()

on startup but only once.

Both the board and the cable are ok, because I can flash MCU with other project and then screen works fine.

Have you got any ideas what I am doing wrong?

This topic has been closed for replies.
Best answer by Cody

If anyone is still having troubles with the display on the STM32F429 Discovery I have a working CubeIDE project. It is messy because I only intended to use it just for testing and I only configured the hardware that was need to get the display working. Hope this helps.

51 replies

Cody
Visitor II
January 22, 2020

I've made some progress with the "blank screen" today. The problem with mine was the SDRAM was not fully initialized.

In CubeIDE 1.1 when you generated code for a project with TouchGFX it would generate the BoardConfiguration and HW_Init that configured some of your hardware for you. I copied SDRAM_Initialization_Sequence from an old project generated with CubeIDE 1.1 and put it my current project in CubeIDE 1.2.1 after MX_FMC_Init. Now I am getting some of the screen I expect to see before it crashes.

Martin KJELDSEN
Principal III
January 22, 2020

Okay, that's progress - Did you investigate the crash? Something we should talk about? Related to graphics?

Cody
CodyBest answer
Visitor II
January 24, 2020

If anyone is still having troubles with the display on the STM32F429 Discovery I have a working CubeIDE project. It is messy because I only intended to use it just for testing and I only configured the hardware that was need to get the display working. Hope this helps.

HHarj.1
Associate III
January 24, 2020

Nice work, thank you! So did you just copy those settings from somewhere (TouchGFX files) or how did you figure out all those settings? Wonder if that same thing could be done for stm32f469-disco board?

Cody
Visitor II
January 24, 2020

I copied them from the Application Template. The same method should work for it. There's a video of how to get the code you need to copy at https://www.youtube.com/watch?v=o42r4xXOnbo.

HHarj.1
Associate III
January 27, 2020

I got your project working, can see the "Hello World" screen. However, if I add the FreeRtos and nothing else, I get only colored stripes on the LCD. What should I do to get it working?

EDIT: I got it working. Just added the MX_TouchGFX_Process(); in the defaulTask for loop.

Franco77
Associate
January 27, 2020

Hi @HHarj.1​ , then I have to cut off the FreeRtos??? I added the MX_TouchGFX_Process(); in the defaulTask for loop, but no success

HHarj.1
Associate III
January 27, 2020

Maybe you are not actually running it...when you debug you have to start it by pressing resume icon (or F8). The screen is white before you do. If that's not the case then there's something else wrong if you are not able to run the program.