Skip to content

!arch/stm32: unify and commonize stm32_uid for all STM32 families.#19295

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
raiden00pl:stm32_refactor_all_uid
Jul 4, 2026
Merged

!arch/stm32: unify and commonize stm32_uid for all STM32 families.#19295
xiaoxiang781216 merged 1 commit into
apache:masterfrom
raiden00pl:stm32_refactor_all_uid

Conversation

@raiden00pl

Copy link
Copy Markdown
Member

Summary

Replace the per-family stm32_get_uniqueid() implementations and the two IP-versioned common variants with a single generic byte-array reader, arch/arm/src/common/stm32/stm32_uid.c.

BREAKING CHANGE for STM32 M0 families: stm32_get_uniqueid() now always takes a uint8_t[12] buffer.
Out-of-tree Cortex-M0 code that used the previous prototype void stm32_get_uniqueid(uint32_t *uid) must change its buffer to uint8_t uniqueid[12]

Impact

Unify UID interface for STM32

Testing

CI

Replace the per-family stm32_get_uniqueid() implementations and the two
IP-versioned common variants with a single generic byte-array reader,
arch/arm/src/common/stm32/stm32_uid.c.

BREAKING CHANGE for STM32 M0 families: stm32_get_uniqueid() now always
takes a uint8_t[12] buffer.
Out-of-tree Cortex-M0 code that used the previous prototype
"void stm32_get_uniqueid(uint32_t *uid)" must change its buffer to
"uint8_t uniqueid[12]".

Signed-off-by: raiden00pl <raiden00@railab.me>
@github-actions github-actions Bot added Arch: arm Issues related to ARM (32-bit) architecture Size: M The size of the change in this PR is medium Board: arm labels Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@xiaoxiang781216 xiaoxiang781216 merged commit 09e4bb4 into apache:master Jul 4, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Board: arm Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants