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.cfgOpen On-Chip Debugger 0.10.0 (2017-06-09) [https://github.com/sysprogs/openocd]Licensed under GNU GPL v2For bug reports, readadapter speed: 5000 kHzError: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTEDInfo : clock speed 5000 kHzInfo : 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 0x01Warn : Bypassing JTAG setup events due to errorsError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseInfo : DAP transaction stalled (WAIT) - slowing downError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Could not initialize the debug portError: JTAG scan chain interrogation failed: all onesError: Check JTAG interface, timings, target power, etc.Error: Trying to use configured scan chain anyway...Error: QM4.cpu: IR capture error; saw 0x0f not 0x01Warn : Bypassing JTAG setup events due to errorsError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseError: Invalid ACK (0) in DAP responseInfo : DAP transaction stalled (WAIT) - slowing downError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Invalid ACK (7) in DAP responseError: JTAG-DP STICKY ERRORError: Could not initialize the debug portError: Target not examined, reset NOT asserted!in procedure 'reset' called at file "qca402x_openocd.cfg", line 93in 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.
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
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
Hi Aarons:
you need jumper at J57 pin 2-3(J85), Otherwise there is no electricity.
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:
Never mind. Problem was between chair and keyboard.
Hello Aarons.
I am in very same condition but I cannot solve the issue. How did you cope with it?
Thanks in advance
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.