cancel
Showing results for 
Search instead for 
Did you mean: 

How to correctly set up STM32N6570-DK project with BSP drivers?

Bjorn1
Associate

Hi all,

I'm trying to create a new STM32CubeIDE project for the STM32N6570-DK board and use the BSP drivers. For now I'm just trying to do something simple like display camera output on the onboard LCD (or something simpler like displaying text on lcd). I’ve already added the driver files and their dependencies to my project. For the conf template files, I just renamed them without changing content.

To get the project to build without errors, I had to manually uncomment the following in stm32n6xx_hal_conf.h:

#define HAL_DMA2D_MODULE_ENABLED
#define HAL_LTDC_MODULE_ENABLED

Now, I’m following the initialization sequence from the STM32CubeN6-v1.2.0 example projects and calling the following in main.c:

BSP_LCD_Init(0, LCD_ORIENTATION_LANDSCAPE);
UTIL_LCD_SetFuncDriver(&LCD_Driver);
UTIL_LCD_SetFont(&UTIL_LCD_DEFAULT_FONT);
UTIL_LCD_SetBackColor(UTIL_LCD_COLOR_WHITE);
UTIL_LCD_Clear(UTIL_LCD_COLOR_WHITE);

These functions do not return errors, and I can step over them in debug mode, but the LCD shows nothing.
Is there something I'm missing in the configuration or initialization sequence?
Also, is there a step-by-step guide or official documentation on how to properly integrate the LCD and camera BSP drivers into a new project?

Any help or reference would be greatly appreciated.

Thanks!

3 REPLIES 3
Mahmoud Ben Romdhane
ST Employee

Hello @Bjorn1 ,

 

Let me thank you for posting and welcome to the ST Community.

I suggest that you take a look at this use the LCD screen of the STM32N6570DK - STMicroelectronics Community

It highlights how to use the LCD with STM32N6570-DK.

 

Thanks.

Mahmoud

 

 

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.

Imen.D
ST Employee

Hi @Bjorn1 ,

Verify the LCD if it is properly connected to the board and that there is no hardware issue.

Check also the display resolution of the LCD:

Introduction to LCD-TFT display controller (LTDC) on STM32 MCUs - Application note.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Hi Mahmoud,
I’ve had a look at this, but unfortunately I’m still not able to get the LCD to perform even basic functions.
I’ve tried both the default and non-default peripheral setups, but I’m not sure how to proceed from here. Would you be able to guide me through the process? It would be greatly appreciated. 
I have done the following:
  1. Use board selector to create project on STM Cube IDE
  2. Included the BSP library paths 
  3. Added the code, similarly to BSP example.
I get the screen to switch on when calling BSP_LCD_Init but no further response. I can share my project?
Kind regards,
Bjorn