2025-09-06 4:03 AM - last edited on 2025-09-06 6:40 AM by mƎALLEm
Split from this thread.
Hi,
I am glad that you have been successful with dumping the extMem_boot to the STM32H750B-DK. I am trying to do the same thing, would you please be so kind and let me know, how did you do that within the CubeIDE ?
Any info is much appreciated.
Best,
Miha
PS sorry for my ignorance, if this is written withing the FW files.
Solved! Go to Solution.
2025-09-08 2:29 AM - edited 2025-09-08 2:29 AM
How did you download the Cube package? from github? if yes did you clone recursively the repository?
Please read this article: Downloading STM32Cube packages from GitHub correctly
Otherwise you can download the complete package directly from this link: STM32CubeH7
2025-09-06 4:09 AM
Hi Shirley,
I have a feeling you may know how to help me.
I am new to this... please let me know how to flash the extmem_boot (that can be found in the FW files templates folder) to the STM32H750B-DK ?
Thank you in advance!
Best.
2025-09-06 6:35 AM - edited 2025-09-06 6:36 AM
Hello,
As this thread has been closed and this is a new question. The thread will be splitted.
Regarsing your question:
@total_and_STM32 wrote:
how to flash the extmem_boot (that can be found in the FW files templates folder) to the STM32H750B-DK ?
You need to compile the project with one of the available IDE: IAR (EWARM), KEIL (MDK-ARM) or STM32CubeIDE, then upload the program to your MCU. After, you can upload any example from the folder Examples: STM32CubeH7/tree/master/Projects/STM32H750B-DK/Examples
Hope that helps
2025-09-08 2:09 AM
Hi and thank you for the reply.
I have opened the ExtMem_Boot project within the CudeIDE. Set the build configurations to make the *.hex file, looking to flash via the Cube Programmer.
Went on on the project with the mouse pointer and clicked the right knob and selected:
- clean project, no errors ok, continuing with the build, but build failed, get 9 errors, 11:04:28
Build Failed. 9 errors, 0 warnings. (took 575ms) , attaching the console output ...
Any idea how to fix this?
Best.
11:04:27 **** Build of configuration Debug for project ExtMem_Boot ****
make -j4 all
arm-none-eabi-gcc "C:/_AIR/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DSTM32H750xx -DUSE_HAL_DRIVER -DUSE_PWR_LDO_SUPPLY -DUSE_PWR_LDO_SUPPLY -c -I../../Inc -I../../../../../../Drivers/CMSIS/Include -I../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../../../../Drivers/BSP/STM32H750B-DK -I../../../../../../Drivers/BSP/Components -I../../../../../../Utilities -I../../../../../../Utilities/Fonts -I../../../../../../Middlewares/Third_Party/FatFs/src -I../../../../../../Middlewares/Third_Party/FatFs/src/drivers -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.o"
arm-none-eabi-gcc "C:/_AIR/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DSTM32H750xx -DUSE_HAL_DRIVER -DUSE_PWR_LDO_SUPPLY -DUSE_PWR_LDO_SUPPLY -c -I../../Inc -I../../../../../../Drivers/CMSIS/Include -I../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../../../../Drivers/BSP/STM32H750B-DK -I../../../../../../Drivers/BSP/Components -I../../../../../../Utilities -I../../../../../../Utilities/Fonts -I../../../../../../Middlewares/Third_Party/FatFs/src -I../../../../../../Middlewares/Third_Party/FatFs/src/drivers -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_adc.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_adc.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_adc.o"
arm-none-eabi-gcc "C:/_AIR/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc_ex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DSTM32H750xx -DUSE_HAL_DRIVER -DUSE_PWR_LDO_SUPPLY -DUSE_PWR_LDO_SUPPLY -c -I../../Inc -I../../../../../../Drivers/CMSIS/Include -I../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../../../../Drivers/BSP/STM32H750B-DK -I../../../../../../Drivers/BSP/Components -I../../../../../../Utilities -I../../../../../../Utilities/Fonts -I../../../../../../Middlewares/Third_Party/FatFs/src -I../../../../../../Middlewares/Third_Party/FatFs/src/drivers -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_adc_ex.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_adc_ex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_adc_ex.o"
arm-none-eabi-gcc "C:/_AIR/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DSTM32H750xx -DUSE_HAL_DRIVER -DUSE_PWR_LDO_SUPPLY -DUSE_PWR_LDO_SUPPLY -c -I../../Inc -I../../../../../../Drivers/CMSIS/Include -I../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../../../../Drivers/BSP/STM32H750B-DK -I../../../../../../Drivers/BSP/Components -I../../../../../../Utilities -I../../../../../../Utilities/Fonts -I../../../../../../Middlewares/Third_Party/FatFs/src -I../../../../../../Middlewares/Third_Party/FatFs/src/drivers -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.o"
In file included from ../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:130,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27,
from ../../Inc/stm32h7xx_hal_conf.h:198,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29,
from C:/_AIR/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c:298:
../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h750xx.h:224:10: fatal error: core_cm7.h: No such file or directory
224 | #include "core_cm7.h" /*!< Cortex-M7 processor and core peripherals */
| ^~~~~~~~~~~~
In file included from ../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:130,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27,
from ../../Inc/stm32h7xx_hal_conf.h:198,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29,
from C:/_AIR/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:36:
../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h750xx.h:224:10: fatal error: core_cm7.h: No such file or directory
224 | #include "core_cm7.h" /*!< Cortex-M7 processor and core peripherals */
| ^~~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from ../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:130,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27,
from ../../Inc/stm32h7xx_hal_conf.h:198,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29,
from C:/_AIR/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc_ex.c:33:
../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h750xx.h:224:10: fatal error: core_cm7.h: No such file or directory
224 | #include "core_cm7.h" /*!< Cortex-M7 processor and core peripherals */
| ^~~~~~~~~~~~
make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:130: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:132: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_adc.o] Error 1
compilation terminated.
make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:134: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_adc_ex.o] Error 1
In file included from ../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:130,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27,
from ../../Inc/stm32h7xx_hal_conf.h:198,
from ../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29,
from C:/_AIR/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:82:
../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h750xx.h:224:10: fatal error: core_cm7.h: No such file or directory
224 | #include "core_cm7.h" /*!< Cortex-M7 processor and core peripherals */
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:136: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.o] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
11:04:28 Build Failed. 9 errors, 0 warnings. (took 575ms)
2025-09-08 2:29 AM - edited 2025-09-08 2:29 AM
How did you download the Cube package? from github? if yes did you clone recursively the repository?
Please read this article: Downloading STM32Cube packages from GitHub correctly
Otherwise you can download the complete package directly from this link: STM32CubeH7
2025-09-08 2:33 AM
Thanks for quick reply. The CUBE package was downloaded from the STM web page, however, I am not sure, if the patch file is overwritten or how is that path used? For example. both files were downloaded and the patch was overwritten, is that the correct way? I guess the gitHub would be easier ?
Best.
2025-09-08 4:26 AM - last edited on 2025-09-08 4:34 AM by mƎALLEm
Question moved from this knowledge base: Downloading STM32Cube packages from GitHub correctly
Totally agree, I am still having issues with downloading in a simple way the github repository, for example, git clone --recursive https://github.com/STMicroelectronics/STM32Cube1234.git a nice way, it seems I am missing certain files, because even ST's example project cannot be downloaded to the boards... any comments, what gith hub to use to download the latest FW for H7 would be really helpful if not minimally required to get going... sorry of ignorance, if I have missed something here :\
best.
2025-09-08 4:32 AM - edited 2025-09-08 4:36 AM
With ST web page, download the cube package and overwrite the files needed to be updated with the patch.
To download the H7 Cube package from the github you need to clone it with the following command:
git clone --recursive https://github.com/STMicroelectronics/STM32CubeH7.git
Please tell if you can compile the project now.
2025-09-08 4:37 AM
Thanks, chosen the git clone --recursive https://github.com/STMicroelectronics/STM32CubeH7.git
I guess this is the "PATCHED" version of the FW, or not?
Anyway, now I can compile the ExtMem project found in the ...Projects/STM32H750B-DK/Templates?ExtMem_Boot
Indeed, the created HEX file was also succesfully downloaded to the board...
Thank you very much for now.
Best.
2025-09-08 4:40 AM - edited 2025-09-08 4:41 AM
Yes it is patched.