[riot-notifications] [RIOT-OS/RIOT] boards: include common dfu logic where applicable (#11192)

Francisco Acosta notifications at github.com
Mon Mar 25 12:54:09 CET 2019


kYc0o commented on this pull request.



> @@ -23,14 +23,17 @@ include $(RIOTMAKE)/tools/serial.inc.mk
 # (ground) GPIO B1.
 ifeq ($(PROGRAMMER),dfu-util)
   export ROM_OFFSET ?= 0x2000 # Skip the space needed by the embedded bootloader
-  export FLASHER = dfu-util
-  export DEBUGGER = # no debugger
-  export RESET = # dfu-util has no support for resetting the device
+  # flash the board using DFU
+  # Set ALT to 2
+  DFU_ALT = 2

`DFU_ALT` cannot be different for flashing purposes. The DFU bootloader can be different for every device, thus implementing alt modes depend on how the address mapping is done by the bootloader.

The `DFU_ALT` values given here for all devices correspond to the address mapped for the internal available flash.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11192#discussion_r268604175
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190325/4e914a14/attachment.html>


More information about the notifications mailing list