Troubleshooting

Error: JTAG scan chain interrogation failed

$ sudo openocd -f flash_screamer.cfg

Open On-Chip Debugger 0.10.0+dev-01293-g7c88e76a-dirty (2020-06-30-17:21)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 10000 kHz

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: xc7.tap: IR capture error; saw 0x3f not 0x01
Warn : Bypassing JTAG setup events due to errors
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: xc7.tap: IR capture error; saw 0x3f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unknown flash device (ID 0x00ffffff)

Note

Your Screamer board is not powered properly !

Note

The JTAG Serial cable alone does not power the Screamer !

The Screamer requires power from the PCIe/M.2 connector for all operations (programming or running PCILeech).

Error: Unknown flash device

# openocd -f flash_screamer.cfg

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 10000 kHz
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 10000 kHz
Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0)
loaded file bscan_spi_xc7a35t.bit to pld device 0 in 0s 218682us
Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0)

Error: Unknown flash device (ID 0x00ffffff)

Note

Ensure you are using the latest version of OpenOCD from the git.

Or use the precompiled binaries from the OpenOCD section.

Error: contents differ

# openocd -f flash_screamer.cfg

[...]
sector 32 took 1 ms
Info : sector 33 took 0 ms
wrote 2228224 bytes from file top.bin in 15.640747s (139.124 KiB/s)
Info : Found flash device 'micron n25q256 3v' (ID 0x0019ba20)
Warn : device needs paging or 4-byte addresses - not implemented
read 2192012 bytes from file top.bin and flash bank 0 at offset 0x00000000 in 1.949110s (1098.264 KiB/s)

contents differ

diff 0 address 0x000007a3. Was 0x00 instead of 0x40
diff 1 address 0x0000081a. Was 0x01 instead of 0x15
diff 2 address 0x0000081b. Was 0x80 instead of 0xc6
[...]

Note

Ensure you are using the latest version of OpenOCD from the git.

Or use the precompiled binaries from the OpenOCD section.

If you are using an older OpenOCD version (before Nov 12, 2021), you need the flashid.patch workaround to revert to 3-byte addresses commands.

Important note: After applying the patch, these warnings are fine as long as you dont get “contents differ” errors !

Warn : device needs paging or 4-byte addresses - not implemented

Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND

For Windows only.

C:flash_screamer>..\openocd\bin\openocd.exe -f flash_screamer.cfg
Open On-Chip Debugger 0.10.0+dev-01293-g7c88e76a-dirty (2020-07-02-19:28)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter driver' not 'interface'
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
DEPRECATED! use 'adapter speed' not 'adapter_khz'
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6011, description '*', serial '*' at bus location '*'

Note

Use Zadig as explained in “WinUSB driver for Windows” to associate the JTAG cable with the WinUSB driver.

Contact support

If your issue is not listed here, please report to contact@lambdaconcept.com