mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Set DFU gap-fill to 0xFF.
* Makes it easier to diff hexdumps from flash.
This commit is contained in:
parent
6cfcc8d784
commit
00b9a99f44
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user