nuttx/arch/arm
raiden00pl 440be49862 arch/arm/src/common/stm32: read UID with 32-bit accesses
STM32H5 stores the UID in flash memory that supports only 16-bit or
32-bit read accesses. The 8-bit reads introduced with the stm32_uid
unification generate an AHB bus error and hard fault the chip when
the Ethernet driver reads the MAC address.

Read the UID as three 32-bit words into an aligned buffer and copy it
to the caller's buffer. On little-endian ARM the resulting byte order
is identical to byte reads, so behavior is unchanged for the other
STM32 families.

Fixes: https://github.com/apache/nuttx/issues/19771

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code
2026-08-16 08:42:20 -03:00
..
include arch/arm/stm32h5: Fix handling of GPIO port I 2026-08-11 10:51:46 +08:00
src arch/arm/src/common/stm32: read UID with 32-bit accesses 2026-08-16 08:42:20 -03:00
CMakeLists.txt
Kconfig arch/arm/rtl8721f: add RTL8721F (Green2) chip and EVB board skeleton 2026-07-30 17:04:14 +08:00