beautypg.com

Maxim Integrated 73S12xxF USB-CCID Linux DFU Host Application User Manual

Page 6

background image

73S12xxF USB-CCID Linux DFU Host Application Users Guide

UG_12xxF_038

6

Rev. 1.0

[root@lx95t src]# ./dfu-util -l
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Found Runtime: [0x1862:0x0001] devnum=2, cfg=0, intf=1, alt=0,
name="Teridian Semiconductors", str_idx=1
[root@lx95t src]#

Among the information displayed in the output above, take note of the vendor:product ID pair, and alt
(alternate interface), whose value is 0x1862:0x0001, and 0, respectively. This information is needed
for the next command.

5. To download (upgrade) the firmware in the device, you need to run dfu-util program with the

following options:

-

d 0x1862:0x0001 This option identifies the device through its vender ID and product ID.

-i 0

This option specifies the DFU interface by alternate interface number.

-D

This option specifies the image file to be downloaded into the device.


(For an explanation of all available command options for dfu-util program, run the program with
the –h option.)

Now from the same directory as in step 4, execute dfu-util program again, this time with the
options described above, as follows:

./dfu-util -d 0x1862:0x0001 -i 0 -D ../images/ccidusb-MSDFU.hex

While the program is being run, the following messages are displayed:

root@lx95t src]#
[root@lx95t src]# ./dfu-util -d 0x1862:0x0001 -i 0 -D /root/dfu-hex-
files/ccidusb-MSDFU.hex
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Opening USB Device 0x1862:0x0001...
Claiming USB DFU Runtime Interface...
Device really in Runtime Mode, send DFU detach request...
Resetting USB...
Opening USB Device...
Found Runtime: [0x1862:0x1100] devnum=3, cfg=0, intf=0, alt=0,
name="Teridian Semiconductor ", str_idx=1
Claiming USB DFU Interface...
dfuStatus = 00 (OK)
dfuState = 02 (dfuIDLE)

dfuIDLE, continuing
Transfer Size = 0x0010
Starting download:
[############################################################] finished!
dfuStatus = 00 (OK)
dfuState = 08 (dfuMANIFEST-WAIT-RESET)

state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
[root@lx95t src]#