File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,8 @@ usage() {
3030 echo " ## com_port: serial identifier (mandatory). Ex: /dev/ttyS0 or COM1"
3131 echo " ##"
3232 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"
3735 echo " ############################################################"
3836 exit " $1 "
3937}
@@ -143,6 +141,6 @@ if [ $# -gt 0 ]; then
143141 OPTS=" $* "
144142fi
145143
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} "
147145
148146exit $?
You can’t perform that action at this time.
0 commit comments