STM32G474RE + X-NUCLEO-IHM16M1 (STSPIN830) motor bring-up firmware. Field-oriented control instrumented end-to-end over the mmc-proto link.
[f32; 4096·2] capture buffer is 93% of static RAM. It only holds (i_d, v_d) pairs during an R/L probe — gate it behind a feature and the resident footprint drops to ~2.4 KB. No heap: allocation is fully static, single executor thread, panic-halt.| Parameter | Value | Confidence |
|---|---|---|
| Pole pairs p | 7 | fixed |
| Stator R Rs | 1.00 Ω | locked-rotor |
| Apparent R R' | 0.97 Ω | rotating fit |
| Stator L Ls | 0.10 mH | design center |
| Flux linkage λ | 0.894 mWb | ±0.04 |
| Inertia J | 0.31 µN·m·s² | rough |
| Friction | 0.8 mN·m | est. |
Measure → fit → write back, entirely over the protocol. The R/L probe aligns the rotor, square-wave excites the d-axis, and captures every ISR tick at full 20 kHz into the burst buffer; the host fits R/L and pushes new gains back live.