cancel
Showing results for 
Search instead for 
Did you mean: 

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

LGoye.1
Associate II

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

4 REPLIES 4
WilkoL
Senior

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.

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.

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.

Probably going to need to fish in the OTP around the same area, or it's just something the debugger/loader can read. See what things like the ST-LINK Utilities key off of, probably a configuration or script file(s)

https://community.st.com/s/question/0D50X00009XkaIUSAZ/unique-id-returning-zeros

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..