Skip to content

Commit 19becf2

Browse files
jamesy0ungfpistm
authored andcommittedOct 2, 2024
Update stm32CubeProg.sh
Signed-off-by: James Young <[email protected]>
1 parent 4188be2 commit 19becf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎stm32CubeProg.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ usage() {
2525
echo "Usage: $(basename "$0") [OPTIONS]...
2626
2727
Mandatory options:
28-
-i, --interface <'swd'/'dfu'/'serial'> interface identifier: 'swd', 'dfu' or 'serial'
28+
-i, --interface <'swd'/'dfu'/'serial'/'jlink'> interface identifier: 'swd', 'dfu', 'serial' or 'jlink'
2929
-f, --file <path> file path to be downloaded: bin or hex
3030
Optional options:
3131
-e, --erase erase all sectors before flashing
@@ -224,6 +224,9 @@ case "${INTERFACE}" in
224224
fi
225225
${STM32CP_CLI} --connect port="${PORT}" "${RTS}" "${DTR}" "${ERASE}" --quietMode --download "${FILEPATH}" "${ADDRESS}" --start "${ADDRESS}"
226226
;;
227+
jlink)
228+
${STM32CP_CLI} --connect port=JLINK ap=0 "${ERASE}" --quietMode --download "${FILEPATH}" "${ADDRESS}" --start "${ADDRESS}"
229+
;;
227230
*)
228231
echo "Protocol unknown!" >&2
229232
usage 4

0 commit comments

Comments
 (0)
Please sign in to comment.