Skip to content

Commit

Permalink
nrf52840dk configuration boards: add flash-openocd
Browse files Browse the repository at this point in the history
  • Loading branch information
lschuermann committed May 8, 2024
1 parent b510623 commit 81a7f97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions boards/configurations/nrf52840dk/nrf52840dk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ install: flash
.PHONY: flash
flash: $(TOCK_ROOT_DIRECTORY)target/$(TARGET)/release/$(PLATFORM).bin
$(TOCKLOADER) $(TOCKLOADER_GENERAL_FLAGS) flash --address $(KERNEL_ADDRESS) --board nrf52dk --jlink $<

# Upload the kernel over JTAG using OpenOCD
.PHONY: flash-openocd
flash-openocd: $(TOCK_ROOT_DIRECTORY)target/$(TARGET)/release/$(PLATFORM).bin
$(TOCKLOADER) $(TOCKLOADER_GENERAL_FLAGS) flash --address $(KERNEL_ADDRESS) --board nrf52dk --openocd $<

0 comments on commit 81a7f97

Please sign in to comment.