From 699892cc7cc2726abdf2e0fdf871bf02dda703ef Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 3 Sep 2019 11:01:21 +0200 Subject: [PATCH 1/2] boards/slstk3401a: Add reset before flashing It seems that this board needs a reset command before flashing with jlink This adds the reset - r - to the JLINK_PRE_FLASH --- boards/slstk3401a/Makefile.include | 1 + 1 file changed, 1 insertion(+) diff --git a/boards/slstk3401a/Makefile.include b/boards/slstk3401a/Makefile.include index 260acdf982..55d8eaef3b 100644 --- a/boards/slstk3401a/Makefile.include +++ b/boards/slstk3401a/Makefile.include @@ -7,6 +7,7 @@ include $(RIOTMAKE)/tools/serial.inc.mk # setup JLink for flashing export JLINK_DEVICE := $(CPU_MODEL) +export JLINK_PRE_FLASH = r include $(RIOTMAKE)/tools/jlink.inc.mk # add board common drivers From 853540ce326f88a6cb071134dbc4630fb658dcbc Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 3 Sep 2019 13:19:27 +0200 Subject: [PATCH 2/2] boards/slstk3402a: Add reset before flashing It seems that this board needs a reset command before flashing with jlink This adds the reset - r - to the JLINK_PRE_FLASH --- boards/slstk3402a/Makefile.include | 1 + 1 file changed, 1 insertion(+) diff --git a/boards/slstk3402a/Makefile.include b/boards/slstk3402a/Makefile.include index 260acdf982..55d8eaef3b 100644 --- a/boards/slstk3402a/Makefile.include +++ b/boards/slstk3402a/Makefile.include @@ -7,6 +7,7 @@ include $(RIOTMAKE)/tools/serial.inc.mk # setup JLink for flashing export JLINK_DEVICE := $(CPU_MODEL) +export JLINK_PRE_FLASH = r include $(RIOTMAKE)/tools/jlink.inc.mk # add board common drivers