Flash the correct file when running FLASH_pinetime-app with JLink
This commit is contained in:
parent
f0e1f98823
commit
a30282bdd5
|
@ -713,7 +713,7 @@ if (USE_JLINK)
|
||||||
)
|
)
|
||||||
add_custom_target("FLASH_${EXECUTABLE_NAME}"
|
add_custom_target("FLASH_${EXECUTABLE_NAME}"
|
||||||
DEPENDS ${EXECUTABLE_NAME}
|
DEPENDS ${EXECUTABLE_NAME}
|
||||||
COMMAND ${NRFJPROG} --program ${EXECUTABLE_NAME}.hex -f ${NRF_TARGET} --sectorerase
|
COMMAND ${NRFJPROG} --program ${EXECUTABLE_FILE_NAME}.hex -f ${NRF_TARGET} --sectorerase
|
||||||
COMMAND sleep 0.5s
|
COMMAND sleep 0.5s
|
||||||
COMMAND ${NRFJPROG} --reset -f ${NRF_TARGET}
|
COMMAND ${NRFJPROG} --reset -f ${NRF_TARGET}
|
||||||
COMMENT "flashing ${EXECUTABLE_NAME}.hex"
|
COMMENT "flashing ${EXECUTABLE_NAME}.hex"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user