2026-02-06 9:51 PM
Hi,
How to set UID using CubeMX and read in STM32L476 and use it for device commissioning process?
Solved! Go to Solution.
2026-02-07 6:03 AM
The UID is not handle by CubeMX, you have to access the 3 registers by yourself. Se Chapter 49.1 in the Reference Manual RM0351
2026-02-06 11:25 PM
2026-02-07 2:25 AM
Hi NHoLL.2,
I read that post but CubeMX options are not available in my STM32L476(Nucleo-L476R) series.
2026-02-07 6:03 AM
The UID is not handle by CubeMX, you have to access the 3 registers by yourself. Se Chapter 49.1 in the Reference Manual RM0351
2026-02-07 6:11 AM
UID cannot be set. It can only be read. The STM32L476 does have a UID.
HAL_GetUIDw0/HAL_GetUIDw1/HAL_GetUIDw2 will read the three 32-bit parts of it.