Cypress FX2LP controller read unique id register

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

cross mob
Aniket_
Level 2
Level 2
10 replies posted 25 sign-ins First like given

Hello,

      As per KBA89285 I found these register address  0xE507 to 0xE50C holds unique id but I am getting same id for each  Cypress FX2LP controller  . I have used following methods to declare in header file and these variable are used in main file used directly

// Unique ID

EXTERN xdata volatile BYTE UNIQUEID1 _AT_ 0xE507; // UID1
EXTERN xdata volatile BYTE UNIQUEID2 _AT_ 0xE508; // UID2
EXTERN xdata volatile BYTE UNIQUEID3 _AT_ 0xE509; // UID3
EXTERN xdata volatile BYTE UNIQUEID4 _AT_ 0xE50A; // UID4
EXTERN xdata volatile BYTE UNIQUEID5 _AT_ 0xE50B; // UID5
EXTERN xdata volatile BYTE UNIQUEID6 _AT_ 0xE50C; // UID6

is it right method?

- or Any other methods are available for reading unique id in fx2  ??

 

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi,

Each FX2LP has a unique ID stored in the registers as mentioned in the KBA article.

I have attached an example project which updates its serial number with the unique ID of the device. Please refer to the InsertSerialNumber() in the firmware for implementation.

Regards,

Mallika 

View solution in original post

0 Likes
4 Replies
lock attach
Attachments are accessible only for community members.
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi,

Each FX2LP has a unique ID stored in the registers as mentioned in the KBA article.

I have attached an example project which updates its serial number with the unique ID of the device. Please refer to the InsertSerialNumber() in the firmware for implementation.

Regards,

Mallika 

0 Likes

Hello,

Thank you for your response . I am getting different Unique Id for each FX2 controller if REVID is 1 but if  REVID is 4 I am getting 0 as unique id for each FX2 controller, which is not unique. Why Unique ID is NOT unique for REVID:4 FX2 controller?

0 Likes
Aniket_
Level 2
Level 2
10 replies posted 25 sign-ins First like given

Hello,

            Thank you for your response . Now I am able to read unique id in cypress FX2 controller.

            I observed one thing when my REVID register value is 0004 than my unique id registers values are zero and when my REVID register value is 0001 than I get different unique id register values in different controller. Any solution for this problem .

 

0 Likes