Skip to main content
LGoye.1
Associate II
May 5, 2021
Question

I want to read the device ID in software (NOT the wafer and die location unique ID) We are forced to use multiple STM8l devices due to the ongoing chip shortage Thanks, Leo

  • May 5, 2021
  • 1 reply
  • 3599 views

My question is: What is the address of the device id register?

    This topic has been closed for replies.

    1 reply

    WilkoL
    Senior
    May 5, 2021

    The datasheet for my STM8L151C8 on page 67 tells about the "Unique ID" It says this:

    ---

    STM8 devices feature a 96-bit unique device identifier which provides a reference number that is unique for any device and in any context. The 96 bits of the identifier can never be altered by the user.

    The unique device identifier can be read in single bytes and may then be concatenated using a custom algorithm.

    ---

    It starts at address 0x4926 and ends at 0x4931

    I guess that that's what you are looking for.

    LGoye.1
    LGoye.1Author
    Associate II
    May 5, 2021

    I guess I was not clear. That is not what I am looking for. That is a unique identifier that is equivalent to a serial number, NOT a device ID.

    The device ID is not listed in any data sheet I can find, yet generally, most programmers can tell which chip they are connected to, so there is a device ID somewhere in memory space.

    WilkoL
    Senior
    May 5, 2021

    You want to know if it is a STM8L151C8 or STM8L152F3 or any other STM8 mcu... No idea how to see that, except with my eyes, but yeah, programmers can usually see that. Although my ST-Link and utitlity often can't tell the *exact* type.