# How to get STM8 unique device ID?

I'm working with a STM8S003F3P6 microcontroller and I need to know an unique ID for each device I will use. I know that PIC microcontrollers has an unique device ID that can be acessed by the user. My questions is: The STM8 microcontrolers have this information? If it's true, how can I acess this?

• Have you like, tried looking at the reference manual? – PlasmaHH Aug 8 '18 at 14:56
• It's not shown in the datasheet: static6.arrow.com/aropdfconversion/… – Michel Keijzers Aug 8 '18 at 14:59
• But you should look in reference manual as well. There should be some 96-bit encoded ID if my internet search is correct. – Eugene Sh. Aug 8 '18 at 15:07
• STM8S103F2 STM8S103F3 STM8S103K3 have this, I don't think STM8S003F3P6 does. – Spehro Pefhany Aug 8 '18 at 17:09
• Thank you @SpehroPefhany. As you said the STM8S1... devices have it, and it's clearly said in the datasheets. My hope was that every device have a intrinsic marking number that I can acess. – Maurício Tochetto Aug 8 '18 at 18:30

#define SERIAL_NUM_ADDR 0x4926