Skip to content

Commit

Permalink
add elf2bin.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Guozhanxin committed May 29, 2022
1 parent 4b74df7 commit 9e6d68f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions i2c_icm/elf2bin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

project_path=$(cd `dirname $0`; pwd)
project_name="${project_path##*/}"
/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-objcopy target/thumbv7em-none-eabihf/release/$project_name -O binary $project_name.bin
echo 'make' $project_name'.bin OK!'
6 changes: 6 additions & 0 deletions uart/elf2bin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

project_path=$(cd `dirname $0`; pwd)
project_name="${project_path##*/}"
/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-objcopy target/thumbv7em-none-eabihf/release/$project_name -O binary $project_name.bin
echo 'make' $project_name'.bin OK!'

0 comments on commit 9e6d68f

Please sign in to comment.