Skip to content

Firmware 2.2.0: the driver starts disabled at boot - #28

Merged
daniel-frenkel merged 2 commits into
mainfrom
fw/driver-disabled-at-boot
Nov 15, 2026
Merged

daniel-frenkel merged 2 commits into
mainfrom
fw/driver-disabled-at-boot

Conversation

@daniel-frenkel

@daniel-frenkel daniel-frenkel commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

What

The driver starts disabled at boot.

  • firmware/driver_disabled_at_boot.h: a constructor that runs before app_main sets the TMC2209 ENN pin high (driver disabled), the level first and then the pin's direction, so it never drives low. ESPHome's pin setup keeps the level; the driver's setup then writes VACTUAL 0 and enables it, as before.
  • The pin comes from pin_enn through a build flag (-DGC_DRIVER_ENN_GPIO=${pin_enn}), so it is defined in one place.
  • A firmware_dir substitution: ESPHome resolves includes against the top-level config's folder, so the bench build (tools/bench/glasscalibur-bench.yaml) sets it to ../../firmware. The TP-1 build includes the bench build and inherits it.
  • CHANGELOG: "The driver starts disabled at boot." under 2.2.0, Changed.
  • main merged in.

Checks (head e4b02c9)

Check Result Sabotage
Build esphome config valid for the product, bench and TP-1 builds; the product compiles (flash +28 bytes vs main); CI the header with its pin macro misspelt doesn't compile
Entity gate vs main clean a renamed entity is flagged
Behaviour gate vs main clean: no automation body changed an edited on_boot body is listed as changed
Wording the push gate passes on the net diff, every commit, the commit messages and this text its self-tests block planted lines

🤖 Generated with Claude Code

daniel-frenkel and others added 2 commits November 10, 2026 22:01
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2.2.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@daniel-frenkel daniel-frenkel changed the title Firmware 2.3.0: the driver starts disabled at boot Firmware 2.2.0: the driver starts disabled at boot Nov 15, 2026
@daniel-frenkel
daniel-frenkel marked this pull request as ready for review November 15, 2026 01:22
@daniel-frenkel
daniel-frenkel merged commit cab78e9 into main Nov 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant