MCU development and verification¶
OpenCreator has separate host software, printer configuration, and firmware for four controller boards.
| Board | MCU | Primary role |
|---|---|---|
| MainboardGD | GD32H737VGT6 | Main motion and machine I/O |
| eBoard | N32G455CCL7 | Shared extrusion drive and pressure-advance sensing |
| Heaterboard | N32G455REL7 | Tool heaters and temperature I/O |
| Levelboard | N32G430F8S7 | Probing and levelboard sensing |
UARTs, baud rates and what each board drives are on Hardware.
The source for the MCU ports and the host is in kalico. It replaces klipper-c5, which is archived and kept for reference only. The configuration is maintained separately in opencreator-fs and opencreator-tunnel.
| Page | What it covers |
|---|---|
| Building and testing | Board selection, the build/package/validate commands, release inputs and host-side tests |
| Flashing | Release deployment, loose HEX test builds, stock packages, bootloader requirements and recovery |
| Pins and shared hardware | The four logical extruders on one physical driver, their pins, direction handling and MCU port context |
Where the board code lives¶
In Kalico:
| Path | What it is |
|---|---|
src/stm32/gd32h7*.c |
The GD32H7 port: clock, GPIO, ADC, serial, watchdog |
src/stm32/n32g45x*.c, n32g455_gpio.c |
The N32G455 port (eBoard and heaterboard) |
src/stm32/n32g430*.c |
The N32G430 port (levelboard) |
src/stm32/c5_mainboardgd*.c |
Mainboard hardware layer: motor timers, ADCs, DMA, fault handler |
src/stm32/c5_eboard.c, src/c5_eboard*.c |
eBoard: the TMC2209 UART on USART3, pressure-advance sensing |
src/stm32/c5_levelboard.c, src/c5_levelboard.c |
Levelboard |
src/c5_mclib.c |
The motor control core that replaces FlashForge's MCLib (see MCLib and motor control) |
src/c5_version.c |
The mcu_version report all four boards share |
scripts/build_c5_update.py |
Builds, checks and packages all four boards |
docs/Creator5_Updates.md, docs/Creator5_Motor_Tuning.md |
Release steps and motor tuning notes |
Each board has a Kconfig switch under the STM32 machine menu, and each needs its chip selected first:
| Board | Chip (CONFIG_MACH_...) |
Board switch | Clock reference | Serial |
|---|---|---|---|---|
| MainboardGD | GD32H737VGT6 |
CONFIG_C5_MAINBOARDGD |
25 MHz | GD32_SERIAL_USART0 |
| eBoard | N32G455 |
CONFIG_C5_EBOARD |
12 MHz | STM32_SERIAL_USART1 |
| Heaterboard | N32G455 |
CONFIG_C5_HEATERBOARD |
12 MHz | STM32_SERIAL_USART1 |
| Levelboard | N32G430F8S7 |
CONFIG_C5_LEVELBOARD |
8 MHz | STM32_SERIAL_USART1 |
These are the settings build_c5_update.py writes into each board's
.config; you don't need make menuconfig for a release. Any C5_* board
switch leaves out drivers the stock boards don't use (LCDs, HX71x, extra
accelerometer and sensor drivers), and the mainboard also leaves out TMC UART,
NeoPixel, pulse counter and software SPI/I2C.