GPY J-Link debugging
-
Hi all,
I'm trying to use a J-Link debugger with openocd to debug an external c-module i'm making for the gpy, but it doesn't give any output(JTAG scan chain interrogation failed: all zeroes). I hooked it up like this:
TDO -> pin 4
TCLK -> pin 10
TMS -> pin 23
TDI -> pin 9My openocd setup is the following:
interface jlink transport select jtag adapter_khz 200 set ESP32_RTOS none set ESP32_FLASH_VOLTAGE 3.3 source [find $OPENOCD_SCRIPTS/target/esp32.cfg]If I try running openocd -f debug.cfg it gives the following output:
Open On-Chip Debugger v0.10.0-esp32-20190313 (2019-03-13-09:52) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html adapter speed: 200 kHz Info : Configured 2 cores esp32 interrupt mask on Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : J-Link V10 compiled Oct 5 2020 14:56:16 Info : Hardware version: 10.10 Info : VTarget = 3.328 V Info : clock speed 200 kHz Error: JTAG scan chain interrogation failed: all zeroes Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: esp32.cpu0: IR capture error; saw 0x00 not 0x01 Warn : Bypassing JTAG setup events due to errors Info : Listening on port 3333 for gdb connectionsWhat can I try to make j-link find the gpy?
Thanks -
I found the solution, I need to set the BTYPE=debug flag when building the firmware.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login