Project右键Properties->C/C++ Build->Settings->Build Steps->Post-build steps:gstrip -r=.debug_frame ${ProjName}.elf ;gmemfile ${ProjName}.elf -o ${ProjName}.bin ;gsrec ${ProjName}.elf -o ${ProjName}.hex
编译完成后生成的文件中包含Project Name.elf, Project Name.hex, Project Name.bin