November 24, 2024, 02:30:21 PM

Getting ARM-USB-OCD-H working with FX3

Started by cst, January 13, 2016, 03:40:45 AM

Previous topic - Next topic

cst

Hi guys,

I've been trying to setup an Olimex ARM-USB-OCD-H with a Cypress FX3 as the target in Eclipse. So far I've got the WinUSB driver package installed, picked up OpenOCD v0.9.0, and setup Eclipse's
external tools to run OpenOCD with a script from the FX3 documentation(modified to work with OpenOCD 0.9.0) and currently I'm getting the following output:

Quote
Open On-Chip Debugger 0.9.0-rc1 (2015-04-24-22:09)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.org/doc/doxygen/bugs.html
adapter_nsrst_delay: 200
adapter speed: 1000 kHz
adapter speed: 1000 kHz
trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
RCLK - adaptive
adapter speed: 1000 kHz
Info : clock speed 1000 kHz
Info : JTAG tap: fx3.cpu tap/device found: 0x07926069 (mfg: 0x034, part: 0x7926, ver: 0x0)
Info : Embedded ICE version 6
Info : fx3.cpu: hardware has 2 breakpoint/watchpoint units

Which would suggest to me that the connection is working. Now the issue I'm running into is trying to get it working with gdb. I setup a new OpenOCD debug configuration in Eclipse and pointed it to gdb from my FX3 install and of course OpenOCD. Doing a test run results in the following error message though:

Quote
Error in final launch sequence
   Failed to execute MI command:
   -target-select remote localhost:3333

Error message from debugger back end:
localhost:3333: A connection attempt failed because the
connected party did not properly respond after a period of
time, or established connection failed because connected host
has failed to respond.
localhost:3333: A connection attempt failed because the
connected party did not properly respond after a period of
time, or established connection failed because connected host
has failed to respond.

Any thoughts on what I'm doing wrong?

JohnS

You may do better on an Eclipse / gdb / oocd forum/ML.

(If oocd, they'll want more details like OS ver (obviously!)and -d3)

John