- Compiler: GNU ARM Embedded Toolchain
- SDK: Texas Instruments MSP432 SDK
- OpenOCD
-
Install the compiler, SDK and the latest commit of OpenOCD for debugging
-
brew install armmbed/formulae/arm-none-eabi-gcc
-
brew install openocd --HEAD
You may also need to install openocd dependencies:
autoconf
,automake
andtexinfo
-
-
Export
GCC_ARMCOMPILER
andARM_SDK_HOME
environment variables pointing to the compiler and SDK homes, respectively
> git clone git@github.com:caiotavares/arm-first-steps.git
> cd arm-first-steps
> make
> openocd -f board/ti_msp432_launchpad.cfg
In another terminal:
> arm-none-eabi-gdb
> (gdb) target remote :3333
> (gdb) load ./out/hello_world.out
> (gdb) continue