Command line tool for configuring USB-Serial devices in Windows OS - KBA233326
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:
- Create a configuration file (*.cyusb) with the desired parameters using the USB-Serial Configuration Utility present in the USB-Serial Software Development Kit.
- Open command prompt/Windows PowerShell in the folder that contains the fwDownload.exe utility.
- Use the following command to configure the device:
fwdownload.exe -c <config_file> -vid <vid> -pid <pid> -sn <serial number> [-i] [-h]
-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
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.
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.