
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||
|
|||
OCD_BIN=/opt/local/bin/openocd |
|||
OCD_SCRIPTS=/opt/local/share/openocd/scripts |
|||
OCD_BOARD=stm32f4discovery.cfg |
|||
|
|||
PHONY: all compile run |
|||
|
|||
all: compile run |
|||
|
|||
compile: |
|||
cmake --build cmake-build-debug --verbose |
|||
|
|||
run: |
|||
$(OCD_BIN) -s $(OCD_SCRIPTS) -f board/$(OCD_BOARD) \
|
|||
-c "tcl_port disabled" \
|
|||
-c "gdb_port disabled" \
|
|||
-c "program ./cmake-build-debug/raw407cxx.elf" \
|
|||
-c reset \
|
|||
-c shutdown |
Loading…
Reference in new issue