Last active
May 9, 2016 00:26
-
-
Save rafacouto/aab4643ccbf38192f07da4f942f7aed5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENOCD_SCRIPTS = /usr/share/openocd/scripts | |
#OPENOCD_INTERFACE = $(OPENOCD_SCRIPTS)/interface/stlink-v2.cfg | |
OPENOCD_INTERFACE = $(OPENOCD_SCRIPTS)/interface/jlink.cfg | |
OPENOCD_TARGET = $(OPENOCD_SCRIPTS)/target/stm32f1x.cfg | |
#OPENOCD_TARGET = $(OPENOCD_SCRIPTS)/target/stm32f4x.cfg | |
flash: $(BUILDDIR)/$(PROJECT).elf | |
openocd -f $(OPENOCD_INTERFACE) \ | |
-f $(OPENOCD_TARGET) \ | |
-c 'program $(BUILDDIR)/$(PROJECT).elf verify reset' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment