Merge pull request #135 from ryanplusplus/flash-correct-file-with-jlink

Flash the correct file when running FLASH_pinetime-app with JLink
This commit is contained in:
JF002 2020-11-17 19:13:29 +01:00 committed by GitHub
commit f5aecb3e84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -713,7 +713,7 @@ if (USE_JLINK)
)
add_custom_target("FLASH_${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 ${NRFJPROG} --reset -f ${NRF_TARGET}
COMMENT "flashing ${EXECUTABLE_NAME}.hex"