Hello,
I am using STM32L4xx MCU, the UID is 96bits, I have got the 96-bit. Unfortunately I have only 64 bits space for serial number. so I have to convert the 96-bit to 64-bit, and the converted 64-bit must be unique. does anyone have the solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-17 1:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-17 4:23 PM
You can create a hash, but it won't be guaranteed to be unique. I've found a 64-bit CRC to be satisfactory.
If it has to be unique, you should generate your own code and burn it into your product in production/final test.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-17 10:09 PM
i think the 96bit is a concatenation of bit fields which are not used fully, such as die posiion in wafer, wafer and lot number, etc which helps traceability. maybe it would be good to provide in HAL a function providing 32, 48 and 64 bits nearly unique numbers from the 96 bits. As in embeddd world few years back the sold mcu counter reached several billions, we already need more than 32 bit....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-20 9:58 AM
Thanks for your solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-20 10:03 AM
There are 56-bit LOT NUM, how does ST control this number? is it safety to simply take the LSB 24bits and ignore its MSB 32-bit?
