Skip to content

Add STM32H743 board support: DEV190806042, FK743M5-XIH6, STM32H7_CORE#104

Open
nuraci wants to merge 2 commits intolvgl:masterfrom
Copper-And-Code:master
Open

Add STM32H743 board support: DEV190806042, FK743M5-XIH6, STM32H7_CORE#104
nuraci wants to merge 2 commits intolvgl:masterfrom
Copper-And-Code:master

Conversation

@nuraci
Copy link
Copy Markdown

@nuraci nuraci commented Mar 30, 2026

Depends on: lvgl/lv_binding_micropython#407

Summary

Add board definitions for three affordable STM32H743-based boards commonly
available on Aliexpress, featuring external SDRAM (16–32 MB), QSPI flash
(8–32 MB), USB, UART and RGB display output via the LTDC peripheral.

  • DEV190806042 — 32 MB SDRAM (32-bit bus), 32 MB W25Q256 QSPI, no SD card
  • FK743M5-XIH6 — 32 MB SDRAM (16-bit bus), 8 MB W25Q64 QSPI, SD card
  • STM32H7_CORE — 32 MB SDRAM (16-bit bus), 16 MB W25Q128 QSPI, SD card,
    two hardware variants (V1.0 / V1.3) with different pin assignments

Each board provides: mpconfigboard.h, mpconfigboard.mk, board.json, pins.csv,
bdev.c (QSPI block device), stm32h743.ld (linker script with SDRAM section)
and stm32h7xx_hal_conf.h (with LTDC/DMA2D HAL modules enabled).

The STM32H7_CORE board uses the MicroPython variant system
(mpconfigvariant_V10.mk / mpconfigvariant_V13.mk) to handle the two
hardware revisions.

Test plan

  • Build firmware for DEV190806042: make BOARD=DEV190806042
  • Build firmware for FK743M5-XIH6: make BOARD=FK743M5-XIH6
  • Build firmware for STM32H7_CORE V1.0: make BOARD=STM32H7_CORE BOARD_VARIANT=V10
  • Build firmware for STM32H7_CORE V1.3: make BOARD=STM32H7_CORE BOARD_VARIANT=V13
  • Flash and verify REPL via USB CDC on each board
  • Verify QSPI filesystem is accessible and reports correct size
  • Verify SD card mount on FK743M5-XIH6 and STM32H7_CORE
  • Verify SDRAM heap is used (check gc.mem_free())

Boards docs, photos and videos

https://github.com/Copper-And-Code/stm32h7-boards-docs

micropython sample code and tools

https://github.com/Copper-And-Code/lv_micropython_code_and_tools


Summary by cubic

Adds board support for three STM32H743 boards with external SDRAM, QSPI flash storage, and LTDC RGB display output. USB CDC/MSD is enabled, SD is supported where present, and the heap is moved to SDRAM for more memory.

  • New Features

    • Added DEV190806042, FK743M5-XIH6, and STM32H7_CORE (V1.0/V1.3) board definitions.
    • QSPI flash exposed as the filesystem via a cached block device; linker scripts add an SDRAM pool and place the heap in external SDRAM.
    • LTDC/DMA2D and optional touch I2C enabled for RGB panels; USB FS with dual CDC and MSC.
    • SD card enabled on FK743M5-XIH6 and STM32H7_CORE (V1.0 uses SDMMC2).
  • Dependencies

    • Depends on lv_binding_micropython PR 407 for the st_ltdc driver and manifest.

Written for commit a763dc8. Summary will update on new commits.

Nunzio Raciti added 2 commits March 26, 2026 08:46
  Add board definitions for three STM32H743-based boards with external
  SDRAM, QSPI flash, USB and RGB display via LTDC. STM32H7_CORE supports
  two hardware variants (V1.0/V1.3) via the variant system.
  The V10 hardware revision routes the SD card to SDMMC2 (pins B14, B15,
  B3, B4, D6, D7) instead of SDMMC1. Without MICROPY_HW_SDCARD_SDMMC=2
  the driver looks up those pins in the SDMMC1 AF table and fails to
  build.
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 26 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="ports/stm32/boards/DEV190806042/mpconfigboard.mk">

<violation number="1" location="ports/stm32/boards/DEV190806042/mpconfigboard.mk:16">
P2: DEV190806042 uses FK743M5-XIH6 linker script despite having its own stm32h743.ld; this can link against the wrong memory layout.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant