Merge pull request #1243 from openmv/factory_fw

Re-enable combined fw image for factory programming.
This commit is contained in:
Ibrahim Abd Elkader 2021-03-26 21:48:16 +02:00 committed by GitHub
commit 4c96c43b27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -630,6 +630,10 @@ endif
# This target generates the uvc, bootloader and firmware images. # This target generates the uvc, bootloader and firmware images.
$(OPENMV): $(BOOTLOADER) $(UVC) $(CM4) $(FIRMWARE) $(OPENMV): $(BOOTLOADER) $(UVC) $(CM4) $(FIRMWARE)
ifeq ($(OMV_ENABLE_BL), 1) ifeq ($(OMV_ENABLE_BL), 1)
# Generate a contiguous firmware image for factory programming
$(OBJCOPY) -Obinary --pad-to=$(MAIN_APP_ADDR) --gap-fill=0xFF $(FW_DIR)/$(BOOTLOADER).elf $(FW_DIR)/$(BOOTLOADER)_padded.bin
$(CAT) $(FW_DIR)/$(BOOTLOADER)_padded.bin $(FW_DIR)/$(FIRMWARE).bin > $(FW_DIR)/$(OPENMV).bin
$(RM) $(FW_DIR)/$(BOOTLOADER)_padded.bin
$(SIZE) $(FW_DIR)/$(BOOTLOADER).elf $(SIZE) $(FW_DIR)/$(BOOTLOADER).elf
endif endif
$(SIZE) $(FW_DIR)/$(FIRMWARE).elf $(SIZE) $(FW_DIR)/$(FIRMWARE).elf