Skip to content

Commit

Permalink
Chaged to jlink
Browse files Browse the repository at this point in the history
  • Loading branch information
o7-machinehum committed Mar 29, 2024
1 parent 32d0029 commit 30261ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stm32-app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ARCH_FLAGS = -mthumb -mcpu=cortex-m0 $(FP_FLAGS)
# OpenOCD specific variables

OOCD ?= openocd
OOCD_INTERFACE ?= stlink
OOCD_INTERFACE ?= jlink
OOCD_TARGET ?= stm32g0x

################################################################################
Expand Down
2 changes: 1 addition & 1 deletion stm32-app/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ ifeq ($(BMP_PORT),)
ifeq ($(OOCD_FILE),)
%.flash: %.elf
@printf " FLASH $<\n"
(echo "halt; program $(realpath $(*).elf) verify reset" | nc -4 localhost 4444 2>/dev/null) || \
$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \
-c "transport select swd" \
-f target/$(OOCD_TARGET).cfg \
-c "reset_config srst_only connect_assert_srst; program $(*).elf verify reset exit"
else
Expand Down

0 comments on commit 30261ed

Please sign in to comment.