cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F767 TFT LCD LTDC RAM Problem

Ljunh.1
Associate II

Hello I'm just a beginner at STM32.

I'm going to use 800 x 480 TFT LCD this time.

First, I set LTDC to CUBEIDE like this.

0693W000008GF84QAG.jpg0693W000008GF7uQAG.jpgI'd like to check if only the color comes out with HAL_LTD_SetAddress.

When you attempt to use uint32_t frame_buffer [384000] as a global variable, an error appears stating that there is not enough RAM area.

In this case, do I have to use an additional external ram?

Or is there another way?

HAL_GPIO_WritePin(LCD_RESET_PORT, LCD_RESET, SET);

LCD_Init();

HAL_LTDC_SetAddress(&hltdc, (uint32_t) frame_buffer, 0);

for (i = 0; i < 384000; i++)

{

frame_buffer[i] = 0xF81F; // pink

}

Is the method of controlling TFT LCD with LTDC wrong?

I'm sorry that the sentence is not smooth using a translator.

0 REPLIES 0