Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
##########################################################################################
# Functions and macro definition
##########################################################################################
function(AddCommandWhichHaltsDevice)
add_custom_target(halt_device
COMMAND ${OPENOCD_PROGRAM} -f board/stm32l4discovery.cfg -c "init; reset halt; exit"
VERBATIM
)
endfunction()
function(AddCommandWhichRunsDevice)
add_custom_target(run_device
COMMAND ${OPENOCD_PROGRAM} -f board/stm32l4discovery.cfg -c "init; reset run; exit"
VERBATIM
)
endfunction()
function(AddGdbServerRunner)
add_custom_target(run_gdb_server
COMMAND ${OPENOCD_PROGRAM} -f board/stm32l4discovery.cfg
VERBATIM
)
endfunction()
##########################################################################################
# MainScript
##########################################################################################
AddCommandWhichHaltsDevice()
AddCommandWhichRunsDevice()
AddGdbServerRunner()
7f78b7560This file is pinned to the selected release. Download the original to open it in your design tool.