cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S 96 bit Unique ID on Ride7

mighel84
Associate II
Posted on June 16, 2011 at 16:10

Hi,

I read Unique ID from address 0x48CD to 0x48D8, byte per byte, on two STM8S105C6 with functions provided by stm8s_flash.c [FLASH_readbyte()].

The results are:

x wafer: 0x001B

y wafer: 0x800D

n wafer: 0x00

lot n: 0x00312C28706431

and:

x wafer: 0x001C

y wafer: 0x002A

n wafer: 0x00

lot n: 0x002C2870643129

is ''y wafer 0x800D'' a sign-abs number?

what readout method do you use?

Thank you very much.

#stm8s-stm8-stm8s105-unique-id-96-bit-bits
2 REPLIES 2
davidbleakley9
Associate II
Posted on October 20, 2011 at 12:34

I am also using FLASH_readbyte(), I imagine that only ST would know this. You could try tech support.

mighel84
Associate II
Posted on October 20, 2011 at 21:50

Also I find out that on a STM8s105, the internal assert_param() in FLASH_ReadByte() function could catch addresses used by Unique ID, if you find problems try a simple:

#define FLASH_UNIQUE_ID_ADDRESS         0x48CD

    for ( i=0; i < 12; i++ )

    {

        stm8_unique_id[i] = (*((u8*)FLASH_UNIQUE_ID_ADDRESS+i));

    }