Skip to content

Add PN and update board revision in print_report - #58

Open
cjsha wants to merge 6 commits into
mainfrom
update-printout
Open

Add PN and update board revision in print_report#58
cjsha wants to merge 6 commits into
mainfrom
update-printout

Conversation

@cjsha

@cjsha cjsha commented Jul 23, 2026

Copy link
Copy Markdown
Member

fix #57


commit 50bca1e

The original issue suggested adding a "PID" field. This field name felt a bit ambiguous to me.
I opted for {"part_number":"OEPS-7758"} instead, but feel free to overwrite.

I also updated the Board Revision in the firmware because we're on revision J, not H. With that said, what is our standard practice documenting hardware revision within gateware/firmware?

@cjsha
cjsha requested a review from jonnew July 23, 2026 14:08
- board_rev & gear_ratio are variables related to external hardware configuration
- with this commit, these variables survive firmware flashes
@cjsha

cjsha commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

ed65991

This is a bit beyond the original scope of the PR. This loads firmware + hardware config variables (board revision and gear ratio) to two separate parts of the EEPROM. The benefits are:

  • one firmware for all commutators-controllers regardless of which commutator that they go into or which board revision the firmware is loaded onto
  • board revision and gear ratio survive in-field firmware flashes

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.

Add PID field to print data

1 participant