Linux-Makefile(how to convert .out file to make .bin .elf, .hex file format)
2012-07-16 15:27
453 查看
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
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
相关文章推荐
- 更新假设raw file(audio file format) How to convert endianness
- raw file(audio file format) How to convert endianness
- [Linux cmd line] How to convert a binary file into output in C include file style.
- How can I force Python's file.write() to use the same newline format in Windows as in Linux (“\r\n”
- How to Convert Windows/DOS Text Files to Linux/UNIX Format
- a survey about how to make a file dynamically and offer it to download,but still not save the file!
- How to Make an Exe File
- 【转】How to Change File Ownership & Groups in Linux
- How to convert a 32-bit database to 64-bit database on Linux
- How to make Help File for .net Program
- how to make a authorware file in an environment without authorware
- [quote] [Android] How to resolve make error out/target/common/docs/api-stubs-timestamp
- [quote] How to determine what target is given in Makefile from the make command-line?
- How to Install a Bin File in Fedora
- how to make a JAR file
- How to make gdb print out all values in hexadecimal mode?
- How do I convert GFF file to a GTF file? 怎么把gff文件变成gtf文件
- how to extract and convert audio file formats
- how to produce .mesh .tgf file for 403_BoundedBiharmonicWeights_bin
- 5 Linux Touch Command Examples (How to Change File Timestamp)