-
Notifications
You must be signed in to change notification settings - Fork 8
Compiling STM32 firmware
Tom Verbeure edited this page Feb 24, 2018
·
2 revisions
Go to the GNU ARM Embedded Toolchain page and download the Linux binary.
Alteratilvely, you can download it from the command line, like this:
curl https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2 > gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
Now extract and install it:
# Extract archive
bunzip2 -c ./gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2 | tar xf -
# Set your path so the toolchain binaries
PATH=$PATH:/home/ubuntu/gcc-arm-none-eabi-7-2017-q4-major/bin
If you don't have a C project yet to compile, just try to recompile the STM32 iceboot
firmware that comes standard with your BlackIce-II board.
Get the BlackIce-II github repo, if you don't have it already:
git clone https://github.com/mystorm-org/BlackIce-II.git
Now compile the iceboot
firmware:
cd BlackIce-II/firmware/iceboot
make clean
make output/iceboot.raw
If all goes well, you should see a fresh built iceboot.raw
file in the output directory.
You can upload this file with dfu-utils, as described here.