From dbbf70ac72fd2770a5999f116a29d780eae5ce3c Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 10 Apr 2011 14:18:03 +0000 Subject: Add support for Code Red git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3487 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/lpcxpresso-lpc1768/tools/dfu_util.sh | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 nuttx/configs/lpcxpresso-lpc1768/tools/dfu_util.sh (limited to 'nuttx/configs/lpcxpresso-lpc1768/tools') diff --git a/nuttx/configs/lpcxpresso-lpc1768/tools/dfu_util.sh b/nuttx/configs/lpcxpresso-lpc1768/tools/dfu_util.sh new file mode 100755 index 000000000..06e6912d6 --- /dev/null +++ b/nuttx/configs/lpcxpresso-lpc1768/tools/dfu_util.sh @@ -0,0 +1,41 @@ +#!/bin/bash +#################################################################################### +# dfu-util - (C) 2007-2008 by OpenMoko Inc. +# This program is Free Software and has ABSOLUTELY NO WARRANTY +# +# You need to specify one of -D or -U +# Usage: dfu-util [options] ... +# -h --help Print this help message +# -V --version Print the version number +# -l --list List the currently attached DFU capable USB devices +# -d --device vendor:product Specify Vendor/Product ID of DFU device +# -p --path bus-port. ... .port Specify path to DFU device +# -c --cfg config_nr Specify the Configuration of DFU device +# -i --intf intf_nr Specify the DFU Interface number +# -a --alt alt Specify the Altsetting of the DFU Interface +# by name or by number +# -t --transfer-size Specify the number of bytes per USB Transfer +# -U --upload file Read firmware from device into +# -D --download file Write firmware from into device +# -R --reset Issue USB Reset signalling once we're finished +#################################################################################### +# Example: +# +# /usr/local/LPCXpresso/bin/Flash$ dfu-util -l +# dfu-util - (C) 2007-2008 by OpenMoko Inc. +# This program is Free Software and has ABSOLUTELY NO WARRANTY +# +# Found Runtime: [0x0471:0xdf55] devnum=3, cfg=0, intf=0, alt=0, name="UNDEFINED" +# +# dmesg: +# [ 1.472016] usb 1-3: new high speed USB device using ehci_hcd and address 3 +# [ 1.604784] usb 1-3: configuration #1 chosen from 1 choice +# +#################################################################################### + +DFU_UTIL=/usr/local/LPCXpresso/bin/dfu-util +NUTTX=/home/patacongo/projects/nuttx/nuttx/trunk/nuttx/nuttx +#${DFU_UTIL} -d nxp:lpc1768 -p 1-3 -c 0 -i 0 -a 0 -D ${NUTTX} -R +${DFU_UTIL} -d nxp:lpc1768 -D ${NUTTX} -R + + -- cgit v1.2.3