Author Topic: STM32H743ZIT6 LTDC not working  (Read 536 times)

0 Members and 1 Guest are viewing this topic.

Offline seyedsaeedTopic starter

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ir
STM32H743ZIT6 LTDC not working
« on: September 01, 2024, 05:55:09 am »
hello
I am using Stm32h743zit6 for LTDC.
LTDC does not fetch sdram for display.
LTDC shows only the background.
sdram is tested and correct.

xtal = 16Mhz
CPU clock= 400Mhz
SDRAM = 110Mhz
LTDC = 40Mhz
 

Online pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4297
  • Country: nl
Re: STM32H743ZIT6 LTDC not working
« Reply #1 on: September 01, 2024, 06:09:40 am »
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.

Offline seyedsaeedTopic starter

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ir
Re: STM32H743ZIT6 LTDC not working
« Reply #2 on: September 01, 2024, 06:29:55 am »
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.

 

Offline seyedsaeedTopic starter

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ir
Re: STM32H743ZIT6 LTDC not working
« Reply #3 on: September 01, 2024, 06:40:56 am »
I upload two file.
first file : Src folder
seconde file : stm32cubeMX
 

Online pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4297
  • Country: nl
Re: STM32H743ZIT6 LTDC not working
« Reply #4 on: September 01, 2024, 07:39:31 am »
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.

Offline seyedsaeedTopic starter

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ir
Re: STM32H743ZIT6 LTDC not working
« Reply #5 on: September 01, 2024, 07:53:31 am »
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.

The display works because the LTDC background color can be changed.

This project works with stm32f429
GPIOs stm32f492 compatible with stm32h743zit6
 

Offline seyedsaeedTopic starter

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ir
Re: STM32H743ZIT6 LTDC not working
« Reply #6 on: September 01, 2024, 08:28:55 am »
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.

The display works because the LTDC background color can be changed.

This project works with stm32f429
GPIOs stm32f492 compatible with stm32h743zit6

there is Schmatic


 

Online pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4297
  • Country: nl
Re: STM32H743ZIT6 LTDC not working
« Reply #7 on: September 01, 2024, 10:39:28 am »
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.

Offline seyedsaeedTopic starter

  • Regular Contributor
  • *
  • Posts: 58
  • Country: ir
Re: STM32H743ZIT6 LTDC not working
« Reply #8 on: September 01, 2024, 10:54:48 am »
I found the problem and solved it
Now:
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;

 
The following users thanked this post: pcprogrammer


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf