Skip to content

feat: Flash unique ID based device serial#52

Merged
FlowingSPDG merged 2 commits intomainfrom
feature/flash-unique-usb-serial
May 4, 2026
Merged

feat: Flash unique ID based device serial#52
FlowingSPDG merged 2 commits intomainfrom
feature/flash-unique-usb-serial

Conversation

@FlowingSPDG
Copy link
Copy Markdown
Member

@FlowingSPDG FlowingSPDG commented May 3, 2026

Summary

Derives the Stream Deck–compatible serial string from the RP2040 external SPI flash unique ID (8-byte UID as 16-character lowercase hex). USB iSerial, v1/v2 HID serial feature reports, and module 6 unit serial all share this buffer.

If blocking_unique_id fails or returns an all-zero / all-0xFF UID, the firmware falls back to PRODUCTIONDK (unchanged behavior).

Implementation notes

  • Single-core builds: init runs inside create_all_pins_for_device after splitting Peripherals so FLASH can be consumed without partial-move issues.
  • Multicore builds: init runs from run_multicore before Core 1 tasks.

Closes #5

Made with Cursor

FlowingSPDG and others added 2 commits May 4, 2026 07:29
Read Winbond-style flash UID at boot, expose as hex ASCII for USB iSerial, v1/v2 feature reports, and module 6 unit serial. Fall back to PRODUCTIONDK when unavailable.

Closes #7

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@FlowingSPDG
Copy link
Copy Markdown
Member Author

大丈夫そうなのでマージ

@FlowingSPDG FlowingSPDG merged commit e7bd6ba into main May 4, 2026
2 checks passed
@FlowingSPDG FlowingSPDG deleted the feature/flash-unique-usb-serial branch May 4, 2026 00:13
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.

Make serial number variable

1 participant