stm32: dfu-util "make flash" rules for stm32 mcu

Signed-off-by: Alan.Ma from BigTreeTech tech@biqu3d.com
This commit is contained in:
bigtreetech 2024-08-22 17:41:11 +08:00 committed by Eric Callahan
parent 562fc2fafb
commit 42909f8a0d

View File

@ -65,6 +65,11 @@ canbus-src-$(CONFIG_HAVE_STM32_CANBUS) += stm32/can.c
canbus-src-$(CONFIG_HAVE_STM32_FDCANBUS) += stm32/fdcan.c
src-$(CONFIG_CANSERIAL) += $(canbus-src-y) generic/canbus.c stm32/chipid.c
# Flash rules
flash: $(OUT)katapult.bin
@echo " Flashing $< to $(FLASH_DEVICE)"
$(Q) $(if $(NOSUDO),,sudo) dfu-util -d "$(FLASH_DEVICE)" -R -a 0 -s "$(CONFIG_FLASH_START)":leave -D $(OUT)katapult.bin
# Deployer build
deployer-y += generic/armcm_boot.c generic/armcm_reset.c $(mcu-y)
CFLAGS_deployer.elf += -nostdlib -lgcc -lc_nano