回复于:手把手教你搭建织女星开发板RISC-V开发环境

Home 论坛 开发和更新问题 手把手教你搭建织女星开发板RISC-V开发环境 回复于:手把手教你搭建织女星开发板RISC-V开发环境

#1858
律 郑zetalog
参与者

整个文档和视频演示就没有说明调试器如何连接J17。
完全按照演示操作就会误以为FREELINK USB改完驱动后就可以连接ri5cy核。

然后USB连接FREELINK USB,执行演示命令就得到这个:

C:\eclipse>openocd -f C:\eclipse\rv32m1_sdk_riscv\boards\rv32m1_vega\rv32m1_ri5cy.cfg
Open On-Chip Debugger 0.10.0+dev-00433-g849f49ca (2019-01-04-07:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 1000 kHz
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : mohor tap selected
Info : adv debug unit selected
Info : Option 1 is passed to adv debug unit
Info : core 0 selected
Info : add flash_bank rv32m1 rv32m1.flash0
Info : add flash_bank rv32m1 rv32m1.flash1
Info : J-Link LPCXpresso V2 compiled Sep 23 2016 12:14:15
Info : Hardware version: 1.00
Info : VTarget = 3.300 V
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: rv32m1.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : adv debug unit is configured with option ADBG_USE_HISPEED
Warn : CRC ERROR! Computed 0x00000000, read CRC 0xffffffff
Warn : CRC ERROR! Computed 0x00000000, read CRC 0xffffffff

查看NXP手册和SCHEME文档看到板载的FREELINK默认是接CortexM0核的
它可以直接调试ri5cy核吗?
如果可以,是要通过J14和J17相连吗?或者要如何跳线?

如果不行是不是要我们自备JLink了?