我将FTDI D2XX驱动安装好以后,又按照官方文档MCU JTAG的安装教程在group里添加了plugdev。先后尝试用makefile和ide下载hellowworld demo到fpga上均出现错误。我使用的fpga开发板是XC7A200T,调试器是sipeed ID 0403:6010 Future Technology Devices International, Ltd FT2232C/D/H Dual UART/FIFO IC。
我的疑问是出现这个错误的原因是驱动没有安装好还是CORE下载有问题?是fpga的i/o pin约束有问题嘛?可以尝试修改的办法有哪些?
以下是upload报的错误
==================================================
Download and run helloworld.elf
riscv-nuclei-elf-gdb helloworld.elf -ex “set remotetimeout 240” \
-ex “target remote | openocd -c \”gdb_port pipe; log_output openocd.log\” -f ../../../SoC/hbirdv2/Board/ddr200t/openocd_hbirdv2.cfg” \
—batch -ex “monitor reset halt” -ex “load” -ex “monitor resume” -ex “quit”
Open On-Chip Debugger 0.11.0+dev-01889-geee887d60 (2022-01-14-04:28)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Remote communication error. Target disconnected.: Connection reset by peer.
“monitor” command not supported by this target.
You can’t do that when your target is `exec’
“monitor” command not supported by this target.
=================================================
-以下是make run_openocd
Open On-Chip Debugger 0.11.0+dev-01889-geee887d60 (2022-01-14-04:28)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Using libusb driver
Info : clock speed 1000 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: riscv.cpu: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unsupported DTM version: 15
Warn : target riscv.cpu examination failed
Info : starting gdb server for riscv.cpu on 3333
Info : Listening on port 3333 for gdb connections
Error: Target not examined yet
Error: Unsupported DTM version: 15
make: * [run_openocd] Error 1
在ide GUI编译器里面也是一样的错误