From 7640ec681b3b7c7b505a1841eb5bcab0200d840c Mon Sep 17 00:00:00 2001 From: Rene Hopf Date: Wed, 11 Dec 2013 21:33:57 +0100 Subject: [PATCH] new makefile --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 806fc321..4d064a2e 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ again: clean all # Flash the STM32F4 burn: main.elf - st-flash write $(PROJ_NAME).bin 0x8000000 + st-flash --reset write $(PROJ_NAME).bin 0x8000000 # Create tags; assumes ctags exists ctags: @@ -57,6 +57,9 @@ lib: $(MAKE) -C lib proj: $(PROJ_NAME).elf + +term: $(PROJ_NAME).elf + st-term `arm-none-eabi-nm main.elf | grep stlinky_term | awk '{print $$1}'` $(PROJ_NAME).elf: $(SRCS) $(CC) $(CFLAGS) $^ -o $@ -Llib -lstm32f4