Pins and shared MCU hardware¶
One motor, four logical tools¶
T0 through T3 represent four removable toolheads, but they share one physical extruder motor and its eBoard TMC2209 driver (see Hardware). The logical extruders share the eBoard step, direction, and enable signals. Tool selection associates that drive with the selected heater, sensors, and filament state; it does not switch among four independent motor drivers.
The printer and tunneled configurations have a [tmc2209 extruder] through
[tmc2209 extruder3] section, all with identical settings and all addressing
the same driver. Each logical extruder needs one so that it requests the same
step-on-both-edges (DEDGE) mode as the others. A tool without one sends
single-edge pulses, and the driver, already in DEDGE mode, counts each pulse
twice, so that tool extrudes about double.
| Setting | Value |
|---|---|
UART receive (uart_pin) |
eboard:PB11 |
UART transmit (tx_pin) |
eboard:PB10 |
uart_address |
0 |
| Step / direction / enable | eboard:PB14 / eboard:PB15 / eboard:PB12 |
run_current, hold_current |
0.70 A (approximates stock) |
sense_resistor |
0.110 ohm (verified working) |
The eBoard uses USART3 for this driver. The host's Creator 5 UART transport
(c5_tmc_uart_send in klippy/extras/tmc_uart.py) and the eBoard's MCU
command must both be present; ordinary GPIO UART bitbanging does not
implement this hardware path.
Each logical extruder is a separate MCU stepper on the same PB15 direction
pin. Stock Klipper toggles a stepper's direction pin relative to that
stepper's own last direction, so with four steppers on one pin the actual
level ends up as the XOR of all four. A tool then runs backwards whenever an
odd number of the other tools last moved in reverse, for example a retract
before docking. eBoard builds (CONFIG_C5_EBOARD) therefore write the
absolute direction at the start of every move in src/stepper.c. This needs
the eBoard reflashed; until then a FIRMWARE_RESTART resets all four to
forward.
Shared MCUs across older printers¶
The eBoard, heaterboard and levelboard use Nations N32G4 chips, which the
Kalico tree supports alongside STM32. The mainboard's GigaDevice GD32H737VGT6
needed a new port (src/stm32/gd32h7*.c).
How MCLib drives the motors, and how Kalico's replacement for it works, is documented in MCLib and motor control. Board source paths and Kconfig selections are listed in MCU development.