Logo: Stm32h750 Weact

Stm32h750 Weact

Communautéit
alexex1993
stm32h750-weact

Firmware development for the WeAct Studio MiniSTM32H7xx core board (STM32H750VBT6) — its 0.96" ST7735 TFT, DVP camera, QSPI/SPI flash, MicroSD, USB, and the STM32Cube HAL + PlatformIO setup around them. Use when working on this board or any STM32H750/H743 WeAct core board: project setup, platformio.ini, clock/PLL configuration, pin mapping, peripheral bring-up, LCD performance, D-cache/DMA problems, DFU flashing, or debugging why something on the board does not work.

Iwwersiicht

Editeuralexex1993
Repositorymcu-skills
Skill-Nummstm32h750-weact
Stären
27
Forks
3
Matgeliwwert Dateien
39
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 39 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    alexex1993 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Stm32h750 Weact an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/alexex1993/mcu-skills/tree/main/skills/stm32/stm32h750-weact
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alexex1993/mcu-skills.git /tmp/mcu-skills
mkdir -p .claude/skills
cp -r /tmp/mcu-skills/skills/stm32/stm32h750-weact .claude/skills/stm32h750-weact
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Stm32h750 Weact an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Stm32h750 Weact automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Stm32h750 Weact net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

WeAct STM32H750VBT6 core board

Board-specific firmware knowledge. The two reference files hold the detail — read the one you need rather than guessing, because most of the failure modes below are silent (the board runs, just wrongly).

  • reference/board-hardware.md — complete hardware reference: schematic-level pin map, every connector, power tree, memory map, SDK/examples inventory, plus a full development guide (Part II: §12 PlatformIO, §13 clocks, §14 peripheral cookbook, §15 M7 gotchas, §16 flashing, §17 pitfall table).
  • reference/recipes.md — copy-paste-ready code: platformio.ini, clock config, LCD driver with the fast blit path, backlight PWM, ADC temperature sensor, USB CDC, DWT frame pacing.
  • template/ — a complete working project that builds and flashes, plus a scaffolding script. It is where every recipe was extracted from; see template/README.md.

Orientation

MCUSTM32H750VBT6, Cortex-M7, 128 KB flash, 1 MB RAM, LQFP100
ClocksHSE 25 MHz (X1), LSE 32.768 kHz. Working tree: PLL1 M5/N96/P2 → SYSCLK 240, HCLK 120
DisplayST7735S 160×80 on SPI4 (PE12 SCK, PE14 MOSI, PE11 CS, PE13 D/C, PE10 backlight)
LED / buttonPE3 active-high / PC13 pressed = high
Storage8 MB QSPI flash @ 0x90000000 (XIP), 8 MB SPI flash on SPI1, MicroSD on SDMMC1
USBOTG_FS on PA11/PA12, crystal-less off HSI48; ROM DFU bootloader on the same Type-C
DebugSWD on header P3 (PA13/PA14)

Rules that prevent the expensive mistakes

Check these before writing code — each one produces a failure that looks like something else.

  1. -DHSE_VALUE=25000000 in build_flags. The stock framework-stm32cubeh7 CMSIS template already defaults HSE_VALUE to 25 MHz — matching this board's crystal by coincidence, the same way the F4 template does for the Black Pill — so this currently works without the flag. It stops working the moment a CubeMX-generated stm32h7xx_hal_conf.h from a different H7 board (most Nucleo/Eval H7 boards run their HSE from an 8 MHz ST-Link MCO) gets dropped in: the PLL still locks, but every derived timing is wrong by ~3×. Set it explicitly so the project doesn't depend on which hal_conf.h happens to be in play.
  2. PWR_LDO_SUPPLY — this board has no SMPS. Configuring one leaves the core under-supplied and unresponsive to SWD until a BOOT0 power cycle. The setting latches on first write after reset.
  3. Fix the board definition's swapped sizes in platformio.ini: board_upload.maximum_size = 131072 (flash), board_upload.maximum_ram_size = 524288 (RAM). Otherwise nothing warns you when an image exceeds the real 128 KB.
  4. board_build.stm32cube.disable_embedded_libs = yes if you vendor an ST7735 driver into lib/ — Cube's embedded BSP ships its own and they collide at link time.
  5. FLASH_LATENCY_1 at HCLK 120 MHz. Too few wait states → hard fault on the first flash read.
  6. Cache enable before HAL_Init(), clock config before any peripheral init.
  7. D-cache vs DMA: buffers __attribute__((aligned(32))), size a multiple of 32, clean before TX / invalidate after RX. And DMA1/DMA2 cannot reach DTCM or ITCM — a buffer there silently never updates. Default linker puts everything in RAM_D1 (AXI SRAM), which is fine.
  8. Backlight is TIM1_CH2N, a complementary output: HAL_TIMEx_PWMN_Start(), not HAL_TIM_PWM_Start(), and HAL_TIMEx_ConfigBreakDeadTime() + HAL_TIM_MspPostInit() are mandatory or the pin never drives.
  9. USB needs HAL_PWREx_EnableUSBVoltageDetector() plus HSI48State = RCC_HSI48_ON. Missing it means the host sees nothing at all. 9a. The AF macro is GPIO_AF10_OTG2_FS, not GPIO_AF10_OTG1_FS. This part has two USB_OTG controllers, so stm32h7xx_hal_gpio_ex.h defines USB2_OTG_FS and compiles out the OTG1_FS macro name entirely — code copied from an H7A3/H72x example (which has only one controller) fails to build with an undefined-identifier error that doesn't say why.
  10. LCD and camera reset lines are tied to the board reset net — no GPIO control, ever. A wedged panel needs a full MCU reset.

