2011-06-16 07:10 AM
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-bits2011-10-20 03:34 AM
I am also using FLASH_readbyte(), I imagine that only ST would know this. You could try tech support.
2011-10-20 12:50 PM
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)); }