- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using FX3 in our project, in which I read Unique ID of FX3 with CyU3PReadDeviceRegisters() API. The address I am using is 0xE0055010 to read the Unique ID. But the Unique ID of three devices are same (ID - 59050000) out of five devices. Please guide us to solve this problem.
Thanks and Regards,
Vignesh Kumar R.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I attach a project with which you could read the E-fuse ID register.
You coudl find that the results from two FX3 chips are different.
Try to send the command as below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi yang,
Thanks for your response, now I tried with two registers 0xE0055010 as well as 0xE0055014. This time also I get same results for two devices.
1. First device:
0xE0055010 - 0x59050000
0xE0055014 - 0x09000000
2. Second device:
0xE0055010 - 0x59050000
0xE0055014 - 0x09000000
Is there anyway to overcome this.
Regards,
Vignesh Kumar R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yang,
Here is my observation,
uint32_t GetSerialNumber[1];
apiRetStatus = CyU3PReadDeviceRegisters((uint32_t *)lUIDRegsiterAddress,1,(uint32_t *)GetSerialNumber);
with this API if I declare the GetSerialNumber as locally it returns correct unique ID. But I declare the GetSerialNumber globally we are facing the problem. I done the above in release mode.
As well as I tested in debug mode, in debug mode there is no problem with declaration. It works fine at globally as well as locally.
Can you please comment on my observation.
Regards,
Vignesh Kumar R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, I think maybe you make something wrong on your side.
I don't met any problem whether the variable is defined as global one or local one, and I get same result in both debug mode and release mode.
If you indeed get different result, please check the propertites of your project, including the optimization and tool chain settings.
Try to keep the same settings to the project which I attach in previous reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
First difference is, the SDK version I am using is 1.3.1 but you are using 1.3.3 or 4 I guess. I have opened your project in 1.3.3 version, in that under optimization other optimization flag shows empty,
But in our project we are using the following value,
it seems to be this -Os indicates optimization by size I guess. if other optimization flags field is empty there is no optimization done I guess. Is that correct?
Best Regards,
Vignesh Kumar R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content