Forums - CDB20 JTAG Errors -- Can't flash

8 posts / 0 new
Last post
CDB20 JTAG Errors -- Can't flash
aarons
Join Date: 8 Jan 19
Posts: 5
Posted: Thu, 2019-01-10 07:17

I'm trying to flash my QCA4020 with the Hello World demo firmware from Windows 10, and openOCD keeps giving me errors.

My jumper settings are these

I've followed the instructions here.

 The devices show up as expected in device manager.

I believe I have the correct drivers configured.

When I attempt to run openOCD, this is my result:

C:\...\qca4020.or_.3.0_00011.1\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc>openocd.exe -f qca402x_openocd.cfg
Open On-Chip Debugger 0.10.0 (2017-06-09) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
adapter speed: 5000 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : clock speed 5000 kHz
Info : JTAG tap: QM4.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : JTAG tap: auto0.tap tap/device found: 0x300160e1 (mfg: 0x070 (Qualcomm), part: 0x0016, ver: 0x3)
Error: QM4.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Info : DAP transaction stalled (WAIT) - slowing down
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Could not initialize the debug port
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: QM4.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Info : DAP transaction stalled (WAIT) - slowing down
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Error: Could not initialize the debug port
Error: Target not examined, reset NOT asserted!
in procedure 'reset' called at file "qca402x_openocd.cfg", line 93
in procedure 'ocd_bouncer'
 
 
 
C:\...\qca4020.or_.3.0_00011.1\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc>


Even though libusb_open() is giving an error, it's clearly still able to interact with the JTAG, but then it seems to be having problems there as well.

Any help getting this to work would be appreciated. Thanks.

  • Up0
  • Down0
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Thu, 2019-01-10 09:24

Hi aarons,

As per your pictures, I have two points. Please check following.

- JTAG flashing is performed through USB connection at J85. Power can be introduced from J5 but J85 should be connected for JTAG operation.
- For JTAG mode, we should insert jumper at J31 pin 1-2. It seems the jumper is not located on your board.

Thanks
BR,
Jayden

  • Up0
  • Down0
aarons
Join Date: 8 Jan 19
Posts: 5
Posted: Thu, 2019-01-10 10:40

This is how my board is currently set up (the pictures from before weren't quite accurate). I get the output I indicated before with this setup.

--Aaron

  • Up0
  • Down0
f81258
Join Date: 15 Nov 18
Posts: 21
Posted: Thu, 2019-01-10 16:53

Hi Aarons:

you need jumper at J57 pin 2-3(J85), Otherwise there is no electricity.

 

  • Up0
  • Down0
aarons
Join Date: 8 Jan 19
Posts: 5
Posted: Fri, 2019-01-11 05:38

Hi,

The photo I posted shows that I already have a jumper on pins 2 and 3 of J57. Also, presumably JTAG wouldn't have been able to enumerate the two devices it did find if there was no power:

Info : JTAG tap: QM4.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : JTAG tap: auto0.tap tap/device found: 0x300160e1 (mfg: 0x070 (Qualcomm), part: 0x0016, ver: 0x3)
 
 
  • Up0
  • Down0
aarons
Join Date: 8 Jan 19
Posts: 5
Posted: Fri, 2019-01-11 09:44

Never mind. Problem was between chair and keyboard.

  • Up0
  • Down0
flexeos
Join Date: 7 Feb 19
Posts: 12
Posted: Mon, 2019-02-11 07:31

Hello Aarons.

I am in very same condition but I cannot solve the issue. How did you cope with it?

 

Thanks in advance

  • Up0
  • Down0
aarons
Join Date: 8 Jan 19
Posts: 5
Posted: Mon, 2019-02-11 08:47

Hi,

If I recall correctly (I'm a bad internet citizen -- I should have explained my error back when it happened), my problem was just that I didn't plug in both USB ports.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.