add portenta c33 bsp, add flash by dfu-util

This commit is contained in:
hathach
2023-08-01 13:16:37 +07:00
parent 1cccbaf7ec
commit 789e478d4d
14 changed files with 665 additions and 5 deletions

View File

@@ -65,9 +65,10 @@ $(BUILD)/obj/%_asm.o: %.S
@echo AS $(notdir $@)
@$(AS) $(ASFLAGS) -c -o $@ $<
OBJCOPY_BIN_OPTION ?=
$(BUILD)/$(PROJECT).bin: $(BUILD)/$(PROJECT).elf
@echo CREATE $@
@$(OBJCOPY) -O binary $^ $@
$(OBJCOPY) -O binary $(OBJCOPY_BIN_OPTION) $^ $@
$(BUILD)/$(PROJECT).hex: $(BUILD)/$(PROJECT).elf
@echo CREATE $@