2025-03-07 12:57 AM
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.
Solved! Go to Solution.
2025-03-10 7:19 AM
2025-03-11 2:34 AM
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?
2025-03-11 3:47 AM
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.
2025-03-11 4:36 AM - edited 2025-03-12 12:47 AM
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.
3- Enable DMA2D
4- Click on project manager and generate code:
5- Create a BSP folder in your project as shown in the below figure:
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
8- In STM32H735G-DK keep these files:
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:
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.
2025-03-11 8:22 AM
hi @KDJEM.1 , Here, I'm sending you the project. It gives me the same error, and I don't know why.
2025-03-12 1:01 AM
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.
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.
2025-03-12 1:58 AM - edited 2025-03-12 1:58 AM
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?
2025-03-12 2:18 AM
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.
When you start your project with STM32CubeMX, you can choose to start project from MCU or from board.
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.
2025-03-12 2:23 AM
@KDJEM.1 So it doesn't matter if I create the project from the board or the MCU, right?
2025-03-12 2:35 AM
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.
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.