4 Replies Latest reply on Jul 20, 2018 7:15 AM by adrian.fiergolski_3331326

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

    adrian.fiergolski_3331326

      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