Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with OpenOCD #64

Open
odedeini opened this issue Dec 6, 2021 · 0 comments
Open

Error with OpenOCD #64

odedeini opened this issue Dec 6, 2021 · 0 comments

Comments

@odedeini
Copy link

odedeini commented Dec 6, 2021

Hi,

I followed the instructions for the implementation of the platform over vcu118 FPGA.

I programmed the FPGA with the bitstream and closed the connected server from Vivado.

I cloned pulp-sdk with the mentioned tag and built it accordingly.

A config file for vcu118 is not provided so I looked online and gathered configurations to a config file (I set the frequency as 10MHz everywhere so I also set it as 10MHz for the config file):

===========================================================================================
adapter_khz 10000

interface ftdi

ftdi_vid_pid 0x0403 0x6014

ftdi_layout_init 0x00e8 0x00eb
ftdi_layout_signal nSRST -oe 0x0200
ftdi_layout_signal nTRST -data 0x0100
ftdi_layout_signal LED -data 0x0800

set _CHIPNAME riscv

jtag newtap $_CHIPNAME unknown0 -irlen 5 -expected-id 0x10102001
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x249511C3

set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME -coreid 0x3e0

gdb_report_data_abort enable
gdb_report_register_access_error enable

riscv set_reset_timeout_sec 120
riscv set_command_timeout_sec 120

# prefer to use sba for system bus access
riscv set_prefer_sba on

# dump jtag chain
scan_chain

init
halt
echo "Ready for Remote Connections"

===========================================================================================

The output of the command "$OPENOCD/bin/openocd -f ./vcu118.cfg" is:

===========================================================================================
~/pulp-sdk$ $OPENOCD/bin/openocd -f ./vcu118.cfg
Open On-Chip Debugger 0.10.0+dev-00615-ge0035f875-dirty (2021-12-06-10:54)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 10000 kHz
Info : auto-selecting first available session transport "jtag". To override use 'transport select '.
TapName Enabled IdCode Expected IrLen IrCap IrMask


0 riscv.unknown0 Y 0x00000000 0x10102001 5 0x01 0x03
1 riscv.cpu Y 0x00000000 0x249511c3 5 0x01 0x03
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: riscv.unknown0 tap/device found: 0x14b31093 (mfg: 0x049 (Xilinx), part: 0x4b31, ver: 0x1)
Warn : JTAG tap: riscv.unknown0 UNEXPECTED: 0x14b31093 (mfg: 0x049 (Xilinx), part: 0x4b31, ver: 0x1)
Error: JTAG tap: riscv.unknown0 expected 1 of 1: 0x10102001 (mfg: 0x000 (), part: 0x0102, ver: 0x1)
Info : JTAG tap: riscv.cpu tap/device found: 0xffffffff (mfg: 0x7ff (), part: 0xffff, ver: 0xf)
Warn : JTAG tap: riscv.cpu UNEXPECTED: 0xffffffff (mfg: 0x7ff (), part: 0xffff, ver: 0xf)
Error: JTAG tap: riscv.cpu expected 1 of 1: 0x249511c3 (mfg: 0x0e1 (Wintec Industries), part: 0x4951, ver: 0x2)
Error: Trying to use configured scan chain anyway...
Error: riscv.cpu: IR capture error; saw 0x0b not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unsupported DTM version: 15
Info : Listening on port 3333 for gdb connections
Error: Target not examined yet

Error: Unsupported DTM version: 15

===========================================================================================

I don't know if it matters, but in Vivado I noticed that the ID code of the xcvu9p_0 chip is also 14B31093 (same as in the previous output).

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant