cancel
Showing results for 
Search instead for 
Did you mean: 

Animated image issue on custom board with 5' TFT

SKokk.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

 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:

https://www.st.com/resource/en/application_note/dm00287603-lcdtft-display-controller-ltdc-on-stm32-mcus-stmicroelectronics.pdf

With regards,

Badreddine

  

  

View solution in original post

27 REPLIES 27
Karan 123
Senior

Hi​,

​​Not an Enough idea..But A hint is

Do you use single or double RAM buffer in both the boards are identical?

--

Karan​

Tried both options, discovery can work with single or double. My board can not work with any option of RAM buffer

SKokk.1
Associate II

If i switch to RGB565, then everything is working.

I can not understand what is happening when i set RGB888, could be hardware limitation?

Karan 123
Senior

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​

SKokk.1
Associate II

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

Calculations are correct..

I think you need to change address in terms of you display resolution in STMCube IDE.

--

​​Karan

I am not sure what could a valid address.

Ok...

Which address is currently fillled in SRAM Settings in STM32CubeMX?

--

Karan​

0xC0000000

0693W000001pQLkQAM.png

I am attaching the .ioc file too