Build Host: Linux
Dependencies: GCC-ARM-EMBEDDED, OpenOCD
Compiler: https://launchpad.net/gcc-arm-embedded
Debugger: https://openocd.org
Steps to Build and Flash Project:
- Download and extract the compiler:
option A download the prebuilt toolchain from Arm:
tar -xvf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
mv gcc-arm-none-eabi-4_9-2015q3 /opt
option B check your package manager for the arm-none-eabi related pacakges (gcc, gdb, etc.) and install them
- Get Openocd
option A you can build it from source:
wget https://sourceforge.net/projects/openocd/files/openocd/0.10.0/openocd-0.10.0.tar.gz
tar -xzf openocd-0.10.0.tar.gz
Then follow build and install instructions in the extracted openocd directory
option B check to see if your package manager has openocd and install
- Clone the repository
https://github.com/clranc/FRDM-K64F-baremetal-minimal.git
original repo without my flash additions:
https://github.com/ferlzc/FRDM-K64F-baremetal-minimal.git
- Build a basic project
cd FRDM-K64F-baremetal-minimal
make
- flash
make flash