You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
686 B
25 lines
686 B
# SPDX-License-Identifier: Apache-2.0 |
|
|
|
board_set_flasher_ifnset(openocd) |
|
board_set_debugger_ifnset(openocd) |
|
|
|
# "load_image" or "flash write_image erase"? |
|
if(CONFIG_X86 OR CONFIG_ARC) |
|
set_ifndef(OPENOCD_USE_LOAD_IMAGE YES) |
|
endif() |
|
if(OPENOCD_USE_LOAD_IMAGE) |
|
set_ifndef(OPENOCD_FLASH load_image) |
|
else() |
|
set_ifndef(OPENOCD_FLASH "flash write_image erase") |
|
endif() |
|
|
|
set(OPENOCD_CMD_LOAD_DEFAULT "${OPENOCD_FLASH}") |
|
set(OPENOCD_CMD_VERIFY_DEFAULT "verify_image") |
|
|
|
board_finalize_runner_args(openocd |
|
--cmd-load "${OPENOCD_CMD_LOAD_DEFAULT}" |
|
--cmd-verify "${OPENOCD_CMD_VERIFY_DEFAULT}" |
|
) |
|
|
|
# Manufacturer common options |
|
include(${CMAKE_CURRENT_LIST_DIR}/openocd-stm32.board.cmake)
|
|
|