Skip to main content
LNdungane
Associate II
September 30, 2021
Question

Displaying ADC Values on STM32F429-DISC1: Blank Screen

  • September 30, 2021
  • 6 replies
  • 7574 views

Greetings All

Firstly, I am a beginner when it comes to using STM32 microcontrollers. For my final-year project I intend to implement a GUI using my the abovementioned board to display ADC values. I followed the prompts of a video on YouTube where TouchGFX and STMCubeIDE are used. In place of STMCubeIDE, I used Keil.

The video uses one ADC input, whereas I need four. I built a code that compiles (attached). My problem is that I even after loading the code onto my board and pressing the reset button, the display is still blank (white). What could the underlying cause(s) of this be? Any assistance will be greatly appreciated as this is a pressing matter.

This topic has been closed for replies.

6 replies

Romain DIELEMAN
ST Employee
September 30, 2021

Hi,

Usually when you have a white display it means that you hit hardfault. Have you tried debugging and going step by step ?

What is the revision of your board ? From the project you shared I see revision D but i just want to be sure you chose the right one.

Were you able to display things before working with all the ADC inputs ?

/Romain

LNdungane
LNdunganeAuthor
Associate II
September 30, 2021

Greetings Romain

By Revision I am not too sure where to find this out. I chose the Discovery D01 board in TouchGFX. I have tried stepping - if I may ask what are the things I should look for during the stepping?

Lebohang

Romain DIELEMAN
ST Employee
October 1, 2021

Hi,

The revision of the board is usually written on a white sticker on your board. Look for something like this "MB1075-F429I-E01" (which would be D01 if you have revision D). For this specific board you can also tell on the color of the board :grinning_face_with_sweat: is it green or blue ? Green is revision D and blue is revision E.

When debugging try to see if it gets stuck in some task or hid hardfault at one point. Are you able to make touchgfx work without the ADC stuff ?

/Romain

Javier1
Principal
September 30, 2021

>What could the underlying cause(s) of this be?

0693W00000FB1ZYQA1.jpg

hit me up in https://www.linkedin.com/in/javiermuñoz/
Javier1
Principal
September 30, 2021

jokes aside

, are you familiar with the debugger tool?

place some breakpoints and read the adc yourself without the need of screen.

we need to know what tutorial are you following.

hit me up in https://www.linkedin.com/in/javiermuñoz/
LNdungane
LNdunganeAuthor
Associate II
September 30, 2021

:beaming_face_with_smiling_eyes: I am familiar with the debugger tool ( to an extent).

This is what I see regarding the registers:

Also, alluding to the tutorial I tried: https://www.youtube.com/watch?v=EbWOv_0Lp-U

LNdungane
LNdunganeAuthor
Associate II
September 30, 2021

Sorry about the image, here it is0693W00000FB2lfQAD.png

MM..1
Chief III
September 30, 2021

How you switch to Keil? Project is MX generated? Versions TGFX MX RTOS ?

And for simple you start with only show gui without an ADC. Create design and leave cpp files empty as generated.

LNdungane
LNdunganeAuthor
Associate II
September 30, 2021

The switch to Keil is from TouchGFX to STMCubeMX ​to initialise the peripherals, then I generate code for Keil. If I you are asking about the RTOS I'm using (I can't decipher your second question) I am using FREERTOS. Thank you for your suggestion. I will try it.

MM..1
Chief III
September 30, 2021

Decipher is how versions is every part software you used : TouchGFX 4.?? STMCubeMX 6.?? ...

LNdungane
LNdunganeAuthor
Associate II
October 1, 2021

Update: I have abandoned Keil for STM32CubeIDE. I am able to display my GUI without the ADC values implemented.

Visitor II
August 16, 2023

Hello,

  • If somebody find the solution for this issue ? Can you share your solution please ?

I am using :

  • CubeMx version 6.7
  • Cube IDE version 1.11.2
  • TouchGFX designer 4.21.3
  • STM32H745 DISC0 board

My first project without ADC was working well. I was able to display animation on the HMI. But since I added the ADC, the screen is blank. After debug, I can see the tasks are running well, even the TouchGFX task also is running. But the display is blank.