diff options
| author | hathach <[email protected]> | 2023-05-19 16:27:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-05-19 16:27:07 +0700 |
| commit | 49d8d27770133ba4fe2f5d5798560e75df7824ce (patch) | |
| tree | 11fe549810cc64e93277be724ee17887fc986124 /hw/bsp/lpc55 | |
| parent | 270136e84af4f01c394be17fc0688461cf3d1f1c (diff) | |
improve flash target
Diffstat (limited to 'hw/bsp/lpc55')
| -rw-r--r-- | hw/bsp/lpc55/family.cmake | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/hw/bsp/lpc55/family.cmake b/hw/bsp/lpc55/family.cmake index 439f54170..611c88eb5 100644 --- a/hw/bsp/lpc55/family.cmake +++ b/hw/bsp/lpc55/family.cmake @@ -128,20 +128,9 @@ function(family_configure_target TARGET) ) #---------- Flash ---------- - # Flash using pyocd - add_custom_target(${TARGET}-pyocd - COMMAND pyocd flash -t ${PYOCD_TARGET} $<TARGET_FILE:${TARGET}> - ) - - # Flash using NXP LinkServer (redlink) - # https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/linkserver-for-microcontrollers:LINKERSERVER - # LinkServer has a bug that can only execute with full path otherwise it throws: - # realpath error: No such file or directory - execute_process(COMMAND which LinkServer OUTPUT_VARIABLE LINKSERVER_PATH OUTPUT_STRIP_TRAILING_WHITESPACE) - add_custom_target(${TARGET}-nxplink - COMMAND ${LINKSERVER_PATH} flash ${NXPLINK_DEVICE} load $<TARGET_FILE:${TARGET}> - ) - + family_flash_jlink(${TARGET}) + family_flash_nxplink(${TARGET}) + family_flash_pyocd(${TARGET}) endfunction() |
