2025-11-19 11:03 PM
The board I'm using is STM32H747I-DISCO, and the tool I installed is STM32CubeIDE 1.19.0.
I want to build a static library based on it.
Therefore, I run the following steps to create the library.
File -> New -> STM32 Project
At this time, I got the following WARNING meesage.
Does anyone know how to solve this issue?
I tried to build the generated project using the following actions.
And then, I got the following errors.
However, this file already exists, as shown in the image below.
Did I make any mistakes in the steps I took to create the library? And how can I resolve these issues?
Solved! Go to Solution.
2025-11-21 2:23 AM
Hello @jovewu
To resolve this issue , please follow those steps :
- Open the two files : stm32h7xx_hal_conf.h. and stm32h7xx_hal.h
- Right click on the stm32h7xx_hal.h then select show in option then System Explorer
This will open the path where the file is placed , copy the path
- Right click on the CM4 project --> Properties -->C/C++ Build -->Settings -->MCU/MPU GCC compiler -->include paths : add the copied path --> Apply and close
- Do the same thing for the stm32h7xx_hal_conf.h
- Redo the work for your CM7 project
Then build your two projects : will get 0 Errors 0 warnings
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.
2025-11-19 11:22 PM
Hello @jovewu
I'm currently checking this behavior. I will get back to you asap.
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.
2025-11-21 2:23 AM
Hello @jovewu
To resolve this issue , please follow those steps :
- Open the two files : stm32h7xx_hal_conf.h. and stm32h7xx_hal.h
- Right click on the stm32h7xx_hal.h then select show in option then System Explorer
This will open the path where the file is placed , copy the path
- Right click on the CM4 project --> Properties -->C/C++ Build -->Settings -->MCU/MPU GCC compiler -->include paths : add the copied path --> Apply and close
- Do the same thing for the stm32h7xx_hal_conf.h
- Redo the work for your CM7 project
Then build your two projects : will get 0 Errors 0 warnings
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.
2025-11-21 4:31 AM
Hello Ghofrane,
Yes, this solution is feasible.
THX
JoveWu