优化中,生成HEX文件
This commit is contained in:
+10
-2
@@ -51,6 +51,9 @@ default.size.stdout \
|
||||
OBJDUMP_LIST += \
|
||||
Motor_Controller2.list \
|
||||
|
||||
OBJCOPY_HEX += \
|
||||
Motor_Controller2.hex \
|
||||
|
||||
OBJCOPY_BIN += \
|
||||
Motor_Controller2.bin \
|
||||
|
||||
@@ -77,6 +80,11 @@ Motor_Controller2.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEP
|
||||
@echo 'Finished building: $@'
|
||||
@echo ' '
|
||||
|
||||
Motor_Controller2.hex: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
||||
arm-none-eabi-objcopy -O ihex $(EXECUTABLES) "Motor_Controller2.hex"
|
||||
@echo 'Finished building: $@'
|
||||
@echo ' '
|
||||
|
||||
Motor_Controller2.bin: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
||||
arm-none-eabi-objcopy -O binary $(EXECUTABLES) "Motor_Controller2.bin"
|
||||
@echo 'Finished building: $@'
|
||||
@@ -84,10 +92,10 @@ Motor_Controller2.bin: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(SIZE_OUTPUT)$(OBJDUMP_LIST)$(EXECUTABLES)$(OBJS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(OBJCOPY_BIN) Motor_Controller2.elf
|
||||
-$(RM) $(OBJCOPY_HEX)$(SIZE_OUTPUT)$(OBJDUMP_LIST)$(EXECUTABLES)$(OBJS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(OBJCOPY_BIN) Motor_Controller2.elf
|
||||
-@echo ' '
|
||||
|
||||
secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_BIN)
|
||||
secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_HEX) $(OBJCOPY_BIN)
|
||||
|
||||
fail-specified-linker-script-missing:
|
||||
@echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.'
|
||||
|
||||
Reference in New Issue
Block a user