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.

1 ACCEPTED SOLUTION

Accepted Solutions
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.

View solution in original post

20 REPLIES 20
KDJEM.1
ST Employee

Hello @zaidmoha and welcome to the community;

 

I recommend you to look at this FAQ: How to add a BSP to an STM32CubeIDE project

STMicroelectronics offers BSPs (Board Support Packages) for all STM32 Evaluation and Nucleo boards as well as Discovery Kits. In this article we will see how to add a BSP to your STM32CubeIDE project. 

 

I hope this help you.

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.

Thank you for your response, much appreciated @KDJEM.1 . I have followed the steps as described in the article, but I am still unable to get it to work. Could you provide me with the correct download link for the BSP of my STM32H735G-DK board? The package I downloaded, cubeh7, does not contain the Inc and Src folders.

KDJEM.1
ST Employee

Hello @zaidmoha;

 

You can download the STM32CubeH7 via STM32CubeH7/Projects at master · STMicroelectronics/STM32CubeH7 · GitHub.

In the STM32CubeH7 directory go to the Drivers directory to find the BSP

KDJEM1_0-1741354942406.png

Now copy this directory and paste it into the Drivers folder of your Project in the other window.

Delete the rest of the folder and keep only "Components" and "STM32H735G-DK" ones which are relative to the STM32H735G-DK board.

Now go to the Components directory and keep only the folder used in your project.

For example if you need to use only the LCD you need to keep in the Components folder only "Common" Folder and keep only the LCD drivers.

KDJEM1_1-1741356225774.png

In the STM32H735G-DK, For display example, you can keep needs files as we won't use all of the features of the board.

KDJEM1_2-1741356449306.png

You can get inspired from BSP example in STM32CubeH7 package under this path "STM32Cube\Repository\STM32Cube_FW_H7_V1.12.1\Projects\STM32H735G-DK\Examples\BSP"

 

KDJEM1_3-1741356625700.png

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 , Is it normal that when I download the master ZIP file and navigate to drivers - BSP - STM32H735G-DK, the folder appears empty? However, when I check online, I see that the libraries should be inside.

KDJEM.1
ST Employee

Hello @zaidmoha,

Could you please refer to this FAQ to download STM32Cube packages from GitHub correctly: Downloading STM32Cube packages from GitHub correctly - STMicroelectronics Community.

Also you can download the STM32CubeH7 from STM32CubeMX or from here.

KDJEM1_0-1741593388683.png

KDJEM1_1-1741593441438.png

 

 

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.

Hello @KDJEM.1 , I really appreciate your availability, but i checked, and it shows me that the packages are already installed.stm32.PNG

KDJEM.1
ST Employee

Hello @zaidmoha,

 

Thank you for updating this post and glad to know that the STM32CubeH7 is already installed.

Now, I recommend you to refer to my replies and the steps shared in my comments to add the BSP drivers.

If you get any build error, please don't hesitate to share the error and your project.

 

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.

cube.PNG

KDJEM.1
ST Employee

Hello @zaidmoha;

 

Please share your project, as I mentioned in my latest reply.

Make sure that you add the include paths for BSP drivers. 

KDJEM1_0-1741607455774.png

 

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.