STM32H743ZIT6 LTDC not working - Page 1
Forum section: electronics / general

author: seyedsaeed
author_rank: Regular Contributor
timestamp: September 01, 2024, 05:55:09 am
content: helloI am using Stm32h743zit6 for LTDC.LTDC does not fetch sdram for display.LTDC shows only the background.sdram is tested and correct.xtal = 16MhzCPU clock= 400MhzSDRAM = 110MhzLTDC = 40Mhz

author: pcprogrammer
author_rank: Super Contributor
timestamp: September 01, 2024, 06:09:40 am
content: You will get better responses when you add some more information, like schematics, pictures of your setup, source code, basically anything one can think of that is useful in doing fault finding.

author: seyedsaeed
author_rank: Regular Contributor
timestamp: September 01, 2024, 06:29:55 am
content: Quote from: pcprogrammer on September 01, 2024, 06:09:40 am

author: seyedsaeed
author_rank: Regular Contributor
timestamp: September 01, 2024, 06:40:56 am
content: I upload two file.first file : Src folderseconde file : stm32cubeMX

author: pcprogrammer
author_rank: Super Contributor
timestamp: September 01, 2024, 07:39:31 am
content: The source alone is not to helpful with it being basically generated by cubeidx.Does the display work at all? Or is it just the backlight that you see?Where is the schematic?Post a picture of the hardware.

author: seyedsaeed
author_rank: Regular Contributor
timestamp: September 01, 2024, 07:53:31 am
content: Quote from: pcprogrammer on September 01, 2024, 07:39:31 amThe display works because the LTDC background color can be changed.This project works with stm32f429GPIOs stm32f492 compatible with stm32h743zit6

author: seyedsaeed
author_rank: Regular Contributor
timestamp: September 01, 2024, 08:28:55 am
content: Quote from: seyedsaeed on September 01, 2024, 07:53:31 amthere is Schmatic

author: pcprogrammer
author_rank: Super Contributor
timestamp: September 01, 2024, 10:39:28 am
content: Thanks for posting the schematic.It is clear now that you are driving a VGA monitor with it.I'm not a user of the stm32cubeide myself and don't like the whole HAL implementation, so not much help there.But can you describe what you have done to test the different parts of the system. Like how did you test the memory on working. How do you change the background color on the display?Have you studied the reference manual on what kind of settings are needed for the LTDC peripheral, etc.In these cases it is important to know what a peripheral can do for you and how it needs to be setup.

author: seyedsaeed
author_rank: Regular Contributor
timestamp: September 01, 2024, 10:54:48 am
content: I found the problem and solved itNow:pLayerCfg.WindowX0 = 0;pLayerCfg.WindowX1 = 800;pLayerCfg.WindowY0 = 0;pLayerCfg.WindowY1 = 600;pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;pLayerCfg.Alpha = 255;********pLayerCfg.Alpha0 = 0;pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_CA;pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_CA;pLayerCfg.FBStartAdress = 0;pLayerCfg.ImageWidth = 800;pLayerCfg.ImageHeight = 600;pLayerCfg.Backcolor.Blue = 0;pLayerCfg.Backcolor.Green = 0;pLayerCfg.Backcolor.Red = 0;Before :pLayerCfg.WindowX0 = 0;pLayerCfg.WindowX1 = 800;pLayerCfg.WindowY0 = 0;pLayerCfg.WindowY1 = 600;pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;pLayerCfg.Alpha = 0;*********pLayerCfg.Alpha0 = 0;pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_CA;pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_CA;pLayerCfg.FBStartAdress = 0;pLayerCfg.ImageWidth = 800;pLayerCfg.ImageHeight = 600;pLayerCfg.Backcolor.Blue = 0;pLayerCfg.Backcolor.Green = 0;pLayerCfg.Backcolor.Red = 0;