Skip to content

Commit

Permalink
boards: stm32f4: use openocd board
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Mar 21, 2024
1 parent 2bccfb3 commit 686316b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
5 changes: 2 additions & 3 deletions boards/stm32f429idiscovery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ PLATFORM=stm32f429idiscovery
include ../Makefile.common

OPENOCD=openocd
OPENOCD_OPTIONS=-f openocd.cfg

# Default target for installing the kernel.
.PHONY: install
install: flash

.PHONY: flash-debug
flash-debug: $(TOCK_ROOT_DIRECTORY)target/$(TARGET)/debug/$(PLATFORM).bin
$(OPENOCD) $(OPENOCD_OPTIONS) -c "init; reset halt; program $< verify 0x08000000; reset; shutdown"
$(OPENOCD) -c "source [find board/stm32f429discovery.cfg]; init; reset halt; program $< verify 0x08000000; reset; shutdown"

.PHONY: flash
flash: $(TOCK_ROOT_DIRECTORY)target/$(TARGET)/release/$(PLATFORM).bin
$(OPENOCD) $(OPENOCD_OPTIONS) -c "init; reset halt; program $< verify 0x08000000; reset; shutdown"
$(OPENOCD) -c "source [find board/stm32f429discovery.cfg]; init; reset halt; program $< verify 0x08000000; reset; shutdown"
15 changes: 0 additions & 15 deletions boards/stm32f429idiscovery/openocd.cfg

This file was deleted.

0 comments on commit 686316b

Please sign in to comment.