RISC-V MCU中文社区

【求助】 移植蜂鸟e203到a7开发板上,写入代码时报错

发表于 开源蜂鸟E203 2022-09-11 21:56:39
1
749
0

在 Nuclei Studio下 , run的过程中出现以下错误
图片alt
详细错误如下:
图片alt
Open On-Chip Debugger 0.11.0+dev-01875-g13d7bc6cf (2021-09-25-22:27)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use ‘adapter speed’ not ‘adapter_khz’
DEPRECATED! use ‘adapter driver’ not ‘interface’
Info : libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Info : no device found, trying D2xx driver
Info : D2xx device count: 3
Info : Connecting to “(null)” using D2xx mode…
Info : clock speed 1000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x1e200a6d (mfg: 0x536 (Nuclei System Technology Co Ltd), part: 0xe200, ver: 0x1)
Info : Examined RISCV core; XLEN=32, misa=0x40001105
Info : starting gdb server for riscv.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : [riscv.cpu] Found 0 triggers
halted at 0x0 due to debug interrupt
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting ‘gdb’ connection on tcp/3333
Warn : Prefer GDB command “target extended-remote :3333” instead of “target remote :3333”
Info : JTAG tap: riscv.cpu tap/device found: 0x1e200a6d (mfg: 0x536 (Nuclei System Technology Co Ltd), part: 0xe200, ver: 0x1)
halted at 0x0 due to debug interrupt
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (5020 ms). Workaround: increase “set remotetimeout” in GDB
Error: ftdi device did not return all data: 1024, expected 1536
Error: error while flushing MPSSE queue: -4
Error: failed jtag scan: -4
Error: JTAG execute failed: -4
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (5019 ms). Workaround: increase “set remotetimeout” in GDB
Error: ftdi device did not return all data: 1024, expected 1572
Error: error while flushing MPSSE queue: -4
Error: failed jtag scan: -4
Error: JTAG execute failed.
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (5013 ms). Workaround: increase “set remotetimeout” in GDB
Error: ftdi device did not return all data: 1086, expected 1578
Error: error while flushing MPSSE queue: -4
Error: dbus_scan failed jtag scan
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (5018 ms). Workaround: increase “set remotetimeout” in GDB
Error: ftdi device did not return all data: 1024, expected 1584
Error: error while flushing MPSSE queue: -4
Error: dbus_scan failed jtag scan
===== RISC-V Registers
(0) zero (/32): 0x00000000
(1) ra (/32): 0x00000000
(2) sp (/32): 0x00000000
(3) gp (/32): 0x00000000
(4) tp (/32): 0x00000000
(5) t0 (/32): 0x80000000
(6) t1 (/32): 0x00000000
(7) t2 (/32): 0x00000000
(8) fp (/32): 0x00000000
(9) s1 (/32): 0x00000000
(10) a0 (/32): 0x00000000
(11) a1 (/32): 0x00000000
(12) a2 (/32): 0x00000000
(13) a3 (/32): 0x00000000
(14) a4 (/32): 0x00000000
(15) a5 (/32): 0x00000000
(16) a6 (/32): 0x00000000
(17) a7 (/32): 0x00000000
(18) s2 (/32): 0x00000000
(19) s3 (/32): 0x00000000
(20) s4 (/32): 0x00000000
(21) s5 (/32): 0x00000000
(22) s6 (/32): 0x00000000
(23) s7 (/32): 0x00000000
(24) s8 (/32): 0x00000000
(25) s9 (/32): 0x00000000
(26) s10 (/32): 0x00000000
(27) s11 (/32): 0x00000000
(28) t3 (/32): 0x00000000
(29) t4 (/32): 0x00000000
(30) t5 (/32): 0x00000000
(31) t6 (/32): 0x00000000
(32) pc (/32)
(65) ustatus (/32)
(69) uie (/32)
(70) utvec (/32)
(72) utvt (/32)
(80) vcsr (/32)
(129) uscratch (/32)
(130) uepc (/32)
(131) ucause (/32)
(132) utval (/32)
(133) uip (/32)
(134) unxti (/32)
(135) uintstatus (/32)
(137) uscratchcsw (/32)
(138) uscratchcswl (/32)
(323) sedeleg (/32)
(324) sideleg (/32)
(328) stvt (/32)
(390) snxti (/32)
(391) sintstatus (/32)
(393) sscratchcsw (/32)
(394) sscratchcswl (/32)
(577) vsstatus (/32)
(581) vsie (/32)
(582) vstvec (/32)
(641) vsscratch (/32)
(642) vsepc (/32)
(643) vscause (/32)
(644) vstval (/32)
(645) vsip (/32)
(705) vsatp (/32)
(833) mstatus (/32): 0x00000000
(834) misa (/32)
(835) medeleg (/32)
(836) mideleg (/32)
(837) mie (/32)
(838) mtvec (/32)
(839) mcounteren (/32)
(840) mtvt (/32)
(841) csr776 (/32)
(842) csr777 (/32)
(843) csr778 (/32)
(844) csr779 (/32)
(845) csr780 (/32)
(846) csr781 (/32)
(847) csr782 (/32)
(848) csr783 (/32)
(849) mstatush (/32)
(850) csr785 (/32)
(851) csr786 (/32)
(852) csr787 (/32)
(853) csr788 (/32)
……(中间连续的,省略)
(3296) hpmcounter31h (/32)
(3667) hgeip (/32)
(3922) mvendorid (/32)
(3923) marchid (/32)
(3924) mimpid (/32)
(3925) mhartid (/32)
(4161) priv (/8)

Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (5022 ms). Workaround: increase “set remotetimeout” in GDB
Error: ftdi device did not return all data: 1024, expected 1590
Error: error while flushing MPSSE queue: -4
Error: dbus_scan failed jtag scan
整个连线布局:
图片alt

喜欢0
用户评论 (1)
友人a

友人a 实名认证

懒的都不写签名

积分
问答
粉丝
关注
  • RV-STAR 开发板
  • RISC-V处理器设计系列课程
  • 培养RISC-V大学土壤 共建RISC-V教育生态
RV-STAR 开发板