[CY7C65215-32LTXI] Automatically Set Device Serial Number

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello,

   

with the USB-Serial Configuration Utility is possible to set some string descriptors(1):

   

.Manufacturer
.Product
.Serial Number

   

The cyusbserial API, however, doesn't contain any function to set these strings.

   

Manually set the device serial number is adequate only during the prototyping phase.
Once in production, we will need to automatically generate and set a serial number for each device.

   

Could you please tell me how to do it?

   

Best regards,
Stefano Zanchi​

   

(1) see attached file

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi Zanchi​,

   

You can use the attached utility for programming the serial number to single/multiple devices. Password: cypress
Note: The last character of the serial number should be a digit.

   

Procedure to follow to load the configuration file with serial number:

   

1. Extract the zip file.

   

2. In the extracted folder put the configuration file that you want to program the device with.

   

3. Open the Command prompt and change the directory to the extracted folder.

   

4. Run the below command to download the configuration file onto single CY7C65213 device:

   

fwdownload.exe -c XXXX.cyusb -vid 0x04B4 -pid 0x0003 -mode vendor -sn XXXX -timeout 25000

   

Note:

   

A) In the above command, the pid is 0x0003 but you need to change that to the PID which the connected serial chip has while programming

   

B) the name of the configuration file in the above command should be changed from XXXX to the configuration file that you need to load

   

For multiple devices: the command will be:

   

fwdownload.exe -c XXXX.cyusb -vid 0x04B4 -pid 0003 -mode vendor -sn XXXX -timeout 25000 -b

   

When multiple devices with same vid, pid are present then the serial number will be incremented with every device.

   

 

   

Regards,

   

Hemanth
 

Hemanth

View solution in original post

0 Likes
2 Replies
lock attach
Attachments are accessible only for community members.
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi Zanchi​,

   

You can use the attached utility for programming the serial number to single/multiple devices. Password: cypress
Note: The last character of the serial number should be a digit.

   

Procedure to follow to load the configuration file with serial number:

   

1. Extract the zip file.

   

2. In the extracted folder put the configuration file that you want to program the device with.

   

3. Open the Command prompt and change the directory to the extracted folder.

   

4. Run the below command to download the configuration file onto single CY7C65213 device:

   

fwdownload.exe -c XXXX.cyusb -vid 0x04B4 -pid 0x0003 -mode vendor -sn XXXX -timeout 25000

   

Note:

   

A) In the above command, the pid is 0x0003 but you need to change that to the PID which the connected serial chip has while programming

   

B) the name of the configuration file in the above command should be changed from XXXX to the configuration file that you need to load

   

For multiple devices: the command will be:

   

fwdownload.exe -c XXXX.cyusb -vid 0x04B4 -pid 0003 -mode vendor -sn XXXX -timeout 25000 -b

   

When multiple devices with same vid, pid are present then the serial number will be incremented with every device.

   

 

   

Regards,

   

Hemanth
 

Hemanth
0 Likes
Anonymous
Not applicable

Hi Hemanth,

   

thank you for your detailed answer and the tool that you provided.

   

I hope other customers will find it useful.

   

Best regards,
Stefano Zanchi​

0 Likes