@@ -878,7 +878,7 @@ if (USE_JLINK)
878878 COMMAND ${NRFJPROG} --program ${EXECUTABLE_FILE_NAME} .hex -f ${NRF_TARGET} --sectorerase
879879 COMMAND sleep 0.5s
880880 COMMAND ${NRFJPROG} --reset -f ${NRF_TARGET}
881- COMMENT "flashing ${EXECUTABLE_NAME } .hex"
881+ COMMENT "flashing ${EXECUTABLE_FILE_NAME } .hex"
882882 )
883883
884884elseif (USE_GDB_CLIENT)
@@ -888,8 +888,8 @@ elseif (USE_GDB_CLIENT)
888888 )
889889 add_custom_target ("FLASH_${EXECUTABLE_NAME} "
890890 DEPENDS ${EXECUTABLE_NAME}
891- COMMAND ${GDB_CLIENT_BIN_PATH} -nx --batch -ex 'target extended-remote ${GDB_CLIENT_TARGET_REMOTE} ' -ex 'monitor swdp_scan' -ex 'attach 1' -ex 'load' -ex 'kill' ${EXECUTABLE_NAME } .hex
892- COMMENT "flashing ${EXECUTABLE_NAME } .hex"
891+ COMMAND ${GDB_CLIENT_BIN_PATH} -nx --batch -ex 'target extended-remote ${GDB_CLIENT_TARGET_REMOTE} ' -ex 'monitor swdp_scan' -ex 'attach 1' -ex 'load' -ex 'kill' ${EXECUTABLE_FILE_NAME } .hex
892+ COMMENT "flashing ${EXECUTABLE_FILE_NAME } .hex"
893893 )
894894elseif (USE_OPENOCD)
895895 if (USE_CMSIS_DAP)
@@ -914,10 +914,10 @@ elseif (USE_OPENOCD)
914914 -c 'transport select swd'
915915 -c 'source [find target /nrf52.cfg]'
916916 -c 'halt'
917- -c "program \" ${EXECUTABLE_NAME } .hex\" "
917+ -c "program \" ${EXECUTABLE_FILE_NAME } .hex\" "
918918 -c 'reset'
919919 -c 'shutdown'
920- COMMENT "flashing ${EXECUTABLE_NAME } .hex"
920+ COMMENT "flashing ${EXECUTABLE_BIN_NAME } .hex"
921921 )
922922 else ()
923923 add_custom_target (FLASH_ERASE
@@ -926,8 +926,8 @@ elseif (USE_OPENOCD)
926926 )
927927 add_custom_target ("FLASH_${EXECUTABLE_NAME} "
928928 DEPENDS ${EXECUTABLE_NAME}
929- COMMAND ${OPENOCD_BIN_PATH} -c "tcl_port disabled" -c "gdb_port 3333" -c "telnet_port 4444" -f interface /stlink.cfg -c 'transport select hla_swd' -f target /nrf52.cfg -c "program \" ${EXECUTABLE_NAME } .hex\" " -c reset -c shutdown
930- COMMENT "flashing ${EXECUTABLE_NAME } .hex"
929+ COMMAND ${OPENOCD_BIN_PATH} -c "tcl_port disabled" -c "gdb_port 3333" -c "telnet_port 4444" -f interface /stlink.cfg -c 'transport select hla_swd' -f target /nrf52.cfg -c "program \" ${EXECUTABLE_FILE_NAME } .hex\" " -c reset -c shutdown
930+ COMMENT "flashing ${EXECUTABLE_FILE_NAME } .hex"
931931 )
932932 endif ()
933933endif ()
0 commit comments