Hi, I'm new to the openocd system, I'm hoping you can help me get up and running. I am so far unable to get openocd to work on my cdb20 dev board. This is the message I see:
JTAG on CDB20
Posted: Wed, 2018-06-13 23:58
uild/gcc$ openocd -f qca402x_openocd.cfg
Open On-Chip Debugger 0.7.0 (2013-10-22-08:31)
Licensed under GNU GPL v2
For bug reports, read
Info : only one transport option; autoselect 'jtag'
adapter speed: 5000 kHz
Info : clock speed 5000 kHz
Info : JTAG tap: QM4.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Warn : Unexpected idcode after end of chain: 32 0x300160e1
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Error: IR capture error at bit 4, saw 0x11 not 0x...3
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0x4 in JTAG-DP transaction
Polling target QM4.cpu failed, GDB will be halted. Polling again in 100ms
Polling target QM4.cpu failed, GDB will be halted. Polling again in 300ms
Info : JTAG tap: QM4.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Warn : Unexpected idcode after end of chain: 32 0x300160e1
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Error: IR capture error at bit 4, saw 0x11 not 0x...3
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0x4 in JTAG-DP transaction
Error: Target not examined yet
Runtime Error: qca402x_openocd.cfg:73:
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'reset' called at file "qca402x_openocd.cfg", line 73
I am just trying to start the openocd server so I can start a debug session.
I see you are trying to debug via openocd.Do you able to flash image via openocd ?
Means using flash_openocd.bat or flash_openocd.sh in linux or windows.
Regards
Jyotiranjan
I haven't been able to get that working either - I assumed it was failing because jtag was failing as I showed above. I am using the provided cfg files from the SDK:
I tried flashing through USB on a windows system and ran into issues there too, I feel like I must be missing some critical configuration step. On windows, I see the EDL device in device manager (COMM15), it gives a warning that the driver isn't signed, but I think it is still working, but when I try to flash I see the following:
Hi ,
Regarding JTAG , have you insatlled FTDI driver. Please follow below section of UG .Also insatall openocd.
3.7.2.1 Install FTDI driver for JTAG
For USB , just plug out the USB cable and plug in once and try. It should work. Means just powrcycle the device.
Thanks