summaryrefslogtreecommitdiff
path: root/nuttx/configs/lpcxpresso-lpc1768/tools/flash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/lpcxpresso-lpc1768/tools/flash.sh')
-rwxr-xr-xnuttx/configs/lpcxpresso-lpc1768/tools/flash.sh34
1 files changed, 27 insertions, 7 deletions
diff --git a/nuttx/configs/lpcxpresso-lpc1768/tools/flash.sh b/nuttx/configs/lpcxpresso-lpc1768/tools/flash.sh
index 6d3f890a7..0dc285132 100755
--- a/nuttx/configs/lpcxpresso-lpc1768/tools/flash.sh
+++ b/nuttx/configs/lpcxpresso-lpc1768/tools/flash.sh
@@ -35,14 +35,19 @@
####################################################################################
USAGE="$0 <nuttx-path>"
-echo "Assumptions:"
-echo ""
-echo " - Windows 7"
-echo " - LPCXpresso 4.6 installed at /cygdrive/c/nxp/lpcxpresso_3.6"
-echo " - AXF image built with Code Red"
-echo " - LPC17xx"
+
+echo "############################################################################"
+echo "# Assumptions:"
+echo "#"
+echo "# - Windows 7"
+echo "# - LPCXpresso 3.6 installed at /cygdrive/c/nxp/lpcxpresso_3.6"
+echo "# - AXF image built with Code Red"
+echo "# - LPC1768"
+echo "#"
+echo "# You will need to edit this is any of the above are false"
+echo "#"
+echo "############################################################################"
echo ""
-echo "You will need to edit this is any of the above are false"
# This is the default install location for binaries on Windows (note that this
# path could change with the Code Red version number)
@@ -121,6 +126,21 @@ cd ${BINDIR} || \
./${BOOTLPC} ${BOOTLPC_ARG} || \
{ echo "'${BOOTLPC} ${BOOTLPC_ARG}' Failed"; }
+echo ""
+echo "Wait a bit"
+echo "5..."
+sleep 1
+echo "4..."
+sleep 1
+echo "3..."
+sleep 1
+echo "2..."
+sleep 1
+echo "1..."
+sleep 1
+echo "0..."
+echo ""
+
# Then program the FLASH
./${FLASHUTIL} ${WIRE} -p${TARGET} -flash-load-exec="${NUTTXPATH}"