Set DFU gap-fill to 0xFF.

* Makes it easier to diff hexdumps from flash.
This commit is contained in:
iabdalkader 2018-03-15 23:55:06 +02:00
parent 6cfcc8d784
commit 00b9a99f44

View File

@ -435,7 +435,7 @@ $(BOOTLOADER): FIRMWARE_OBJS BOOTLOADER_OBJS
$(CC) $(BOOT_LDFLAGS) $(BOOT_OBJ) -o $(FW_DIR)/$(BOOTLOADER).elf $(CC) $(BOOT_LDFLAGS) $(BOOT_OBJ) -o $(FW_DIR)/$(BOOTLOADER).elf
$(OBJCOPY) -Obinary $(FW_DIR)/$(BOOTLOADER).elf $(FW_DIR)/$(BOOTLOADER).bin $(OBJCOPY) -Obinary $(FW_DIR)/$(BOOTLOADER).elf $(FW_DIR)/$(BOOTLOADER).bin
$(PYTHON) $(MKDFU) -b 0x08000000:$(FW_DIR)/$(BOOTLOADER).bin $(FW_DIR)/$(BOOTLOADER).dfu $(PYTHON) $(MKDFU) -b 0x08000000:$(FW_DIR)/$(BOOTLOADER).bin $(FW_DIR)/$(BOOTLOADER).dfu
$(OBJCOPY) -Obinary --pad-to=$(MAIN_APP_ADDR) $(FW_DIR)/$(BOOTLOADER).elf $(FW_DIR)/$(BOOTLOADER).bin $(OBJCOPY) -Obinary --pad-to=$(MAIN_APP_ADDR) --gap-fill=0xFF $(FW_DIR)/$(BOOTLOADER).elf $(FW_DIR)/$(BOOTLOADER).bin
# This target generates a combined bootloader+main firmware image. # This target generates a combined bootloader+main firmware image.
$(OPENMV): $(BOOTLOADER) $(FIRMWARE) | $(BUILD) $(OPENMV): $(BOOTLOADER) $(FIRMWARE) | $(BUILD)