Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions tests/functional/stm32/nucleo_f439zi/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,19 @@ trap 'cleanup' EXIT
# ---- Flash the device ----
if [ -z "$STLINK_SERIAL_NUMBER" ]; then
echo "OpenOCD will autodiscover STLink programming interface."
openocd -f board/stm32f429discovery.cfg -c "program $BINARY_PATH verify reset exit"
openocd -f board/stm32f429discovery.cfg \
-c "gdb_port disabled" \
-c "telnet_port disabled" \
-c "tcl_port disabled" \
-c "program $BINARY_PATH verify reset exit"
else
OPENOCD_SERIAL_NUMBER_ARG=
echo "OpenOCD will use STLink serial number $STLINK_SERIAL_NUMBER for programming."
openocd -f board/stm32f429discovery.cfg -c "adapter serial $STLINK_SERIAL_NUMBER" -c "program $BINARY_PATH verify reset exit"
openocd -f board/stm32f429discovery.cfg \
-c "gdb_port disabled" \
-c "telnet_port disabled" \
-c "tcl_port disabled" \
-c "adapter serial $STLINK_SERIAL_NUMBER" \
-c "program $BINARY_PATH verify reset exit"
fi

# ---- Wait for serial reader to finish ----
Expand Down
14 changes: 11 additions & 3 deletions tests/functional/stm32/nucleo_l432kc/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,19 @@ trap 'cleanup' EXIT
# ---- Flash the device ----
if [ -z "$STLINK_SERIAL_NUMBER" ]; then
echo "OpenOCD will autodiscover STLink programming interface."
openocd -f board/st_nucleo_l4.cfg -c "program $BINARY_PATH verify reset exit"
openocd -f board/st_nucleo_l4.cfg \
-c "gdb_port disabled" \
-c "telnet_port disabled" \
-c "tcl_port disabled" \
-c "program $BINARY_PATH verify reset exit"
else
OPENOCD_SERIAL_NUMBER_ARG=
echo "OpenOCD will use STLink serial number $STLINK_SERIAL_NUMBER for programming."
openocd -f board/st_nucleo_l4.cfg -c "adapter serial $STLINK_SERIAL_NUMBER" -c "program $BINARY_PATH verify reset exit"
openocd -f board/st_nucleo_l4.cfg \
-c "gdb_port disabled" \
-c "telnet_port disabled" \
-c "tcl_port disabled" \
-c "adapter serial $STLINK_SERIAL_NUMBER" \
-c "program $BINARY_PATH verify reset exit"
fi

# ---- Wait for serial reader to finish ----
Expand Down
14 changes: 11 additions & 3 deletions tests/functional/stm32/nucleo_u545re_q/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,19 @@ trap 'cleanup' EXIT
# ---- Flash the device ----
if [ -z "$STLINK_SERIAL_NUMBER" ]; then
echo "OpenOCD will autodiscover STLink programming interface."
openocd -f "$SCRIPT_DIR/nucleo-u5xx.cfg" -c "program $BINARY_PATH verify reset exit"
openocd -f "$SCRIPT_DIR/nucleo-u5xx.cfg" \
-c "gdb_port disabled" \
-c "telnet_port disabled" \
-c "tcl_port disabled" \
-c "program $BINARY_PATH verify reset exit"
else
OPENOCD_SERIAL_NUMBER_ARG=
echo "OpenOCD will use STLink serial number $STLINK_SERIAL_NUMBER for programming."
openocd -f "$SCRIPT_DIR/nucleo-u5xx.cfg" -c "adapter serial $STLINK_SERIAL_NUMBER" -c "program $BINARY_PATH verify reset exit"
openocd -f "$SCRIPT_DIR/nucleo-u5xx.cfg" \
-c "gdb_port disabled" \
-c "telnet_port disabled" \
-c "tcl_port disabled" \
-c "adapter serial $STLINK_SERIAL_NUMBER" \
-c "program $BINARY_PATH verify reset exit"
fi

# ---- Wait for serial reader to finish ----
Expand Down