Page 1 of 1

Read MCU's Unique

Posted: Tue Dec 31, 2024 2:00 am
by DrBanana
Is there anyway to read Unique Id of any STM32 MCU through this core ?

Re: Read MCU's Unique

Posted: Tue Dec 31, 2024 2:48 pm
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