create binary demo.bin by default (in order to copy to a NUCLEO board)
This commit is contained in:
parent
e2791f4f88
commit
964495f489
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -125,7 +125,7 @@ endif
|
|||
|
||||
.PHONY: all dirs program debug template clean
|
||||
|
||||
all: $(TARGET).elf
|
||||
all: $(TARGET).bin
|
||||
|
||||
-include $(DEPS)
|
||||
|
||||
|
@ -146,6 +146,10 @@ $(TARGET).elf: $(OBJS)
|
|||
@echo "[SIZE] $(TARGET).elf"
|
||||
$(SIZE) $(TARGET).elf
|
||||
|
||||
$(TARGET).bin: $(TARGET).elf
|
||||
@echo "[OBJCOPY] $(TARGET).bin"
|
||||
$Q$(OBJCOPY) -O binary $< $@
|
||||
|
||||
openocd:
|
||||
$(OCD) -s $(OCD_DIR) $(OCDFLAGS)
|
||||
|
||||
|
@ -179,6 +183,7 @@ template: cube src
|
|||
cp -i $(CUBE_DIR)/Projects/$(BOARD)/$(EXAMPLE)/TrueSTUDIO/$(BOARD)/$(MCU_UC)_FLASH.ld $(MCU_LC).ld
|
||||
|
||||
clean:
|
||||
@echo "[RM] $(TARGET).bin"; rm -f $(TARGET).bin
|
||||
@echo "[RM] $(TARGET).elf"; rm -f $(TARGET).elf
|
||||
@echo "[RM] $(TARGET).map"; rm -f $(TARGET).map
|
||||
@echo "[RM] $(TARGET).lst"; rm -f $(TARGET).lst
|
||||
|
|
Loading…
Add table
Reference in a new issue