SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By gchat
Has anyone tried debugging Cypress FX3 Chip (in LimeSDR board) using ARM-USB-OCD-H debugger and running OpenOCD on Windows/Linux?
At the moment, I am using this config file:
gdb_port 3333

interface ftdi
ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-OCD-H"
ftdi_vid_pid 0x15ba 0x002b

if { [info exists CHIPNAME] } {
} else {
set _CHIPNAME fx3

if { [info exists ENDIAN] } {
} else {
set _ENDIAN little

if { [info exists CPUTAPID ] } {
} else {
set _CPUTAPID 0x07926069

#delays on reset lines
adapter_nsrst_delay 200
jtag_ntrst_delay 200

adapter_khz 2000

#reset_config srst_only srst_pulls_trst
reset_config trst_and_srst srst_pulls_trst

jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID

#jtag_rclk 3

target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME

Can you please share OpenOCD config file and procedure to connect. As I am facing lot of issues while debugging, like "unhandled core state", and following in OpenOCD logfile:
Error: 238 683 core.c:948 jtag_examine_chain_check(): JTAG scan chain interrogation failed: all ones
Error: 239 683 core.c:949 jtag_examine_chain_check(): Check JTAG interface, timings, target power, etc.
Error: 240 683 core.c:1442 jtag_init_inner(): Trying to use configured scan chain anyway...
Debug: 241 683 core.c:1188 jtag_validate_ircapture(): IR capture validation scan
Error: 242 684 core.c:1240 jtag_validate_ircapture(): fx3.cpu: IR capture error; saw 0x0f not 0x01
Debug: 243 684 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
Warn : 244 684 core.c:1465 jtag_init_inner(): Bypassing JTAG setup events due to errors
Debug: 245 684 openocd.c:159 handle_init_command(): Examining targets...
Debug: 246 685 target.c:1499 target_call_event_callbacks(): target event 21 (examine-start)
Info : 247 685 embeddedice.c:231 embeddedice_build_reg_cache(): Embedded ICE version 15
Error: 248 685 embeddedice.c:296 embeddedice_build_reg_cache(): unknown EmbeddedICE version (comms ctrl: 0xffffffff)

Thanks a lot in advance.