LTDC Include Error - Help Requested

Description

I’m trying to get the LTDC driver up and running for my STM chip, however any time I try building I get the following error (sourced from lv_st_ltdc.c) lv_st_ltdc.c:16:10: fatal error: ltdc.h: No such file or directory. I’ve searched the project, and sure enough, I’m not finding any such file. What am I missing here?

What MCU/Processor/Board and compiler are you using?

STM32F767ZI - STM32CubeIDE

What do you want to achieve?

A functioning driver for use with LTDC

What have you tried so far?

Forum searches, reading through documentation, building a fresh project, confirming that the STM LTDC driver file is present

Code to reproduce

Compiling after enabling #define LV_USE_ST_LTDC 1

Screenshot and/or video

Hi,

I have the exact same issue as well. It is probably a work in progress. Thats why its currently not working. Did you find a workaround?

Best regards

That version of the driver required the setting Generate peripheral initialization as a pair of ‘.c/.h’ files per peripheral to be enabled when generating the code, so that ltdc.h is generated, which basically just includes:

#include "main.h"
extern LTDC_HandleTypeDef hltdc;

And that Register Callback for the LTDC peripheral is also ENABLED when generating.
The requirement to generate seperate .h/.c files is now lifted: fix(drivers): fix compile error for st ltdc by hellototoro · Pull Request #8704 · lvgl/lvgl · GitHub