Skip to content

Instantly share code, notes, and snippets.

@truh
Created February 20, 2014 10:16
Show Gist options
  • Save truh/9110554 to your computer and use it in GitHub Desktop.
Save truh/9110554 to your computer and use it in GitHub Desktop.
Tiva Launchpad Debugging
Titel Autor Date
###Title### Jakob Klepp 14.02.2014

Tiva Debugger Template

Benötigete Programme

arm-none-eabi-gdb

GNU Debugger

https://www.gnu.org/software/gdb/

Konfiguration

target remote localhost:3333
monitor reset halt
thbreak main
monitor reset init

OpenOCD

Open On-Chip Debugger

http://openocd.sourceforge.net

Konfiguration

#daemon configuration
telnet_port 4444
gdb_port 3333

#board specific
source [find interface/ti-icdi.cfg]

set WORKAREASIZE 0x8000
set CHIPNAME tm4c123gh6pm
source [find target/stellaris_icdi.cfg]

Nemiver

Grafischer Debugger

https://wiki.gnome.org/Apps/Nemiver

Run Script

#!/bin/bash

# start xterm with openocd in the background
xterm -e openocd -f ./debug/debug.cfg &

# save the PID of the background process
XTERM_PID=$!

# wait a bit to be sure the hardware is ready
sleep 2

# execute some initialisation commands via gdb
arm-none-eabi-gdb --batch --command=debug/run.gdb build/main

# start the gdb gui
nemiver --remote=localhost:3333 --gdb-binary="$(which arm-none-eabi-gdb)" build/main

# close xterm when the user has exited nemiver
kill $XTERM_PID

Quellen

[1] Getting started with stellaris launchpad
http://www.jann.cc/2012/12/11/getting_started_with_the_ti_stellaris_launchpad_on_linux.html (zuletzt besucht am: 14.02.2014)

###Page### / ###Total###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment