Skip to content

Instantly share code, notes, and snippets.

@samrat
Created July 21, 2017 02:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samrat/fe9ec27ec1f9e3640632b542d7c5ff7a to your computer and use it in GitHub Desktop.
Save samrat/fe9ec27ec1f9e3640632b542d7c5ff7a to your computer and use it in GitHub Desktop.
Tiva C launchpad (GDB + OpenOCD)
Start OpenOCD in a separate terminal:
openocd -f /usr/share/openocd/scripts/board/ek-lm4f120xl.cfg
$ cat gdb.cmd
target remote localhost:3333
set arm abi APCS
monitor reset halt
file main.elf
load
monitor reset
$ cat prog
arm-none-eabi-gdb --command gdb.cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment