Skip to main content
Visitor II
May 29, 2024
Question

How to use STM32H7's UID(96bits) to generate 3 bytes for Mac address?

  • May 29, 2024
  • 2 replies
  • 1505 views

I need generate ethernet Mac address for my devices(STM32H7xx), and want to make those devices' Mac address NOT same. The first 3 byte of Mac address will use ST's, so only leave 3 bytes. 

We want to use the chip UID to generate the 3 bytes of the Mac address. What is the best way for us to generate them? 

I dont know what is the meaning of 3 parts(HAL_GetUIDw0/1/2) of UID, I found most parts of our chip's UID are same, just a few chars are different, dont know if we can ignore some of UID which are almost not changed. 

    This topic has been closed for replies.

    2 replies

    Graduate II
    May 29, 2024

    ST is not providing you with 16 million MAC addresses, you'll need to BUY and serialize your own.

    There's wafer batch, and die X / Y position data. There's not really any guarantee you can shrink the 96-bit UID into a 24-bit one.

    HarryXiaAuthor
    Visitor II
    May 30, 2024

    so HAL_GetUIDw0 of UID is wafer batch, right?

    Graduate II
    May 30, 2024

    I'm not sure of the exact mappings, I think there was a White Paper at one point, and other posts to the forum.