2021-02-15 11:58 PM
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.
I'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.