From fcd0a8027a0ef1c2f3a0fd5a8f8011189a125bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Roussel?= Date: Thu, 3 Jul 2014 17:24:07 +0200 Subject: [PATCH 1/2] Reset the SAM3X8E before flashing so as to avoid some hangups in the flashing process --- boards/arduino-due/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/arduino-due/Makefile.include b/boards/arduino-due/Makefile.include index c49e76e63f..5ece90ddcb 100644 --- a/boards/arduino-due/Makefile.include +++ b/boards/arduino-due/Makefile.include @@ -35,7 +35,7 @@ export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endi # linkerscript specified in cpu/Makefile.include export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS += -O binary -export FFLAGS += -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex +export FFLAGS += -R -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex # use the nano-specs of the NewLib when available ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null Date: Fri, 25 Jul 2014 16:02:20 +0200 Subject: [PATCH 2/2] Reset udoo's MCU before flashing --- boards/udoo/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/udoo/Makefile.include b/boards/udoo/Makefile.include index 2337d416c1..d3245e52f7 100644 --- a/boards/udoo/Makefile.include +++ b/boards/udoo/Makefile.include @@ -35,7 +35,7 @@ export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endi # linkerscript specified in cpu/Makefile.include export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS += -O binary -export FFLAGS += -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex +export FFLAGS += -R -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex # use the nano-specs of the NewLib when available ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null