serial number

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
KeYp_290406
Level 4
Level 4
        Does each psoc 3 contain a unique serial number that's readable from firmware?   
0 Likes
15 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Take a look at this -

   

 

   

http://www.psocdeveloper.com/forums/viewtopic.php?f=43&t=11006

   

 

   

Regards, Dana.

0 Likes
KeYp_290406
Level 4
Level 4
        After following several links I see there is a silicon device ID. Do you know if this ID is unique to every individual chip? That would be most useful.   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

No, the device-ID is different for the device-type as PSoC3 and probably the pinning. It is usually red by the programmer and used to check if the project is built for the device. When you need an identification for your device the best could be to program it yourself into eeprom or flash.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

If you look at this there is a device ID, but it is not unique -

   

 

   

www.cypress.com/

   

 

   

Thats why the link was supplied for a silicon ID chip for addition to HW design

   

in the thread.

   

 

   

Regards.

0 Likes
Anonymous
Not applicable

 There is no unique serial number for each device. An aproach would be to write a serial number in flash at manufacturing/testing. also some periperal devices have unique serial IDs if you are using anyother device you could use a device with a unique serial.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Device with unique serial number -

   

 

   

http://www.maximintegrated.com/datasheet/index.mvp/id/2903

   

 

   

Regards, Dana.

0 Likes
KeYp_290406
Level 4
Level 4
        I have used the Maxim parts for this in the past. Some programmers allow you increment a value in flash with each new programming cycle. I don't think that feature is offered with psoc programmer. I'll have to give it some thought on how to enter a serial number somehow.   
0 Likes
Anonymous
Not applicable

We need to have some sort of serial number for our products as well. What we did is to have the CPU communicate to an external PC to get a serial number into the EEPROM.

   

If you have spare pin(s), you can use the pin(s) to read external counter and store in flash/EEPROM.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

If you look at the earlier links you will see that you can achieve a psuedo

   

serial number from the device ID. That is the granularity of the ID is down

   

to die position on a wafer withing a lot number. So contact Cypress, ask for

   

a production engineer, and find out what typical wafer lot size is. Then your serial

   

number will be replicated worst case by # wafers in that specific lot. Not absolutely

   

unique, but close.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

You can always use PSOC programmer's CLI and make your own programming script to write a serial to flash. But it will probably won't be practical on a high volume manufacturing facility.

0 Likes
Anonymous
Not applicable

Refer to these locations in the registers TRM of the device:

                                                                                                                                                                                                                                                                                                                                                           
#Register NameAddressComments
1 FLSHID_CUST_TABLES_Y_LOC0xC0100Y location of die on the wafer (row number)
2FLSHID_CUST_TABLES_X_LOC0xC0101X location of die on the wafer (column number)
3FLSHID_CUST_TABLES_WAFER_NUM0xC0102 Wafer Number: 1 to 24
4FLSHID_CUST_TABLES_LOT_LSB0xC0103LSB of lot number/wafer start
5FLSHID_CUST_TABLES_LOT_MSB0xC0104MSB of lot number/wafer start
6FLSHID_CUST_TABLES_WRK_WK0xC0105Work week: 1 to 53
7FLSHID_CUST_TABLES_FAB_YR0xC0106

fab[3:0] Fab Number: 4 or 5

year[3:0] Year: 0 to 9

   

Combining all together will be unique to a chip. But the only problem is that Year value ranges from 0 to 9 only. So there is a possiblity of repetition of these numbers every 10 years.

Silicon Unique ID of PSoC Device – KBA229815 says

Note: The uniqueness of the number is guaranteed for 10 years due to the die lot number having a 10-year lifecycle; even after 10 years, the probability of getting two identical numbers is very small.

You could always include an extra number in the firmware that you update every 10 years if this isn't good enough. 

0 Likes
Anonymous
Not applicable

 Apart from the above, you can use EEPROM to store custom unique id. In order to write that data into EEPROM directly while programming, you can use Programmer's COM Interface. Refer to "C:\Program Files\Cypress\Programmer\3.18.1\Documents" location for more details on how to use COM interface.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

@PSoC Rocks, glad you found this. In prior posts I had found a programming

   

specification that did not have wafer number in it, so ID was not unique in a lot.

   

But now the link I used for fourm to doc is broken, and no where in programming

   

spec is discussion of Device ID other than reference in programming specs.

   

 

   

I must be in another parallel universe.....

   

 

   

Regards, Dana.

0 Likes
KeYp_290406
Level 4
Level 4
        Thanks for posting the tables, I think that is the best way to build a unique serial number.   
0 Likes