[FX3 Debug] Error: can't add breakpoint: target running

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Setup:

  • Ubuntu 16.04 LTS
  • Cypres SDK v. 1.3.3

I try to debug FX3 in EZ USB Suite using openOCD.

I followed EzUsbSuite_UG guide (v.1.3.3) chapter 3.2 (Debugging with OpenOCD). I have the FX3 device in the bootloader mode. The log from console:

Open On-Chip Debugger 0.8.0 (2014-12-03-16:28)

Licensed under GNU GPL v2

For bug reports, read

    http://openocd.sourceforge.net/doc/doxygen/bugs.html

Warn : Adapter driver 'cy7c65215' did not declare which transports it allows; assuming legacy JTAG-only

Info : only one transport option; autoselect 'jtag'

adapter_nsrst_delay: 200

jtag_ntrst_delay: 200

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

Error: CyGetDeviceInfo failed

Error: CyGetDeviceInfo failed

Error: CyGetDeviceInfo failed

Error: CyGetDeviceInfo failed

Error: CyGetDeviceInfo failed

Error: CyGetDeviceInfo failed

Error: CyGetDeviceInfo failed

Error: CyGetDeviceInfo failed

USB Device: Vid=9fb Pid=6001 Intf=1

USB Interface 0: Type=255

USB Device: Vid=4b4 Pid=7 Intf=4

USB Interface 0: Type=0

USB Interface 1: Type=0

USB Interface 2: Type=4

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

Info : accepting 'gdb' connection from 3333

undefined debug reason 7 - target needs reset

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Error: Target not halted

Warn : target not halted

Info : JTAG tap: fx3.cpu tap/device found: 0x07926069 (mfg: 0x034, part: 0x7926, ver: 0x0)

Warn : srst pulls trst - can not reset into halted mode. Issuing halt after reset.

Error: invalid mode value encountered 0

target state: halted

target halted in ARM state due to debug-request, current mode: Thread

cpsr: 0x2c38a000 pc: 0xf0001e14

MMU: disabled, D-Cache: disabled, I-Cache: enabled

Warn : NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'.

Warn : NOTE! Severe performance degradation without working memory enabled.

Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.

Error: timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 0

Warn : negative acknowledgment, but no packet pending

Error: timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 0

Error: timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 0

Warn : target not halted

Warn : target not halted

Warn : target not halted

Warn : target not halted

Warn : target not halted

Warn : target not halted

Warn : target fx3.cpu is not halted

Error: can't add breakpoint: target running

Info : dropped 'gdb' connection

0 Likes
1 Solution

Hi,

I checked OpenOCD debugging on both platforms (windows and linux) with the USB serial chip having firmware 1.0.3.78. It is working fine. Ignore the errors just confirm that whether the Debugger is halting at breakpoints. If you have configured it correctly as mentioned in the "EZ_Usb_Suite_UG.pdf" section 3.2, it must stop at "main".

Thanks & Regards

Abhinav

View solution in original post

0 Likes
6 Replies
abhinavg_21
Moderator
Moderator
Moderator
50 likes received 25 likes received 10 likes received

Hi,

It looks like that serial chip is unable to reset the FX3 chip. Please check the hardware pin "trst" whether it is connected properly to the FX3 pin or not. Also check the ground pin of JTAG.

Thanks & regards

Abhinav

0 Likes
Anonymous
Not applicable

abgathanks for your reply.

I confirm the trst pin is connected betwen  CY7C65215 and FX3 on the schematic. What do you mean exactly by ground pin of jTag?

Pmod[2:0] pins of FX3 are in 3'bZ11 state (USB boot).

Regards,

Adrian

0 Likes

Hi,

Could you please check the version of firmware in the CY7C65215 chip. Use serial configuration utility to check the FW version.

You can uninstall the drivers and restart the system. May be your issue get resolve.

Thanks & Regards

Abhinav

0 Likes
Anonymous
Not applicable

Hi,

Sorry for the delay. I missed your reply.

The firmware version of the CY7C65215 chip is 1.0.3.78

I run on Linux, not Windows, so I believe tricks with driver blacklisting will not help and it is not what you meant.

Regards,

Adrian

0 Likes
Anonymous
Not applicable

I am also having an issue with firmware version 1.0.3.78.

I noticed that the Superspeed explorer kit is using version 1.0.10.2. How do you update the firmware on the CY7C65215?

Hi,

I checked OpenOCD debugging on both platforms (windows and linux) with the USB serial chip having firmware 1.0.3.78. It is working fine. Ignore the errors just confirm that whether the Debugger is halting at breakpoints. If you have configured it correctly as mentioned in the "EZ_Usb_Suite_UG.pdf" section 3.2, it must stop at "main".

Thanks & Regards

Abhinav

0 Likes