2020-05-24 01:17 AM
Hello,
i used the STM32CubeIDE Version: 1.1.0 with TouchGFX designer 4.12.3 to build a project for the F746G-Disco. Everything worked fine, i was able to display animations etc.
Then, i made the changes to my custom board (based on Disco schematics) to use a 5 Inches (800x480) TFT and i was able to display some boxes/images but when i tried to display some animated images, the animation was not working (seems frozen).
The Touch panel is not configured yet, due to different driver than Disco.
Could this be a hardware issue? I am attaching the screen datasheet and the project, in case someone could help.
Project:
https://drive.google.com/file/d/1ibuGvqsCGqzeZYnflSGMnCdHznQdUkfN/view?usp=sharing
Small video:
https://www.youtube.com/watch?v=aE4VB7f4UFw
Solved! Go to Solution.
2020-06-02 09:35 PM
I am afraid that with a display 800x480 you would need a 32-bit
hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16;
You can dump the LTDC/DMA2D registers to tell what's going on.
You can as well slow down the pixel clock to the lowest possible value. Not sure what the actual value is.
AN4861 table 12 says that with SVGA and 24bit you would need 32-bit SDRAM:
With regards,
Badreddine
2020-05-24 03:09 AM
Hi,
Not an Enough idea..But A hint is
Do you use single or double RAM buffer in both the boards are identical?
--
Karan
2020-05-24 05:34 AM
Tried both options, discovery can work with single or double. My board can not work with any option of RAM buffer
2020-05-24 07:09 AM
If i switch to RGB565, then everything is working.
I can not understand what is happening when i set RGB888, could be hardware limitation?
2020-05-24 11:01 AM
Hi,
Which SRAM IC you are using?
Do you calculate the Frame Buffer?
(Double Buffering for animation)
There may be certain things mismatch according to your hardware.
--
Karan
2020-05-24 11:38 AM
Which SRAM IC you are using?
It's the MT48LC4M32B2B5-6A XIT:L TR. Same like Discovery's [Revision B-02]
Do you calculate the Frame Buffer?
For RGB888: 800*480*3bytes*2 = about 2.2 MBytes and my external RAM is 128Mbit or 16Mbytes
I hope i am not wrong
2020-05-25 10:56 AM
Calculations are correct..
I think you need to change address in terms of you display resolution in STMCube IDE.
--
Karan
2020-05-25 02:23 PM
I am not sure what could a valid address.
2020-05-25 02:25 PM
Ok...
Which address is currently fillled in SRAM Settings in STM32CubeMX?
--
Karan
2020-05-25 11:11 PM