Skip to content

Commit

Permalink
Update stm32CubeProg.sh
Browse files Browse the repository at this point in the history
Signed-off-by: James Young <17939249+jamesy0ung@users.noreply.github.com>
  • Loading branch information
jamesy0ung authored and fpistm committed Oct 2, 2024
1 parent 4188be2 commit 19becf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stm32CubeProg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ usage() {
echo "Usage: $(basename "$0") [OPTIONS]...
Mandatory options:
-i, --interface <'swd'/'dfu'/'serial'> interface identifier: 'swd', 'dfu' or 'serial'
-i, --interface <'swd'/'dfu'/'serial'/'jlink'> interface identifier: 'swd', 'dfu', 'serial' or 'jlink'
-f, --file <path> file path to be downloaded: bin or hex
Optional options:
-e, --erase erase all sectors before flashing
Expand Down Expand Up @@ -224,6 +224,9 @@ case "${INTERFACE}" in
fi
${STM32CP_CLI} --connect port="${PORT}" "${RTS}" "${DTR}" "${ERASE}" --quietMode --download "${FILEPATH}" "${ADDRESS}" --start "${ADDRESS}"
;;
jlink)
${STM32CP_CLI} --connect port=JLINK ap=0 "${ERASE}" --quietMode --download "${FILEPATH}" "${ADDRESS}" --start "${ADDRESS}"
;;
*)
echo "Protocol unknown!" >&2
usage 4
Expand Down

0 comments on commit 19becf2

Please sign in to comment.