1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/openmote-cc2538/dist/reset.sh
Aaron Sowry 7759611713 Rename 'openmote' board to 'openmote-cc2538'
This is to avoid ambiguity with future versions of the OpenMote platform.
2016-01-23 08:06:15 +13:00

18 lines
396 B
Bash
Executable File

#!/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 ""