This repo now includes a minimal Docker workflow for compiling STM32H743 firmware with ARM GCC and STM32CubeH7 HAL/CMSIS sources.
Dockerfile.stm32h743: Ubuntu image with ARM toolchain + STM32CubeH7 cloned to/opt/STM32CubeH7scripts/init_stm32h743_files.sh: auto-copies startup/system/linker templates intostm32/scripts/build_stm32h743.sh: buildsmain.cto ELF/HEX/BIN for STM32H743
docker build -f Dockerfile.stm32h743 -t stm32h743-build:latest .docker run --rm -it -v "$PWD":/work -w /work stm32h743-build:latest bashInside the container:
./scripts/init_stm32h743_files.shThis creates:
stm32/startup_stm32h743xx.sstm32/system_stm32h7xx.cstm32/STM32H743ZITX_FLASH.ld
Inside the container:
./scripts/build_stm32h743.shBuild outputs:
build/stm32h743/firmware.elfbuild/stm32h743/firmware.hexbuild/stm32h743/firmware.bin
- Default target macro is
STM32H743xx. - If your exact part/package differs, adjust linker file and defines in
scripts/build_stm32h743.sh. - This workflow is for compile artifacts. Flash/debug still typically runs on a local machine with ST-Link.
You can run the same workflow with shorter commands from the project root:
make h743-docker-build
make h743-docker-init
make h743-docker-compileOr run all steps in one go:
make h743-docker-allOpen an interactive shell in the container:
make h743-docker-shell