Skip to content

Commit c9b5343

Browse files
committed
feat(stm32CubeProg): add start at specified address
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 4f388d2 commit c9b5343

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: stm32CubeProg.sh

+3-5
Original file line numberDiff line numberDiff 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="$*"
144142
fi
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

148146
exit $?

0 commit comments

Comments
 (0)