Skip to content
View askarigtec's full-sized avatar

Block or report askarigtec

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
askarigtec/README.md

STM32H743 Container Build

This repo now includes a minimal Docker workflow for compiling STM32H743 firmware with ARM GCC and STM32CubeH7 HAL/CMSIS sources.

Files

  • Dockerfile.stm32h743: Ubuntu image with ARM toolchain + STM32CubeH7 cloned to /opt/STM32CubeH7
  • scripts/init_stm32h743_files.sh: auto-copies startup/system/linker templates into stm32/
  • scripts/build_stm32h743.sh: builds main.c to ELF/HEX/BIN for STM32H743

1) Build Image

docker build -f Dockerfile.stm32h743 -t stm32h743-build:latest .

2) Start Container

docker run --rm -it -v "$PWD":/work -w /work stm32h743-build:latest bash

3) Initialize STM32H743 Template Files

Inside the container:

./scripts/init_stm32h743_files.sh

This creates:

  • stm32/startup_stm32h743xx.s
  • stm32/system_stm32h7xx.c
  • stm32/STM32H743ZITX_FLASH.ld

4) Build Firmware

Inside the container:

./scripts/build_stm32h743.sh

Build outputs:

  • build/stm32h743/firmware.elf
  • build/stm32h743/firmware.hex
  • build/stm32h743/firmware.bin

Notes

  • 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.

Makefile Shortcuts

You can run the same workflow with shorter commands from the project root:

make h743-docker-build
make h743-docker-init
make h743-docker-compile

Or run all steps in one go:

make h743-docker-all

Open an interactive shell in the container:

make h743-docker-shell

Popular repositories Loading

  1. askarigtec askarigtec Public

    Config files for my GitHub profile.

    Shell

  2. test test Public

    C

  3. Nima Nima Public

    Astro

  4. askarigtec.github.io askarigtec.github.io Public

    HTML

  5. test_work_flow test_work_flow Public

    C