-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcmdlineTest5.sh
More file actions
executable file
·32 lines (26 loc) · 1.22 KB
/
Copy pathcmdlineTest5.sh
File metadata and controls
executable file
·32 lines (26 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# This file is part of progstm32.
#
# Copyright (C) 2018, Rishi Gupta. All rights reserved.
#
# The progstm32 is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# The progstm32 is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation,Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
source jar_names.sh
PORT=/dev/ttyUSB0
### Don't modify anything after this line, run this test from tests folder only ###
cd "$(dirname '$0')"/../build
jars_in_classpath=".:$spttyjar:$spcorejar:$progstm32uart:$progstm32app"
# read unprotect
echo -e "\n---> enter/exit bootloader mode"
java -cp $jars_in_classpath progstm32.ProgSTM32 -d $PORT -er -dtr 0 0 -rts 1 0 -k -p -i -t 5 -ex -dtr 0 0 -rts 0 0