2020-01-12 08:56 AM
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:
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?
Solved! Go to Solution.
2020-01-22 05:40 AM
yes , it gets called , it seems the code always ends up in the hardfault handler .
2020-01-22 05:40 AM
okay, so it's using internal ram, which should work. Can you inspect that framebuffer array, then ? Does it contain anything - Did you actually render something to the memory (which should then be transferred to display, depending on your setup).
/Martin
2020-01-22 05:57 AM
Hi Martin, The SDRAM configuration was generated from the 429-DISC1 template. I dont see anywhere in this thread where the issue was fixed by reconfiguring SDRAM. I only see where CRamm.1 found that TouchGFX was hammering code. How do I fix the configuration?
regards,
John
2020-01-24 08:53 AM
2020-01-24 12:25 PM
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?
2020-01-24 02:02 PM
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.
2020-01-25 10:02 AM
Hi @Cody , thanks for your F429_Test, but unfortunately I get "white screen" till now. I downloaded, added a simple Touch GUI, compiled with no simulator folder and I get no compile errors. I start the debug but white screen again
2020-01-27 04:30 AM
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.
2020-01-27 05:23 AM
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
2020-01-27 06:15 AM
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.