2025-07-14 3:15 PM
Hello,
I'm currently working with the Nucleo-STM32H7S3L8 board and attempting to use the XIP_Template from its repository, which I've successfully cloned.
I opened the template folder in STM32CubeIDE via "Open projects from a file system," selecting the folder that contains the .xmproject file. Following the official guide, I tried to build the application project, but the debugger returned the following error:
No rule to make target '/Users/xxxxxxxxx/Desktop/STM32CubeH7RS/Drivers/STM32H7RSxx_HAL_Driver/Src/stm32h7rsxx_hal.c', needed by 'Drivers/STM32H7RSxx_HAL_Driver/stm32h7rsxx_hal.o'. Stop.
Additionally, when I attempt to build the boot project, I encounter more errors, such as:
../../../Boot/Inc/stm32_extmem_conf.h:47:10: fatal error: stm32h7rsxx_hal.h: No such file or directory | #include "stm32h7rsxx_hal.h
It appears that stm32h7rsxx_hal.h is not being found, even though it should be included. (I have attached a picture of the error.)
I have already performed the following troubleshooting steps:
Deleted and re-cloned the repository.
Cleaned, refreshed, and rebuilt both the application and boot projects multiple times without success.
Searched for similar problems online and tried every suggestion I could find, also without success.
I'm unable to find any further help on this topic, and the documentation, despite stating that this template is developed and successfully runs on the Nucleo-H7S3L8, does not address this recurring error. I am hoping for an expert answer or similar assistance on this matter.
Solved! Go to Solution.
2025-07-14 3:54 PM
Instead of "Open projects from a file system", try "File>Import>Existing Projects into Workspace" to see if that works.
Another alternative is to start a new dummy project with that board. STM32CubeIDE should install the repository on your computer. You can delete the dummy project once all the files are installed. I did it this way and the Application project compiles with no errors.
Then you can navigate to
C:\Users\<user>\STM32Cube\Repository\stm32cube_fw_h7rs_v120.zip\STM32Cube_FW_H7RS_V1.2.0\Projects\NUCLEO-H7S3L8\Templates\Template_XIP
2025-07-14 3:54 PM
Instead of "Open projects from a file system", try "File>Import>Existing Projects into Workspace" to see if that works.
Another alternative is to start a new dummy project with that board. STM32CubeIDE should install the repository on your computer. You can delete the dummy project once all the files are installed. I did it this way and the Application project compiles with no errors.
Then you can navigate to
C:\Users\<user>\STM32Cube\Repository\stm32cube_fw_h7rs_v120.zip\STM32Cube_FW_H7RS_V1.2.0\Projects\NUCLEO-H7S3L8\Templates\Template_XIP
2025-07-15 12:15 AM - edited 2025-07-15 12:16 AM
Hello @oalselwi ;
If you are downloading STM32Cube packages from GitHub, I recommend you referring to Downloading STM32Cube packages from GitHub correctly article.
Alternatively, you can download our packages directly from ST.com STM32Cube MCU & MPU Packages - Products - STMicroelectronics.
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.