SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By sparkiclarki
#198789
I would like to debug my bare-metal programs on the Pi 1 B+ via OpenOCD. As a JTag adapter I use a FT232H board from ebay.

I compiled and loaded this program: https://github.com/dwelch67/raspberrypi ... /armjtag.c into the Pi so the appropriate GPIOs are now in JTAG-Mode. I downloaded the latest release from https://github.com/gnu-mcu-eclipse/openocd/releases and executed this command:
Code: Select all
test@debian:~/Desktop/openocd2/0.10.0-7-20180123-1217/bin$ ./openocd -f ../scripts/interface/raspberrypi-native.cfg 
GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00404-g20463c28 (2018-01-23-12:24)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Error: The specified debug interface was not found (bcm2835gpio)
The following debug interfaces are available:
1: parport
2: dummy
3: ftdi
4: usb_blaster
5: jtag_vpi
6: amt_jtagaccel
7: gw16012
8: presto
9: usbprog
10: openjtag
11: jlink
12: vsllink
13: rlink
14: ulink
15: arm-jtag-ew
16: buspirate
17: remote_bitbang
18: hla
19: osbdm
20: opendous
21: sysfsgpio
22: aice
23: cmsis-dap
24: kitprog
Another approach:
Code: Select all
test@debian:~/Desktop/openocd2/0.10.0-7-20180123-1217/bin$ ./openocd -f ../scripts/interface/ftdi/um232h.cfg -f ../scripts/interface/raspberrypi-native.cfg 
GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00404-g20463c28 (2018-01-23-12:24)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Warn : Interface already configured, ignoring
../scripts/interface/raspberrypi-native.cfg:13: Error: invalid command name "bcm2835gpio_peripheral_base"
in procedure 'script' 
at file "embedded:startup.tcl", line 60
at file "../scripts/interface/raspberrypi-native.cfg", line 13
What am I missing?
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]