Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4391

Bare metal, Assembly language • OpenOCD JTAG with Rasperry PI Zero / 1

$
0
0
Hi

I'm trying to setup JTAG debug for my Pi Zero, and having some trouble.

If have OpenOCD working with my Jtag Adapter [ STLINK_dap_V2 clone]
I have downloaded and am using the raspberry.cfg file for OpenOCD from https://github.com/sysprogs/openocd/blo ... pberry.cfg

I have wired up the JTAG connections tot the Alt4 connections from this reference https://pinout.xyz/pinout/jtag

But when connecting with OpenOCD, I get some errors

Code:

openocd -f interface/stlink-dap.cfg -f target/raspberry.cfgOpen On-Chip Debugger 0.12.0+dev-gebec9504d-dirty (2024-09-03-15:20)Licensed under GNU GPL v2For bug reports, read    http://openocd.org/doc/doxygen/bugs.htmldapdirect_jtagInfo : Listening on port 6666 for tcl connectionsInfo : Listening on port 4444 for telnet connectionsInfo : STLINK V2J34S7 (API v2) VID:PID 0483:3748Info : Target voltage: 3.584769Error: init mode failed (unable to connect to the target)
Do I need to do something to enable the Alt4 GPIO functions, or should I try Alt5 GPIO setup instead ?

Any help greatly appreciated.

Seasonal regards
TC

Statistics: Posted by tony carbon — Thu Dec 26, 2024 12:31 pm — Replies 1 — Views 28



Viewing all articles
Browse latest Browse all 4391

Trending Articles