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

USB low-full-high speed peripherals

Aniket_
Level 1
10 sign-ins 5 replies posted 5 sign-ins
Level 1

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
MallikaK_22
Moderator
Moderator 250 solutions authored 500 replies posted 250 replies posted
Moderator

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
MallikaK_22
Moderator
Moderator 250 solutions authored 500 replies posted 250 replies posted
Moderator

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
Aniket_
Level 1
10 sign-ins 5 replies posted 5 sign-ins
Level 1

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 1
10 sign-ins 5 replies posted 5 sign-ins
Level 1

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