You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2016/04/01 22:44:50 UTC

incubator-mynewt-core git commit: corrected filename from bmd300eval_dowload.sh to bmd300eval_download.sh

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 3e7dd55b3 -> 619d02f5d


corrected filename from bmd300eval_dowload.sh to bmd300eval_download.sh


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/619d02f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/619d02f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/619d02f5

Branch: refs/heads/develop
Commit: 619d02f5dda69679550ec80c31aa148bfed5bb4f
Parents: 3e7dd55
Author: aditihilbert <ad...@runtime.io>
Authored: Fri Apr 1 13:41:26 2016 -0700
Committer: aditihilbert <ad...@runtime.io>
Committed: Fri Apr 1 13:41:26 2016 -0700

----------------------------------------------------------------------
 hw/bsp/bmd300eval/bmd300eval_dowload.sh  | 70 ---------------------------
 hw/bsp/bmd300eval/bmd300eval_download.sh | 70 +++++++++++++++++++++++++++
 2 files changed, 70 insertions(+), 70 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/619d02f5/hw/bsp/bmd300eval/bmd300eval_dowload.sh
----------------------------------------------------------------------
diff --git a/hw/bsp/bmd300eval/bmd300eval_dowload.sh b/hw/bsp/bmd300eval/bmd300eval_dowload.sh
deleted file mode 100755
index c0259c1..0000000
--- a/hw/bsp/bmd300eval/bmd300eval_dowload.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-# Called: $0 <bsp_directory_path> <binary> [features...]
-#  - bsp_directory_path is absolute path to hw/bsp/bsp_name
-#  - binary is the path to prefix to target binary, .elf.bin appended to this
-#    name is the raw binary format of the binary.
-#  - features are the target features. So you can have e.g. different
-#    flash offset for bootloader 'feature'
-# 
-#
-if [ $# -lt 2 ]; then
-    echo "Need binary to download"
-    exit 1
-fi
-
-FLASH_OFFSET=0x0
-FILE_NAME=$2.elf.bin
-JLINK_SCRIPT=.download.jlink
-
-echo "Downloading" $FILE_NAME "to" $FLASH_OFFSET
-
-cat > $JLINK_SCRIPT <<EOF
-w 4001e504 1
-loadbin $FILE_NAME $FLASH_OFFSET
-q
-EOF
-
-msgs=`JLinkExe -device nRF52 -speed 4000 -if SWD $JLINK_SCRIPT 2>&1`
-
-# Echo output from script run, so newt can show it if things go wrong.
-echo $msgs
-rm $JLINK_SCRIPT
-
-error=`echo $msgs | grep error`
-if [ -n "$error" ]; then
-    exit 1
-fi
-
-error=`echo $msgs | grep -i failed`
-if [ -n "$error" ]; then
-    exit 1
-fi
-
-error=`echo $msgs | grep -i "unknown / supported"`
-if [ -n "$error" ]; then
-    exit 1
-fi
-
-error=`echo $msgs | grep -i "not found"`
-if [ -n "$error" ]; then
-    exit 1
-fi
-
-exit 0

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/619d02f5/hw/bsp/bmd300eval/bmd300eval_download.sh
----------------------------------------------------------------------
diff --git a/hw/bsp/bmd300eval/bmd300eval_download.sh b/hw/bsp/bmd300eval/bmd300eval_download.sh
new file mode 100755
index 0000000..c0259c1
--- /dev/null
+++ b/hw/bsp/bmd300eval/bmd300eval_download.sh
@@ -0,0 +1,70 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# Called: $0 <bsp_directory_path> <binary> [features...]
+#  - bsp_directory_path is absolute path to hw/bsp/bsp_name
+#  - binary is the path to prefix to target binary, .elf.bin appended to this
+#    name is the raw binary format of the binary.
+#  - features are the target features. So you can have e.g. different
+#    flash offset for bootloader 'feature'
+# 
+#
+if [ $# -lt 2 ]; then
+    echo "Need binary to download"
+    exit 1
+fi
+
+FLASH_OFFSET=0x0
+FILE_NAME=$2.elf.bin
+JLINK_SCRIPT=.download.jlink
+
+echo "Downloading" $FILE_NAME "to" $FLASH_OFFSET
+
+cat > $JLINK_SCRIPT <<EOF
+w 4001e504 1
+loadbin $FILE_NAME $FLASH_OFFSET
+q
+EOF
+
+msgs=`JLinkExe -device nRF52 -speed 4000 -if SWD $JLINK_SCRIPT 2>&1`
+
+# Echo output from script run, so newt can show it if things go wrong.
+echo $msgs
+rm $JLINK_SCRIPT
+
+error=`echo $msgs | grep error`
+if [ -n "$error" ]; then
+    exit 1
+fi
+
+error=`echo $msgs | grep -i failed`
+if [ -n "$error" ]; then
+    exit 1
+fi
+
+error=`echo $msgs | grep -i "unknown / supported"`
+if [ -n "$error" ]; then
+    exit 1
+fi
+
+error=`echo $msgs | grep -i "not found"`
+if [ -n "$error" ]; then
+    exit 1
+fi
+
+exit 0