From 9b238638048720f6859ddcb87ddb6c6989aefbfc Mon Sep 17 00:00:00 2001 From: smlng Date: Wed, 15 Aug 2018 14:45:03 +0200 Subject: [PATCH] boards/stm32f103c8: update dfu-util flash flags The latest bootloader has new usb device id and needs different parameters to flash a RIOT image using `dfu-util`. --- boards/common/stm32f103c8/Makefile.include | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/boards/common/stm32f103c8/Makefile.include b/boards/common/stm32f103c8/Makefile.include index bd99710c0e..9cac24d411 100644 --- a/boards/common/stm32f103c8/Makefile.include +++ b/boards/common/stm32f103c8/Makefile.include @@ -23,7 +23,9 @@ ifeq ($(PROGRAMMER),dfu-util) export RESET = # dfu-util has no support for resetting the device HEXFILE = $(BINFILE) - export FFLAGS = -d 1d50:6017 -s 0x08002000:leave -D "$(HEXFILE)" + export FFLAGS = -d 1eaf:0003 -a 2 -D "$(HEXFILE)" + # for older bootloader versions use this: + #export FFLAGS = -d 1d50:6017 -s 0x08002000:leave -D "$(HEXFILE)" else # this board uses openocd by default