2023-09-25 08:36 PM
Hi all,
I am working on a project that involves the STM32F429I-DISC1 (The blue one) with TouchGFX. I am trying to control two on screen buttons labeled ON and OFF that turn on pin G13 on the microcontroller board. I first used TouchGFX to create the screen elements, then I used CubeMX to make GPIOG Pin 13 an output, then I use CubeIDE to add in code. When I add in the required code and run the debugger (green play button) I end up getting a white screen on the LCD. I am not sure what I am doing wrong. I have attached pictures and the code that I added in. Any help is appreciated. I am also following this tutorial: https://www.youtube.com/watch?v=hrx6iqOaGvY&t=613s
mainView.cpp:
mainView.hpp:
#ifndef MAINVIEW_HPP
#define MAINVIEW_HPP
#include <gui_generated/main_screen/mainViewBase.hpp>
#include <gui/main_screen/mainPresenter.hpp>
class mainView : public mainViewBase
{
public:
mainView();
virtual ~mainView() {}
virtual void setupScreen();
virtual void tearDownScreen();
virtual void LED_ON();
virtual void LED_OFF();
protected:
};
#endif // MAINVIEW_HPP
2023-09-26 12:49 AM
Hello @HectorV,
There are several points to check:
Make sure that you are using USB cables for communicate data (not just for charging).
Check Idd jumper. Check DRAM initialization/configuration.
Have you enabled LTDC global interrupt and IRQ?
Imen.
2023-09-26 09:43 AM
Thank you for the reply. I am new to STM32 so there is still a lot of stuff I don't know about so please bear with me. Here is what I have. I have tried two different usb cables and I get the same white screen. By the way, the demos on touchGFX work on my board. Please let me know if you see anything wrong on my options. I have attached pictures below.
2023-09-26 09:54 AM
Your ide steps 1.TGFX 2.CubeMX is as idea ok , but most time dont work. Using MX over TGFX projects corrupt allmost func. I mean after create TGFX your display work and buttons LED ON OFF is showed ok?
2023-09-26 10:34 AM
When I first created the TouchGFX and connected it to my board via the run target button, my project did show on my board. Now when I try to do that the screen is white. I think like you said by using MX it corrupted my project. So how would I be able to do my project? I am trying to create two buttons with TouchGFX, labled LED ON and LED OFF. By pushing LED ON the user led PIN G13 turns on and by pressing LED OFF the user led PIN G13 turns off. How do you recommend I go about this?
2023-09-27 07:43 AM
Exist two ways: 1. Backup working TGFX project before use MX to config somethink and after generate code compare and analyse what is corrupted.
2. Real work method for any custom board or project , start project clean from MX or IDE not from TGFX. TGFX is added as software component and need configure and manage .... This projects can be reconfigured in MX...
2023-09-28 09:45 PM
Thank you. I will try this.