Skip to main content
Associate II
February 28, 2026
Question

STM32N6570-DK – CubeMX not generating required LCD BSP files causing LTDC build errors

  • February 28, 2026
  • 2 replies
  • 267 views

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.

2 replies

Ghofrane GSOURI
Technical Moderator
March 1, 2026

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.
Andrew Neil
Super User
March 2, 2026

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?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.