2026-06-08 12:16 AM - last edited on 2026-06-08 2:01 AM by Andrew Neil
Hello STCommunity,
I was downloaded the Example codes related to STM32H7b3LIH6Q controller download code from the https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H7B3I-EVAL site and then import into STM32Cube IDE software the bellow Software details
STM32CubeIDE
Version: 2.1.0
Build: 27993_20260219_1630 (UTC)
OS: Linux, v.6.17.0-35-generic, x86_64 / gtk 3.24.41
Java vendor: Eclipse Adoptium
Java runtime version: 21.0.9+10-LTS
Java version: 21.0.9
I import the code and build it my software given this problem
12:38:08 **** Incremental Build of configuration Debug for project JPEG_EncodingFromFLASH_DMA ****
make -j12 all
arm-none-eabi-gcc "/home/akademika/Embedded_Universal/CAMERA/STM32CubeH7-master/Utilities/JPEG/jpeg_utils.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DUSE_PWR_DIRECT_SMPS_SUPPLY -DSTM32H7B3xxQ -DUSE_STM32H7B3I_EVAL -DDEBUG -c -I../../../../../../../Drivers/BSP/STM32H7B3I-EVAL -I../../../../../../../Utilities/lcd -I../../../../../../../Utilities/JPEG -I../../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../../../../../Utilities/CPU -I../../../../../../../Middlewares/Third_Party/FatFs/src -I../../../../../../../Drivers/BSP/Components -I../../Inc -I../../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../../../../../Drivers/BSP/Components/Common -I../../../../../../../Utilities/Fonts -I../../../../../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Utilities/jpeg_utils.d" -MT"Utilities/jpeg_utils.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Utilities/jpeg_utils.o"
arm-none-eabi-gcc "/home/akademika/Embedded_Universal/CAMERA/STM32CubeH7-master/Utilities/lcd/stm32_lcd.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DUSE_PWR_DIRECT_SMPS_SUPPLY -DSTM32H7B3xxQ -DUSE_STM32H7B3I_EVAL -DDEBUG -c -I../../../../../../../Drivers/BSP/STM32H7B3I-EVAL -I../../../../../../../Utilities/lcd -I../../../../../../../Utilities/JPEG -I../../../../../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../../../../../Utilities/CPU -I../../../../../../../Middlewares/Third_Party/FatFs/src -I../../../../../../../Drivers/BSP/Components -I../../Inc -I../../../../../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../../../../../Drivers/BSP/Components/Common -I../../../../../../../Utilities/Fonts -I../../../../../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Utilities/stm32_lcd.d" -MT"Utilities/stm32_lcd.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Utilities/stm32_lcd.o"
make: *** No rule to make target '/home/akademika/Embedded_Universal/CAMERA/STM32CubeH7-master/Middlewares/Third_Party/FatFs/src/option/syscall.c', needed by 'Middlewares/FatFs/Options/syscall.o'. Stop.
make: *** Waiting for unfinished jobs....
In file included from /home/akademika/Embedded_Universal/CAMERA/STM32CubeH7-master/Utilities/JPEG/jpeg_utils.h:24,
from /home/akademika/Embedded_Universal/CAMERA/STM32CubeH7-master/Utilities/JPEG/jpeg_utils.c:97:
../../Inc/jpeg_utils_conf.h:35:10: fatal error: stm32h7xx_hal.h: No such file or directory
35 | #include "stm32h7xx_hal.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/akademika/Embedded_Universal/CAMERA/STM32CubeH7-master/Utilities/lcd/stm32_lcd.c:71:
/home/akademika/Embedded_Universal/CAMERA/STM32CubeH7-master/Utilities/lcd/stm32_lcd.h:30:10: fatal error: lcd.h: No such file or directory
30 | #include "lcd.h"
| ^~~~~~~
compilation terminated.
make: *** [Utilities/subdir.mk:22: Utilities/jpeg_utils.o] Error 1
make: *** [Utilities/subdir.mk:24: Utilities/stm32_lcd.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.
12:38:08 Build Failed. 6 errors, 0 warnings. (took 124ms)
Please give me the correct way to solve this issue
Thank You
Vijaya
2026-06-08 12:43 AM - edited 2026-06-08 12:44 AM
Hello,
How did you download the example? using zip of github commend?
Donwload with zip is not the right way to download the package as the other modules (middleware, HAL drivers, BSP ) are located in other github locations.
So the right way is to use github and clone with recursive option.
Please refer to this article: Downloading STM32Cube packages from GitHub correctly
Hope that helps.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.