Work Environment
- Windows 7 64bit
- Xilinx Virtex-7 FPGA VC709 Connectivity Kit
Installation Guide
- Unzip the OpenOCD binary zip file to anywhere you’re used to put a tool, like
d:\tools\
Add the OpenOCD executable path to the
PATH
environment, reboot or logout to put it into effectNote: if you’re using
cmder
, we can make it without a rebooting- Go to Setting->Startup->Environment
- Set the
PATH
environment:set PATH=D:\tools\openocd\bin;%PATH%
- Open a new console to load the new environments
Install USB JTAG cable driver
- Download zadig
- Go to Options->List All devices
- Select the first cable port (interface 0 or Port A), vid: 0403, pid: 6010
Click “Replace Driver”.
Programming
Target Xilinx Virtex XC7 series as of now
Put the OpenOCD configuration file in the work dir together with the bit file (file content attached at the end).
1
2
3
4cd d:\workdir
dir
openocd.cfg
a-bit-file.bitModify the path to the bit file in the configuration
1
2
3
4
5
6...
init
xc7_program xc7.tap
pld load 0 a-bit-file.bit #### this one ####
exit
...Run openocd in the cmd.exe or a cmder console
1
openocd --command "tcl_port disabled" --command "telnet_port disabled"
If the configuration file is not in the current work directory, we can specifiy it in the command line
1
openocd -f <path_to_config> --command "tcl_port disabled" --command "telnet_port disabled"
Waiting for the programming done if no error raised
1
2
3
4
5
6
7
8
9
10
11
12
13$ openocd
GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00404-g20463c28 (2018-01-23-12:30)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
adapter speed: 25000 kHz
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 25000 kHz
Info : JTAG tap: xc7.tap tap/device found: 0x33691093 (mfg: 0x049 (Xilinx), part: 0x3691, ver: 0x3)
Warn : gdb services need one or more targets defined
loaded file a-bit-file.bit to pld device 0 in 16s 603000us
OpenOCD Configuration
1 | source [find interface/ftdi/digilent-hs1.cfg] |