Skip to main content
Explorer
September 6, 2025
Solved

How to flash the extmem_boot to the STM32H750B-DK ?

  • September 6, 2025
  • 5 replies
  • 741 views

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.

    This topic has been closed for replies.
    Best answer by mƎALLEm

    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

     

    5 replies

    Explorer
    September 6, 2025

    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.

    Technical Moderator
    September 6, 2025

    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

    Explorer
    September 8, 2025

    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)

     

     

     

    build_project.png

    mƎALLEmAnswer
    Technical Moderator
    September 8, 2025

    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

     

    Explorer
    September 8, 2025

    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.

    Technical Moderator
    September 8, 2025

    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.

    Explorer
    September 8, 2025

    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.

    Explorer
    September 8, 2025

    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.

    Explorer
    September 8, 2025

    THANK YOU!