System Workbench for STM32--如何输出bin,hex文件

 

 

 设置输出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

 

posted @ 2023-02-24 10:56  M&D  阅读(104)  评论(0编辑  收藏  举报