6 years ago.  This question has been closed. Reason: Duplicate question

Can somebody confirm that the 96bits unique ID is avaiblabe from mbed please ?

hi, I bought two Nucleo STM32L152RET6 64pins Nucleo boards and I've seen that the UID seems to be located at 0x1FF800D0 for STM32L15xxE (Cat.5) chips (page 880 of STM32L1xxx (RM0038) UserManual.

when I use this portion of code,

// unique ID test :
    unsigned long *uid = (unsigned long *)0x1FF800D0;
    pc.printf("\r\nUnique ID: %08X %08X %08X \r\n", uid[0], uid[1], uid[2]); 
  • the returned UID is displayed as : 0B473333 36363238 5C595900 for one board
  • and : 0B473333 36363238 63615A00 for the other one

please, can one confirm this is the correct location and that this UID is really unique to each chip (and is not a series or product type number) ? does this mean that as we are (probably in an early production release , it's quite normal that the first 8 Bytes are the same?

thank you for your support Rico

Question relating to:

Affordable and flexible platform to ease prototyping using a STM32L152RET6 microcontroller.