设置输出hex文件:
arm-none-eabi-objcopy -O ihex "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.hex" && arm-none-eabi-size "${BuildArtifactFileName}"
设置同时输出bin和hex文件
arm-none-eabi-objcopy -O ihex ${BuildArtifactFileBaseName}.elf ${BuildArtifactFileBaseName}.hex && arm-none-eabi-size ${BuildArtifactFileName} && arm-none-eabi-objcopy -O binary ${BuildArtifactFileBaseName}.elf ${BuildArtifactFileBaseName}.bin
标签:bin,Workbench,--,hex,none,eabi,BuildArtifactFileBaseName,arm From: https://www.cnblogs.com/mickey-double/p/17150539.html