RISC-V MCU中文社区

【求助】 【求助】采用rs232-hs下载时出现问题

发表于 开源蜂鸟E203 2024-09-02 14:59:28
0
231
0

在读取idcode的时候出现0xffffffff的情况,还是第一次遇到一直没有办法处理,不知道是rtl有点问题还是如果要调试双核在nucleistudio环境的配置上要进行修改,以下是console的状况和openocd:
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
Warn : riscv1.cpu: nonstandard IR value
Info : libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Info : no device found, trying D2xx driver
Info : D2xx device count: 3
Info : Connecting to “Dual RS232-HS A” using D2xx mode…
Info : clock speed 1000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x12030a6d (mfg: 0x536 (Nuclei System Technology Co Ltd), part: 0x2030, ver: 0x1)
Info : JTAG tap: riscv1.cpu tap/device found: 0xffffffff (mfg: 0x7ff (), part: 0xffff, ver: 0xf)
Warn : JTAG tap: riscv1.cpu UNEXPECTED: 0xffffffff (mfg: 0x7ff (), part: 0xffff, ver: 0xf)
Error: JTAG tap: riscv1.cpu expected 1 of 1: 0x12030a6d (mfg: 0x536 (Nuclei System Technology Co Ltd), part: 0x2030, ver: 0x1)
Error: Trying to use configured scan chain anyway…
Error: riscv1.cpu: IR capture error; saw 0x1f not 0x1f
Warn : Bypassing JTAG setup events due to errors
Error: dtmcontrol is 0. Check JTAG connectivity/board power.
Warn : target riscv.cpu examination failed
Error: Unsupported DTM version: 8
Warn : target riscv1.cpu examination failed
Info : starting gdb server for riscv.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for riscv1.cpu on 3334
Info : Listening on port 3334 for gdb connections
Error: Target not examined yet

Error: Unsupported DTM version: 8

openocd:
adapter speed 1000

adapter driver ftdi

ftdi_device_desc “Dual RS232-HS”
ftdi_vid_pid 0x0403 0x6010

ftdi_oscan1_mode on

transport select jtag

ftdi_layout_init 0x0008 0x001b
ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020
ftdi_layout_signal TCK -data 0x0001
ftdi_layout_signal TDI -data 0x0002
ftdi_layout_signal TDO -input 0x0004
ftdi_layout_signal TMS -data 0x0008
ftdi_layout_signal JTAG_SEL -data 0x0100 -oe 0x0100

set _CHIPNAME riscv
set _CHIPNAME1 riscv1
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x12030a6d
jtag newtap $_CHIPNAME1 cpu -irlen 5 -expected-id 0x12030a6d -ircapture 0x1f

set _TARGETNAME $_CHIPNAME.cpu
set _TARGETNAME1 $_CHIPNAME1.cpu

target create $_TARGETNAME riscv -chain-position $_TARGETNAME -coreid 0
target create $_TARGETNAME1 riscv -chain-position $_TARGETNAME1 -coreid 0

tcl_port disabled
telnet_port disabled
gdb_port 3333

init

if {[ info exists pulse_srst]} {
ftdi_set_signal nSRST 0
ftdi_set_signal nSRST z
}
halt

echo “Ready for Remote Connections”

喜欢0
用户评论
befer

befer 实名认证

懒的都不写签名

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