Board is dead on USB alone
Cause: USB VBUS is not routed to the regulators. USB-C carries data only.
Fix: always connect 24–48 V on CN1 or CN6. The board starts at about 16.5 V.
Power LED stays off with the supply connected
The power LED runs from the 12 V rail, so it stays off until the 12 V regulator starts. Check, in order:
- Supply voltage at CN1/CN6 pin 1 vs pin 2. The board starts at about 16.5 V; use 24–48 V.
- Polarity. A reversed supply is blocked by the P-channel MOSFET, so the board simply stays off. Pin 1 is +, pin 2 is GND.
- The 6.3 A fuse. If polarity and voltage are right, measure across it.
Board will not enter DFU mode
Symptom: after BOOT + RESET, no "STM Device in DFU Mode" appears, but only while another board on the CAN bus is transmitting.
Cause: most likely the ROM bootloader also listens on CAN and locks onto the traffic before USB.
Fix: silence the other boards first (reset them, put them in DFU, or unplug the CAN cable), then enter DFU: hold BOOT, tap RESET, release BOOT.
If it still does not appear on Linux, check the udev rule for 0483:df11
(Programming & flashing).
ST-Link reads chip ID 0x0000, or disconnects at random
Cause: the ST-Link's 3.3 V pin is wired to the board and cannot supply it, so the chip browns out.
Fix: remove the 3V3 wire. Connect only SWCLK, SWDIO, GND and NRST, and power the board from its main input.
SWD "Get IDCODE error"
Cause: a clone ST-Link in a stuck state.
Fix: unplug and replug the ST-Link.
st-flash or OpenOCD cannot find the chip
Cause: st-flash 1.7.0 has no STM32H5 support, and OpenOCD 0.11 / 0.12
cannot reach the H5 CPU on access port AP1.
Fix: use pyOCD with the Keil STM32H5xx_DFP pack, or dfu-util over
USB-C.
Firmware freezes; LEDs stuck; core in lockup
Cause: a double-bit flash ECC error on a tight loop running from flash.
Fix: enable the instruction cache as the first instruction after reset
(write 1 to ICACHE_CR at 0x40030400). See
Firmware developer notes.
Encoder reads all zeros
Cause: the chip is still in the ROM bootloader (DFU), which sets PB13/PB14 to SPI2 and takes the encoder pins.
Fix: reset into user code (or halt at reset) before reading the encoder.
Encoder status reads 1010
Cause: magnetic field too weak: no magnet, or it is too far from the sensor.
Fix: fit a diametric magnet (Ø6 × 2.5 mm or Ø8 × 3 mm) on the rear shaft
with a 1–2 mm air gap, centred within 0.3 mm. Status should read 0000. See
Hardware → Encoder magnet.
Encoder angle has a once-per-turn wobble of a few degrees
Cause: the magnet is slightly off the shaft axis. On the bring-up board the error was about −3.5° to +7° per turn.
Fix: improve the centring, and use a one-turn calibration table in firmware.
Motor stalls on the way to high speed (900–1500 rpm)
Cause: the TMC5160 high-speed full-step switch-over (vhighfs /
vhighchm), which kicked in at about 300 rpm, upset an untuned motor.
Fix: keep SpreadCycle at all speeds (THIGH = 0). 800 rpm is proven at
31 V; above that is still being tested.
Motor does not move in STEP/DIR mode
- SDMODE switch on. Off means the driver ignores STEP/DIR and waits for its internal ramp generator.
- Firmware is running and has enabled the driver. The TMC5160's SPI is always on and its enable line is held off until the MCU drives it low, so firmware must set the current and chopper over SPI and enable the driver, even in STEP/DIR mode.
- Signal levels. STEP and DIR are 3.3 V logic on CN5 (pin 2 STEP, pin 3 DIR, pin 1 GND). Use a level shifter with a 5 V controller.
NPN proximity sensor never triggers
Cause: the sensor is PNP (sourcing). The input on the NPN connector has a blocking diode and only sees an output that pulls down to GND.
Fix: use an NPN (sinking) sensor, powered from pin 1 (12 V) and pin 2 (GND), with its output on pin 3. Use the LS3V3 input for a switch or 3.3 V sensor.
Limit 1 (LS3V3) always reads active
Cause: the input reads low whenever pin 3 is pulled to GND: a switch wired normally-closed, a shorted cable, or a sensor whose idle output is low.
Fix: with nothing connected it should read high (10 kΩ pull-up to 3.3 V). Use a normally-open switch to GND, or invert the logic in firmware.
Driver status shows "short to ground" but the wiring is fine
Cause: bit 24 of DRV_STATUS is the StallGuard flag, not s2ga.
Fix: correct the bit map in your tooling.
Second board does not acknowledge CAN frames
Board-to-board CAN is still an open item on this revision. Checks:
- Both boards run CAN firmware at the same bit rate (reset the second board out of DFU).
- With power off, CANH to CANL measures about 60 Ω: termination switch on at the two end boards only.
- CANL is on pin 3 and CANH on pin 4 at both ends of every cable.
- Read the second board's FDCAN controller state over SWD.