summaryrefslogtreecommitdiff
path: root/nuttx/configs/lpcxpresso-lpc1768/tools
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-10 14:18:03 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-10 14:18:03 +0000
commitdbbf70ac72fd2770a5999f116a29d780eae5ce3c (patch)
tree17ea5e2c8e44c8e37d7d4261b5e0e38e1e192c0f /nuttx/configs/lpcxpresso-lpc1768/tools
parentd812dd803621c2151bd29fd9bffdac0be11d2714 (diff)
downloadpx4-nuttx-dbbf70ac72fd2770a5999f116a29d780eae5ce3c.tar.gz
px4-nuttx-dbbf70ac72fd2770a5999f116a29d780eae5ce3c.tar.bz2
px4-nuttx-dbbf70ac72fd2770a5999f116a29d780eae5ce3c.zip
Add support for Code Red
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3487 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/lpcxpresso-lpc1768/tools')
-rwxr-xr-xnuttx/configs/lpcxpresso-lpc1768/tools/dfu_util.sh41
1 files changed, 41 insertions, 0 deletions
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 <file>
+# -D --download file Write firmware from <file> 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
+
+