cancel
Showing results for 
Search instead for 
Did you mean: 

add drivers BSP for STM32H735G-DK

zaidmoha
Associate

I need to add the BSP libraries for the STM32H735G-DK board to enable display functionality. I have downloaded the STM32CubeH7 package and navigated to the Driver folder, where I selected my board and found the necessary BSP libraries.

However, when I open STM32CubeIDE, go to Project Properties → C/C++ General, and attempt to add the BSP folder path, the IDE does not recognize the libraries. Instead, I only see the _htmresc file within the folder. Normally, when I open the directory manually, the libraries are present, but they do not appear within the IDE.

20 REPLIES 20

paths.PNG

hello @KDJEM.1 , I added all the libraries, but it still doesn't work. How can I attach the project? Why does it say the maximum is 250MB?

hi @KDJEM.1 , I just noticed that if I go to the project file path through Project Explorer, then Properties, and add the path, I no longer see anything in BSP and Components.

KDJEM.1
ST Employee

Hello @zaidmoha,

 

You can compress your project on format .7Z and drag and drop to add your project.

 

I made some test and I'm able to add BSP drivers. Please follow these steps in the below to add BSP drivers:

1- Open STM32CubeMX, click on “access to board selector” and choose "STM32H735G-DK" board.

2- Click “yes” on initialize all peripherals with their default mode.

KDJEM1_0-1741690945746.png

3- Enable DMA2D

KDJEM1_1-1741690983022.png

4- Click on project manager and generate code:

KDJEM1_2-1741691073263.png

5- Create a BSP folder in your project as shown in the below figure:

KDJEM1_3-1741691226644.png

6- Copy Components and STM32H735G-DK folders from STM32Cube\Repository\STM32Cube_FW_H7_V1.12.1\Drivers\BSP to \BSP\Drivers\BSP 

7- In the Components folder keep these folders

KDJEM1_4-1741691418976.png

8- In STM32H735G-DK keep these files:

KDJEM1_5-1741691874614.png

9- Rename files

Old file name New file name Location 
ft6x06_conf_template.h ft6x06_conf.h \BSP\Drivers\BSP\Components\ft6x06
ft5336_conf_template.h ft5336_conf.h \BSP\Drivers\BSP\Components\ft5336
gt911_conf_template.h gt911_conf.h \BSP\Drivers\BSP\Components\gt911
mx25lm51245g_conf_template.h mx25lm51245g_conf.h \BSP\Drivers\BSP\Components\mx25lm51245g
s70kl1281_conf_template.h s70kl1281_conf.h \BSP\Drivers\BSP\Components\s70kl1281
stm32h735g_discovery_conf_template.h stm32h735g_discovery_conf.h

\BSP\Drivers\BSP\STM32H735G-DK

10- Open mx25lm51245g_conf.h file under \BSP\Drivers\BSP\Components\mx25lm51245g and add:

 

 

#define CONF_OSPI_DUMMY_CYCLES    MX25LM51245G_CR2_DC_6_CYCLES

 

 

11- Open mx25lm51245g_conf.h file under \BSP\Drivers\BSP\Components\mx25lm51245g and change:

 

 

#include "stm32xxxx_hal.h

 

 

 By

 

 

#include "stm32h7xx_hal.h"

 

 

12-  Open s70kl1281_conf.h file under \BSP\Drivers\BSP\Components\s70kl1281 folder and change:

 

 

#include "stm32xxxx_hal.h

 

 

By

 

 

#include "stm32h7xx_hal.h"

 

 

13- Add these paths as shown in the below figure:

KDJEM1_6-1741692638816.png

You can find my project test in the attachment.

Thank you.

Kaouthar

 

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.

hi @KDJEM.1 , Here, I'm sending you the project. It gives me the same error, and I don't know why.

KDJEM.1
ST Employee

Hello @zaidmoha;

 

For you project bsp32, I tested and you missed step4 "generate code" after enabling DMA2D.

Also for step 8, you forgot to keep "stm32h735g_discovery_errno.h" and "stm32h735g_discovery_conf_template.h" 

For step9, you messed to change the name file "stm32h735g_discovery_conf_template.h" to "stm32h735g_discovery_conf.h" 

Please use the same format for include path shared in step 13. it is recommended to use “/” and not the “\” in the paths.

I've corrected your project and you can find it the attachment.

KDJEM1_0-1741766061327.png

Are you testing my BSP project? I think it is working well and the steps for including BSP drivers are all detailed.

Thank you for your contribution in STCommunity.

Please click on Accept as Solution on the reply which solved your issue or answered your question.

 

Kaouthar

 

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.

Thank you very much @KDJEM.1 , it's perfect! Now it's working without errors using your project. But if I wanted to write my own code, how should I do it? Will I always have to create a project with the board and not with the microcontroller?

KDJEM.1
ST Employee

Hello @zaidmoha

 

Glad to know that your issue is solved. For that, please click on Accept as Solution on the reply which solved your issue.

If you want to add your own code, you can do so in the main.c and main.h files.

My shared project uses the STM32H735G-DK board where STM32H735IGKx MCU is mounted. 

KDJEM1_0-1741770748393.png

When you start your project with STM32CubeMX, you can choose to start project from MCU or from board.

KDJEM1_1-1741770846105.png

 

If you have any other question please create a new post.

 

Thank you.

Kaouthar

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.

@KDJEM.1 So it doesn't matter if I create the project from the board or the MCU, right?

KDJEM.1
ST Employee

Hi @zaidmoha,

 

Yes, but if you use a board it’s recommended to create your project from the board.

This allows you to benefit from configurations that have already been initialized by default, such as the LTDC with the STM32H735G-DK board.

KDJEM1_0-1741772007463.png

 

Thank you for your contribution in STCommunity.

Kaouthar

 

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.