2021-09-30 02:14 AM
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.
2021-09-30 02:45 AM
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
2021-09-30 02:46 AM
>What could the underlying cause(s) of this be?
2021-09-30 02:47 AM
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.
2021-09-30 04:49 AM
: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
2021-09-30 04:50 AM
Sorry about the image, here it is
2021-09-30 07:22 AM
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
2021-09-30 10:05 AM
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.
2021-09-30 10:33 AM
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.
2021-09-30 10:51 AM
Decipher is how versions is every part software you used : TouchGFX 4.?? STMCubeMX 6.?? ...