When the task is LCD performance

The stock ST7735 driver is ~200× slower than the bus allows: ST7735_FillRGBRect() calls SetCursor() per pixel row, and SetCursor() sends each address byte as its own CS-framed SPI transaction. A 13-character line costs ~1660 SPI transactions.

Fix by composing a full-width band in RAM (pixels pre-byte-swapped — the panel is big-endian RGB565) and pushing it with one SetCursor + one burst: 8 transactions, ~1.4 ms for 160×16 at 30 MHz. That is what makes a 120 Hz UI loop fit. reference/recipes.md has the working implementation.

Bus speed is secondary but real: SPI_BAUDRATEPRESCALER_4 = 30 MHz works on this board although the ST7735S spec implies 15 MHz; halve it the moment pixels come out garbled.

Panel refresh itself is programmable via FRMCTR1 (f = f_osc / ((RTNA*2+40) * (LINE+FPA+BPA)), f_osc ≈ 850 kHz, LINE = 160): stock ≈ 80 Hz, (0, 2, 2) ≈ 130 Hz. Worth setting an expectation though — pixel response on this panel is ~100 ms, so an fps readout is more convincing than the animation.

Starting a new project

Do not hand-assemble one. template/ is a verified-working project — scaffold from it:

Run from the directory containing this SKILL.md; use an absolute path for the new project.

sh
./template/variants/new-project.sh <target-dir> [--full|--minimal]
cd <target-dir> && pio run
  • --full (default) — ST7735 UI, USB CDC console, ADC temperature sensor. 40.9 KB of 128 KB flash.
  • --minimal — LED + K1 only, same clock tree and startup order. 5.7 KB. Use it to prove the toolchain and the flashing route before adding anything.

Both variants build as-is (verified). Nothing is generated and no paths are embedded, so copying the tree by hand works equally well. template/README.md lists which files belong to which subsystem, so a --full scaffold can be stripped back cleanly.

When the user already has a project, prefer bringing it in line with the template's platformio.ini and board.h over rewriting their code.

Flashing

DFU over the Type-C cable, no probe: hold BOOT0, tap NRST, release after ~0.5 s → the board enumerates as 0483:DF11 → pio run -t upload. The board never resets itself into DFU; the sequence is manual every time. SWD via header P3 when you need breakpoints.

When 128 KB of flash runs out, the board's answer is QSPI XIP at 0x90000000 with a small loader in internal flash — a decision to make early, since the linker script and flashing procedure both change. See reference/board-hardware.md §6, §7.3, §15.3.

Reporting

State honestly what was verified on hardware versus derived from the datasheet. Several settings here (30 MHz SPI, raised FRMCTR1) are deliberately outside published specs and work on this specific board — say so rather than presenting them as safe defaults.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Stm32h750 Weact?

Firmware development for the WeAct Studio MiniSTM32H7xx core board (STM32H750VBT6) — its 0.96" ST7735 TFT, DVP camera, QSPI/SPI flash, MicroSD, USB, and the STM32Cube HAL + PlatformIO setup around them. Use when working on this board or any STM32H750/H743 WeAct core board: project setup, platformio.ini, clock/PLL configuration, pin mapping, peripheral bring-up, LCD performance, D-cache/DMA problems, DFU flashing, or debugging why something on the board does not work.

Firwat Stm32h750 Weact op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Stm32h750 Weact besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Stm32h750 Weact an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/alexex1993/mcu-skills/tree/main/skills/stm32/stm32h750-weact an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Stm32h750 Weact benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Stm32h750 Weact benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Stm32h750 Weact domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Stm32h750 Weact gratis?

Jo. alexex1993 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