Skip to main content
Associate III
August 27, 2024
Question

Can't display the white background on STM32F423ZHT6.

  • August 27, 2024
  • 1 reply
  • 793 views

I'm using NHD-2-8-240320AF-CSXP-FCTP display. I try to get a white background on my LCD panel. However, it isn't operating. To interface with an LCD, I use FSMC.

 

Meenakshi_0-1724739294225.png

Where I made mistake. Please any one help me

1 reply

Technical Moderator
August 29, 2024

Hello @Meenakshi 

Could you please provide more details on your issue?

Do you have as result incorrect colors or partial display?

I advise you check that the display settings are correct as this can lead the display issues.

Ensure that the LCD initialization code is correctly implemented and verify the pixel resolution.

You can refer to application notes such as AN4861, which describes the LCD-TFT display controller (LTDC) on STM32 MCUs. This document provides hardware and pin configurations and application examples.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
MeenakshiAuthor
Associate III
August 30, 2024

Thanks for your reply @Imen.D 

STM32F423ZHT6 lacks an LTDC controller and . How to use it?

1. Could you please provide more details on your issue?

I don't know how to access the display via STM32CubeIDE. Please provide any example code to access the display panel where I put LCD initialization code. 

I refer this YouTube video: https://youtu.be/SRQD8JMeg_k?si=bGmAo4KQ7zLAYZx5

This video displays an external load checkbox while he debugs the project. But this isn't displayed in my project.

Meenakshi_6-1725002397885.png

 

This my pinout & Config

Meenakshi_0-1724993282622.png

Meenakshi_1-1724993317915.pngMeenakshi_2-1724993350446.png

 

In STM32CubeIDE -> .ioc file -> X-CUBE-TOUCHGFX -> Display -> Buffer location- By Address and Start address-I put 0x20000000. This is a SRAM1 memory. This is correct or not. If not means what I choose.

Meenakshi_5-1725002166699.png

 

Can you help me which file I should insert this specific LCD init code?

Regards,

Mee