1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/common/remote/dist/reset.sh

18 lines
396 B
Bash
Raw Normal View History

#!/bin/sh
# This script resets a CC2538SF53 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 "r" >> $BINDIR/reset.seg
echo "g" >> $BINDIR/reset.seg
echo "exit" >> $BINDIR/reset.seg
# reset the board
JLinkExe -device CC2538SF53 < $BINDIR/reset.seg
echo ""