1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/pca10005/dist/reset.sh
Hauke Petersen f4c68cf466 board/pca1000x: added/fixed dist scripts
- pca10000: added author to debug.sh
- pca10005: added debug and reset scripts
- pca10005: fixed flash script
- pca10005: adjusted env vars in Makefile.include
2014-08-27 15:15:20 +02:00

19 lines
440 B
Bash
Executable File

#!/bin/sh
# This script resets a nrf51822 target using JLink called
# with a pre-defined reset sequence.
# @author Hauke Petersen <hauke.petersen@fu-berlin.de>
BINDIR=$1
# create JLink command file for resetting the board
echo "device nrf51822" > $BINDIR/reset.seg
echo "r" >> $BINDIR/reset.seg
echo "g" >> $BINDIR/reset.seg
echo "exit" >> $BINDIR/reset.seg
echo " " >> $BINDIR/reset.seg
# reset the board
JLinkExe < $BINDIR/reset.seg