-2
\$\begingroup\$

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?

Thanks in advance!!!

\$\endgroup\$
  • 1
    \$\begingroup\$ Have you like, tried looking at the reference manual? \$\endgroup\$ – PlasmaHH Aug 8 '18 at 14:56
  • \$\begingroup\$ It's not shown in the datasheet: static6.arrow.com/aropdfconversion/… \$\endgroup\$ – Michel Keijzers Aug 8 '18 at 14:59
  • 1
    \$\begingroup\$ But you should look in reference manual as well. There should be some 96-bit encoded ID if my internet search is correct. \$\endgroup\$ – Eugene Sh. Aug 8 '18 at 15:07
  • 1
    \$\begingroup\$ STM8S103F2 STM8S103F3 STM8S103K3 have this, I don't think STM8S003F3P6 does. \$\endgroup\$ – Spehro Pefhany Aug 8 '18 at 17:09
  • \$\begingroup\$ 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. \$\endgroup\$ – Maurício Tochetto Aug 8 '18 at 18:30
0
\$\begingroup\$

For all who need this information: The STM8S0... series has an unique ID number as the STM8S1... series. It's located in the same address that in STM8S1... but it's only not said in datasheet.

Thank you for who help!!!

\$\endgroup\$
  • 2
    \$\begingroup\$ Interesting. Many of ST's ARM parts also turn out to have extra memory or features that officially aren't in that particularly version but are documented for a related one. However one thing to be wary of is that unofficial features might not fully work. For example, an unofficial unique ID might not be fully unique. \$\endgroup\$ – Chris Stratton Aug 10 '18 at 14:59
0
\$\begingroup\$
#define SERIAL_NUM_ADDR 0x4926

const uint8_t * const serial= (uint8_t *)SERIAL_NUM_ADDR;

serial - you can use as a normal array ( pointer ) with 12 bytes length

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.