Skip to main content
Senior
March 17, 2017
Question

About ''HAL_GetUID()''

  • March 17, 2017
  • 1 reply
  • 863 views
Posted on March 17, 2017 at 06:28

In STM32Cube_FW_F4_V1.15.0, I find a new function: HAL_GetUID(), the brief description of this function is: Return the unique device identifier (UID based on 96 bits). I wonder, how 'unique' of this ID, unique in ST's parts, or unique only in STM32 familly? Can it be used as a MAC like? 

    This topic has been closed for replies.

    1 reply

    S.Ma
    Principal
    March 17, 2017
    Posted on March 17, 2017 at 06:42

    Looking at an

    http://www.st.com/content/ccc/resource/technical/document/reference_manual/02/35/09/0c/4f/f7/40/03/DM00083560.pdf/files/DM00083560.pdf/jcr:content/translations/en.DM00083560.pdf

     the 96 bit is unique as it provide the origin of the device, its position on a wafer (unique), the wafer number and lot number (unique). This probably give clues to quality teams when customers return parts (ppm) for analysis. These IDs are probably filed at test time. If two devices have the same ID...