Update jlink script path.
This commit is contained in:
parent
2396fecee2
commit
6fda6e16f8
|
@ -373,7 +373,7 @@ function(family_flash_jlink TARGET)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
file(GENERATE
|
file(GENERATE
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_$<CONFIG>.jlink
|
OUTPUT $<TARGET_FILE_DIR:${TARGET}>/${TARGET}.jlink
|
||||||
CONTENT "halt
|
CONTENT "halt
|
||||||
loadfile $<TARGET_FILE:${TARGET}>
|
loadfile $<TARGET_FILE:${TARGET}>
|
||||||
r
|
r
|
||||||
|
@ -383,7 +383,7 @@ exit"
|
||||||
|
|
||||||
add_custom_target(${TARGET}-jlink
|
add_custom_target(${TARGET}-jlink
|
||||||
DEPENDS ${TARGET}
|
DEPENDS ${TARGET}
|
||||||
COMMAND ${JLINKEXE} -device ${JLINK_DEVICE} -if swd -JTAGConf -1,-1 -speed auto -CommandFile ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${TARGET}.jlink
|
COMMAND ${JLINKEXE} -device ${JLINK_DEVICE} -if swd -JTAGConf -1,-1 -speed auto -CommandFile $<TARGET_FILE_DIR:${TARGET}>/${TARGET}.jlink
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue