Linux-Makefile(how to convert .out file to make .bin .elf, .hex file format)

1. convert to  bin file:

CP      = arm-none-eabi-objcopy

CPFLAGS = -Obinary

$(CP) $(CPFLAGS) main.out main.bin


2. convert to  elf and hex file:

CP      = arm-none-eabi-objcopy

CPFLAGS = -O ihex

$(CP) $(CPFLAGS) main.out main.elf


3. convert to  elf and hex file:

CP      = arm-none-eabi-objcopy

CPFLAGS = -O ihex

$(CP) $(CPFLAGS) main.out main.hex






你可能感兴趣的:(File,hex)