Skip to content

Commit b91eab8

Browse files
Response to comments
1 parent 9fd7794 commit b91eab8

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

tools/cmake/app.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ include(${CMAKE_CURRENT_LIST_DIR}/create_distro.cmake)
6666

6767
# load upload method
6868
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/upload_methods)
69-
include(${CMAKE_CURRENT_LIST_DIR}/UploadMethodManager.cmake)
69+
include(${CMAKE_CURRENT_LIST_DIR}/UploadMethodManager.cmake)

tools/cmake/upload_methods/FindOpenOCD.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
set(OpenOCD_PATHS "")
1414

15-
# try to figure out where JLink may be installed.
15+
# try to figure out where OpenOCD may be installed.
1616
if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
1717

1818
# on Windows, assume that the user extracted the binaries to Program Files

tools/cmake/upload_methods/UploadMethodJLINK.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ add_custom_target(gdbserver
5858
-LocalhostOnly
5959
-noIR
6060
-port ${GDB_PORT}
61-
USES_TERMINAL)
61+
USES_TERMINAL)

tools/cmake/upload_methods/UploadMethodMBED.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ function(gen_upload_target TARGET_NAME BIN_FILE)
3232

3333
add_dependencies(flash-${TARGET_NAME} ${TARGET_NAME})
3434

35-
endfunction(gen_upload_target)
35+
endfunction(gen_upload_target)

tools/cmake/upload_methods/UploadMethodNONE.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ function(gen_upload_target TARGET_NAME BIN_FILE)
1313

1414
# do nothing
1515

16-
endfunction(gen_upload_target)
16+
endfunction(gen_upload_target)

tools/cmake/upload_methods/UploadMethodOPENOCD.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ add_custom_target(gdbserver
3131
${OpenOCD}
3232
${OPENOCD_CHIP_CONFIG_COMMANDS}
3333
-c "gdb_port ${GDB_PORT}"
34-
USES_TERMINAL)
34+
USES_TERMINAL)

tools/cmake/upload_methods/UploadMethodPYOCD.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ add_custom_target(gdbserver
5555
-p ${GDB_PORT}
5656
--persist
5757
--semihosting
58-
USES_TERMINAL)
58+
USES_TERMINAL)

tools/cmake/upload_methods/UploadMethodSTM32CUBE.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ add_custom_target(gdbserver
5858
--persistent # don't close debugger after GDB disconnects, matches behavior of other tools like J-Link
5959
-p ${GDB_PORT}
6060
${STM32CUBE_GDB_PROBE_ARGS}
61-
USES_TERMINAL)
61+
USES_TERMINAL)

tools/cmake/upload_methods/install_bin_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def error(lines, code=-1):
4141

4242
if len(sys.argv) < 3:
4343
print("Error: Usage: python " + sys.argv[0] + " <path to bin file> <Mbed OS target name> <serial baudrate for sending break> [Target UID for distinguishing multiple targets]")
44-
exit(1)
44+
sys.exit(1)
4545

4646
bin_file = sys.argv[1]
4747
target_name = sys.argv[2]

0 commit comments

Comments
 (0)