OpenOCD + FT232H + Raspberry Pi 1 B+

Open source ARM Debugger

Moderator: phalanx

Post Reply
sparkiclarki
Posts: 1
Joined: Fri Mar 30, 2018 9:08 am

OpenOCD + FT232H + Raspberry Pi 1 B+

Post by sparkiclarki » Fri Mar 30, 2018 9:13 am

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?

Post Reply