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

Command line tool for configuring USB-Serial devices in Windows OS - KBA233326

Command line tool for configuring USB-Serial devices in Windows OS - KBA233326

ArunKumarChoul
Employee
Employee
50 questions asked 50 sign-ins 25 sign-ins

Command line tool for configuring USB-Serial devices in Windows OS - KBA233326

Version: **

Question: Is there a command line tool to configure USB-Serial devices in Windows OS?

Answer: Yes, the USB-Serial command line configuration utility is attached with this KBA.

Steps to use the utility are as follows:

  1. Create a configuration file (*.cyusb) with the desired parameters using the USB-Serial Configuration Utility present in the USB-Serial Software Development Kit.
  2. Open command prompt/Windows PowerShell in the folder that contains the fwDownload.exe utility.
  3. Use the following command to configure the device:
    fwdownload.exe -c <config_file> -vid <vid> -pid <pid> -sn <serial number> [-i] [-h]

where,

-c      Path to the new configuration file (*.cyusb) for the USB-Serial device
-vid    Device USB-IF VID that needs firmware update
-pid    Device PID that needs firmware update
-sn     Starting serial number to program; this will be incremented if more than one device is connected with the same VID and PID
-i      Current firmware information (optional)
-h      Display command usage help (optional)

Example: fwDownload.exe "default_CY7C65215A-32LTXI.cyusb" -vid 0x04b4 -pid 0x0005 -sn 1

ArunKumarChoul_0-1623931509622.png

Figure 1. fwDownload.exe command to configure a device

4.  Upon successful configuration, the device configured is power-cycled and the “Programming Completed successfully” message is displayed as shown.

ArunKumarChoul_1-1623931671841.png

Figure 2. Command line utility showing "Programming Completed successfully" message

Note: To configure the USB-Serial device, make sure that its manufacturing interface is enabled and bound to the CYUSB3 driver.

 

Attachments
0 Likes
541 Views