From 203e46daa62a680798f7ba6df76300a9c602b11e Mon Sep 17 00:00:00 2001 From: "timecop@gmail.com" Date: Fri, 1 Nov 2013 22:47:25 +0000 Subject: [PATCH] Enable automatic reset after (re)flashing, closes issue #19 git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@466 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61 --- Makefile | 2 +- support/stmloader/stmbootloader.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 380bff52ab..14720dc8bf 100644 --- a/Makefile +++ b/Makefile @@ -182,7 +182,7 @@ TARGET_MAP = $(OBJECT_DIR)/baseflight_$(TARGET).map # It would be nice to compute these lists, but that seems to be just beyond make. $(TARGET_HEX): $(TARGET_ELF) - $(OBJCOPY) -O ihex $< $@ + $(OBJCOPY) -O ihex --set-start 0x8000000 $< $@ $(TARGET_ELF): $(TARGET_OBJS) $(CC) -o $@ $^ $(LDFLAGS) diff --git a/support/stmloader/stmbootloader.c b/support/stmloader/stmbootloader.c index d6312cd113..c159c7e9cd 100644 --- a/support/stmloader/stmbootloader.c +++ b/support/stmloader/stmbootloader.c @@ -322,7 +322,7 @@ void stmLoader(serialStruct_t *s, FILE *fp, unsigned char overrideParity, unsign printf("Flashing device...\n"); jumpAddress = stmHexLoader(s, fp); if (jumpAddress) { - printf("\nFlash complete, cycle power\n"); + printf("\nFlash complete, executing.\n"); go: // send GO command