Closed sreya-12 closed 10 months ago
Your screenshot is difficult to read and posting screenshots isn't really a good way to provide info in any case. You would be better off posting a verbose -d OpenOCD log and details of the script(s) that you're using.
Edit: screenshot was removed from the original post since I posted the above.
Following is my nexys_video.cfg file for openocd
-- SPDX-License-Identifier: GPL-2.0-or-later
--Digilent Nexys Video with Xilinx Artix-7 FPGA -- https://reference.digilentinc.com/programmable-logic/nexys-video/start
adapter driver ftdi adapter speed 30000
ftdi device_desc "Digilent USB Device" ftdi vid_pid 0x0403 0x6010 --channel 0 is dedicated for Digilent's DPTI Interface --channel 1 is used for JTAG ftdi channel 1
-- just TCK TDI TDO TMS, no reset ftdi layout_init 0x0088 0x008b reset_config none ---Enable sampling on falling edge for high JTAG speeds. ftdi tdo_sample_edge falling
transport select jtag
source [find cpld/xilinx-xc7.cfg] source [find cpld/jtagspi.cfg]
I am trying to run a baremetal program on nexys-video FPGA .I am stuck at this point.Is there any need to edit this openocd cfg file.I have tried Xsdb as well for running a elf file on RISCV based rocketchip SoC.But I guess it supports only arm based and micro-blaze designs.
You didn't attach a verbose OpenOCD log generated using -d
.
Open On-Chip Debugger 0.10.0+dev-00849-gcbb15587d (2021-11-23-18:54) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 13 2 options.c:63 configuration_output_handler(): debug_level: 3 User : 14 2 options.c:63 configuration_output_handler(): Debug: 15 2 options.c:187 add_default_dirs(): bindir=/opt/rockettools/bin Debug: 16 2 options.c:188 add_default_dirs(): pkgdatadir=/opt/rockettools/share/openocd Debug: 17 2 options.c:189 add_default_dirs(): exepath=/opt/rockettools/bin Debug: 18 2 options.c:190 add_default_dirs(): bin2data=../share/openocd Debug: 20 2 configuration.c:42 add_script_search_dir(): adding /opt/rockettools/bin/../share/openocd/site Debug: 21 2 configuration.c:42 add_script_search_dir(): adding /opt/rockettools/bin/../share/openocd/scripts User : 22 2 command.c:695 command_run_line(): embedded:startup.tcl:26: Error: Can't find openocd.cfg in procedure 'script' at file "embedded:startup.tcl", line 26 Info : 23 2 server.c:310 add_service(): Listening on port 6666 for tcl connections Info : 24 2 server.c:310 add_service(): Listening on port 4444 for telnet connections Debug: 25 2 command.c:143 script_debug(): command - init init Debug: 27 2 command.c:143 script_debug(): command - target target init Debug: 29 2 command.c:143 script_debug(): command - target target names Debug: 30 2 target.c:1428 handle_target_init_command(): Initializing targets... Error: 31 2 core.c:1340 adapter_init(): Debug Adapter has to be specified, see "interface" command Debug: 32 2 command.c:629 run_command(): Command 'init' failed with error code -101 User : 33 2 command.c:695 command_run_line(): embedded:startup.tcl:26: Error: in procedure 'script' at file "embedded:startup.tcl", line 26
What is your command line for invoking OpenOCD? The following suggests that you're not passing any script(s) from the command line so it falls back to openocd.cfg (in the current directory) and doesn't find it.
embedded:startup.tcl:26: Error: Can't find openocd.cfg in procedure 'script' at file "embedded:startup.tcl", line 26
BTW "openocd issue" really isn't a useful/descriptive title for your issue. The original title was better.
I used the command openocd -f nexys_video.cfg and the output is as follows
Open On-Chip Debugger 0.10.0+dev-00849-gcbb15587d (2021-11-23-18:54)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter
adapter usb
adapter usb location [
Error: invalid subcommand "driver ftdi"
That's a different error to your earlier post and suggests some problem with your script that needs to be fixed according to the OpenOCD documentation.
Thanks i will check on that
@sreya-12, is the issue still relevant? I would like to close it.
Hello, I am new to riscv .I am trying to use openocd for nexys_video fpga.But the openocd is not working.having a error at 6 th line in configuration file which i am unable to rectify