2026-02-28 11:53 AM
Hi ,
I am creating an LCD test project for the STM32N6570-DK using STM32CubeMX and STM32CubeIDE.
I have started the cube mx project by selecting 'Access to board selector' menu from the cube mx. After enabling the LCD (LTDC) peripheral and generating the project, the build fails because required BSP files are missing in workspaces.
The error observed is:
fatal error: stm32n6570_discovery_conf.h: No such file or directory
#include "stm32n6570_discovery_conf.h"
The error is caused by:
#include "stm32n6570_discovery_conf.h"
#include "stm32n6570_discovery_lcd.h"
#include "stm32_lcd.h"
However, CubeMX does not generate or populate the required BSP LCD files and dependencies automatically. Fixing one missing file leads to additional LCD-related build errors, indicating incomplete code generation.
Please let me know solution for this other than copy in all the required files manually. I looking for solution related to stm cube mx.
2026-03-01 11:43 AM
Hello @RanjithRemasan
Which version of STM32CubeMX are you using? If you are using STM32CubeMX 6.17.0, could you please share your .ioc file so that I can check your configuration?
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-03-02 2:05 AM
Are you sure that the file is actually not Generated at all?
You would get the same messages if it was generated, but the CubeIDE project Include Paths were not correctly configured to find it ...
@RanjithRemasan wrote:CubeMX does not generate or populate the required BSP LCD files .
Did you check the option to include BSP support?