Skip to content

Replace flash_get_unique_id() with pico_get_unique_board_id()#49

Merged
traxanos merged 1 commit into
v1devfrom
v1dev-pr-bf-unique_board_id
Jun 6, 2026
Merged

Replace flash_get_unique_id() with pico_get_unique_board_id()#49
traxanos merged 1 commit into
v1devfrom
v1dev-pr-bf-unique_board_id

Conversation

@GeminiServer

Copy link
Copy Markdown
Member

Using pico_get_unique_board_id() for device identification

flash_get_unique_id() only works reliably on RP2040 (external flash). RP2350 boards may not provide a unique flash ID, so the SDK now falls back to the internal OTP-based chip ID to ensures stable and unique IDs across both platforms.

On RP2040: uses external flash JEDEC ID
On RP2350: uses OTP-based unique chip ID (flash ID unreliable)
Provides cross-platform unique device identification.
@Ing-Dom

Ing-Dom commented Jun 6, 2026

Copy link
Copy Markdown
Member

for rp2040 with external flash the returned id will reliable be the same as before?

@traxanos

traxanos commented Jun 6, 2026

Copy link
Copy Markdown
Member

yes. on rp2040 it will call the flash_get_unique_id() and only on 2350 the otp cip id

@traxanos traxanos merged commit 5b2edc7 into v1dev Jun 6, 2026
2 checks passed
@Ing-Dom

Ing-Dom commented Jun 7, 2026

Copy link
Copy Markdown
Member

adaption of the changelog is missing

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.

3 participants