Skip to content

Instantly share code, notes, and snippets.

@stffrdhrn
Created October 20, 2017 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stffrdhrn/ccc14ea7baddabe2b367d7a22b360a4c to your computer and use it in GitHub Desktop.
Save stffrdhrn/ccc14ea7baddabe2b367d7a22b360a4c to your computer and use it in GitHub Desktop.
trying litex openocd connect
./build/conda/bin/openocd -s ./build/conda/share/openocd/scripts -f ./scripts/arty_or1k.cfg
(H2U P=arty C=or1k F=linux R=merge-arty-soc) < shorne@lianli ~/work/litex/HDMI2USB-litex-firmware > ./build/conda/bin/openocd -s ./build/conda/share/openocd/scripts -f ./scripts/arty_or1k.cfg
Open On-Chip Debugger 0.10.0+dev-00166-g0e4fbfba0-dirty (2017-07-03-06:50)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 10000 kHz
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : xilinx_bscan tap selected
Info : adv debug unit selected
Info : Option 7 is passed to adv debug unit
Info : set servers polling period to 1ms
adapter speed: 3000 kHz
Info : clock speed 3000 kHz
Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0)
Info : JTAG tap: or1200.cpu tap/device found: 0xffffffff (mfg: 0x7ff (<invalid>), part: 0xffff, ver: 0xf)
Warn : JTAG tap: or1200.cpu UNEXPECTED: 0xffffffff (mfg: 0x7ff (<invalid>), part: 0xffff, ver: 0xf)
Error: JTAG tap: or1200.cpu expected 1 of 1: 0x020b30dd (mfg: 0x06e (Altera), part: 0x20b3, ver: 0x0)
Error: Trying to use configured scan chain anyway...
Error: or1200.cpu: IR capture error; saw 0x3f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : adv debug unit is configured with option ADBG_USE_HISPEED
Info : adv debug unit is configured with option ENABLE_JSP_MULTI
Info : adv debug unit is configured with option ENABLE_JSP_SERVER
Halting processor
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
---- Contents of ./scripts/arty_or1k.cfg ----
# Arty OpenOCD config
# These files should be in ./build/conda/share/openocd/scripts
source [find board/digilent_arty.cfg]
# try these for auto probe
#reset_config trst_and_srst
#jtag_rclk 8
set TAP_TYPE XILINX_BSCAN
source [find board/or1k_generic.cfg]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment