mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Generate a separate CYW43 firmware image.
* Remove big_const from main firmware image.
This commit is contained in:
parent
762e54b26b
commit
401d9acde9
@ -41,6 +41,7 @@ OPENMV = openmv
|
||||
BOOTLOADER = bootloader
|
||||
UVC = uvc
|
||||
FIRMWARE = firmware
|
||||
CYW43_FIRMWARE = cyw4343
|
||||
|
||||
# Directories
|
||||
TOP_DIR=$(shell pwd)
|
||||
@ -656,7 +657,8 @@ BOOTLOADER_OBJS: FIRMWARE_OBJS
|
||||
$(FIRMWARE): FIRMWARE_OBJS
|
||||
$(CPP) -P -E -I$(OMV_BOARD_CONFIG_DIR) $(OMV_DIR)/stm32fxxx.ld.S > $(BUILD)/stm32fxxx.lds
|
||||
$(CC) $(LDFLAGS) $(FIRM_OBJ) -o $(FW_DIR)/$(FIRMWARE).elf $(LIBS)
|
||||
$(OBJCOPY) -Obinary $(FW_DIR)/$(FIRMWARE).elf $(FW_DIR)/$(FIRMWARE).bin
|
||||
$(OBJCOPY) -Obinary -R .big_const* $(FW_DIR)/$(FIRMWARE).elf $(FW_DIR)/$(FIRMWARE).bin
|
||||
$(OBJCOPY) -Obinary -j .big_const* $(FW_DIR)/$(FIRMWARE).elf $(FW_DIR)/$(CYW43_FIRMWARE).bin
|
||||
$(PYTHON) $(MKDFU) -D $(DFU_DEVICE) -b $(MAIN_APP_ADDR):$(FW_DIR)/$(FIRMWARE).bin $(FW_DIR)/$(FIRMWARE).dfu
|
||||
|
||||
# This target generates the bootloader. The bootloader binary is generated twice,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user