Read MCU's Unique

Post here first, or if you can't find a relevant section!
Post Reply
DrBanana
Posts: 29
Joined: Thu Jun 10, 2021 3:02 pm

Read MCU's Unique

Post by DrBanana »

Is there anyway to read Unique Id of any STM32 MCU through this core ?
GonzoG
Posts: 491
Joined: Wed Jan 15, 2020 11:30 am
Answers: 36
Location: Prudnik, Poland

Re: Read MCU's Unique

Post by GonzoG »

You can use HAL directly:

Code: Select all

uint32_t uid[3];

uid[0] = HAL_GetUIDw0();
uid[1] = HAL_GetUIDw1();
uid[2] = HAL_GetUIDw2();
or one of few available libraries, eg. https://github.com/ricaun/ArduinoUniqueID
Post Reply

Return to “General discussion”