Skip to content

verbs and version, new snapshot reset tool, clean up mcc dumps. - #12

Merged
pwittich merged 11 commits into
mainfrom
feature/verbs_and_version
Oct 30, 2026
Merged

pwittich merged 11 commits into
mainfrom
feature/verbs_and_version

Conversation

@pwittich

Copy link
Copy Markdown
Contributor
  • FPGA DONE polarity fix: read_runtime() now inverts the active-low DONE pins, so a set FpgaDone.F1 means F1 is configured.
  • New predicate commands for shell scripts: cm-is-cm-power-on, cm-is-fpga-programmed [F1|F2], cm-is-cm-healthy, cm-is-rtc-set and cm-wait-cm-power-on.
    • They exit 0 = yes, 1 = no, 2 = unknown.
    • Each prints one line; -q silences it.
  • cm-exercise-mcu removed:
    • Reads are now only in cm-mcu-dump.
    • Writes moved to the new cm-mcu-control, which prints help listing all Control-page commands when given no action.
  • cm-lga80d-snapshot-reset NAME?|--all: resets the LGA80D SNAPSHOT fault history. It only runs when power is POWER_OFF and asks for confirmation unless --yes.
  • Readable MCU dumps: enums and flags print as names, e.g. POWER_ON (10) or A, B (0x03), instead of Python reprs, which differ between Python versions.
  • Dump headers: every dump now records the MCU power state and FPGA DONE state.
  • Versioning:
    • The RPM build writes the release tag into cm_interface.__version__.
    • Every tool has --version, and dump headers include the version.
    • CI fails if the installed version doesn't match the tag.
  • Docs:
    • README, EXAMPLES, TODO and tests/hw/README.md updated for the new commands.
    • The README's description of the RPM workflow corrected.
    • MCU_REGISTER_MAP.md now uses the real CLI command names (pwr clearfail, alm clear, zmon on/off).

@pwittich
pwittich merged commit f740dcc into main Oct 30, 2026
3 checks passed
@pwittich
pwittich deleted the feature/verbs_and_version branch November 1, 2026 13:02
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