Conquering the STM32F4 on the discovery board step-by-step. Commit history is tutorialesque, but not clean of course.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
518 B

include Makefile.conf
.PHONY: all compile clean
all: run
run: compile
$(OPENOCD) -s $(OPENOCD_SCRIPTS) -f board/$(OPENOCD_BOARD) \
-c "tcl_port disabled" \
-c "gdb_port disabled" \
-c "program ./src/raw407cxx.elf" \
-c reset \
-c shutdown
compile:
$(MAKE) -C libs/cmsis
$(MAKE) -C libs/STM32F4xx_HAL_Driver/Src
$(MAKE) -C libs/st_usb
$(MAKE) -C src
clean:
$(MAKE) -C src clean
clean-all: clean
$(MAKE) -C libs/cmsis clean
$(MAKE) -C libs/STM32F4xx_HAL_Driver/Src clean
$(MAKE) -C libs/st_usb clean