@@ -831,7 +831,7 @@ if (USE_JLINK)
831831 COMMAND ${NRFJPROG} --program ${EXECUTABLE_FILE_NAME} .hex -f ${NRF_TARGET} --sectorerase
832832 COMMAND sleep 0.5s
833833 COMMAND ${NRFJPROG} --reset -f ${NRF_TARGET}
834- COMMENT "flashing ${EXECUTABLE_NAME } .hex"
834+ COMMENT "flashing ${EXECUTABLE_FILE_NAME } .hex"
835835 )
836836
837837elseif (USE_GDB_CLIENT)
@@ -841,8 +841,8 @@ elseif (USE_GDB_CLIENT)
841841 )
842842 add_custom_target ("FLASH_${EXECUTABLE_NAME} "
843843 DEPENDS ${EXECUTABLE_NAME}
844- 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
845- COMMENT "flashing ${EXECUTABLE_NAME } .hex"
844+ 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
845+ COMMENT "flashing ${EXECUTABLE_FILE_NAME } .hex"
846846 )
847847elseif (USE_OPENOCD)
848848 if (USE_CMSIS_DAP)
@@ -867,10 +867,10 @@ elseif (USE_OPENOCD)
867867 -c 'transport select swd'
868868 -c 'source [find target /nrf52.cfg]'
869869 -c 'halt'
870- -c "program \" ${EXECUTABLE_NAME } .hex\" "
870+ -c "program \" ${EXECUTABLE_FILE_NAME } .hex\" "
871871 -c 'reset'
872872 -c 'shutdown'
873- COMMENT "flashing ${EXECUTABLE_NAME } .hex"
873+ COMMENT "flashing ${EXECUTABLE_BIN_NAME } .hex"
874874 )
875875 else ()
876876 add_custom_target (FLASH_ERASE
@@ -879,8 +879,8 @@ elseif (USE_OPENOCD)
879879 )
880880 add_custom_target ("FLASH_${EXECUTABLE_NAME} "
881881 DEPENDS ${EXECUTABLE_NAME}
882- 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
883- COMMENT "flashing ${EXECUTABLE_NAME } .hex"
882+ 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
883+ COMMENT "flashing ${EXECUTABLE_FILE_NAME } .hex"
884884 )
885885 endif ()
886886endif ()
0 commit comments