File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,8 @@ usage() {
30
30
echo " ## com_port: serial identifier (mandatory). Ex: /dev/ttyS0 or COM1"
31
31
echo " ##"
32
32
echo " ## Note: all trailing arguments will be passed to the $STM32CP_CLI "
33
- echo " ## They have to be valid commands for STM32 MCU"
34
- echo " ## Ex: -g: Run the code at the specified address"
35
- echo " ## -rst: Reset system"
36
- echo " ## -s: start automatically (optional)"
33
+ echo " ## They have to be valid commands for STM32CubeProgrammer cli"
34
+ echo " ## Ex: -rst: Reset system"
37
35
echo " ############################################################"
38
36
exit " $1 "
39
37
}
@@ -143,6 +141,6 @@ if [ $# -gt 0 ]; then
143
141
OPTS=" $* "
144
142
fi
145
143
146
- ${STM32CP_CLI} -c port=${PORT} ${MODE} ${ERASE: +" -e all" } -q -d " ${FILEPATH} " " ${ADDRESS} " " ${OPTS} "
144
+ ${STM32CP_CLI} -c port=${PORT} ${MODE} ${ERASE: +" -e all" } -q -d " ${FILEPATH} " " ${ADDRESS} " -s " ${ADDRESS} " " ${OPTS} "
147
145
148
146
exit $?
You can’t perform that action at this time.
0 commit comments