🔍 搜索帖子 / 资讯 / 芯片型号…
论坛/开源蜂鸟E203/关于在Digilent Nexys4上实现e203的问题
关于在Digilent Nexys4上实现e203的问题
开源蜂鸟E203 作者 雷哥 发布于 2020-04-13 22:58(2370 天前) 20512 浏览

我看到e203的开源SoC为上载程序提供了JTAG接口(四个引脚) 但我现在没有蜂鸟专用JTAG调试器 也就是没法按照嵌入式开发那本书里的引导来将编译好的程序代码上载,请问有什么解决办法吗(买了其他usb-jtag通用转换芯片但好像并没有什么用 eclipse无法识别 个人也不太懂那部分的一堆编译选项...

全部回复 21
再
再胖十斤1976 天前 · 1 楼
回复 雷哥:

Info : auto-selecting first available session transport "jtag". To override use 'transport select '. Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND 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 Info : Listening on port 3333 for gdb connections Error: Target not examined yet Error: Unsupported DTM version: 15 Warn : Flash driver of my_first_flash does not support free_driver_priv() 确定可以检测到RS-232

我现在也是这个问题,楼主怎么解决啊


读书人阿曾曾
读书人阿曾曾2054 天前 · 2 楼
回复 XQS0927:

买一个调试器呗,淘宝上就有,也不贵。

我自己的话没有买,用的是吃灰已久的olimex的一个CABLE,蜂鸟有提供olimex的cfg文件,直接就能用。

您好,我用的是olimex tiny-h那个调试器,然后也用了如下的.cfg文件: #adapter_khz 10000 adapter_khz 1000 #source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg] interface ftdi ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" ftdi_vid_pid 0x15ba 0x002a ftdi_layout_init 0x0808 0x0a1b ftdi_layout_signal nSRST -oe 0x0200 ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 ftdi_layout_signal LED -data 0x0800 # set _CHIPNAME riscv jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1e200a6d set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME riscv -chain-position $_TARGETNAME $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 flash bank my_first_flash fespi 0x20000000 0 0 0 $_TARGETNAME riscv expose_csrs 3040-3071 init #reset if {[ info exists pulse_srst]} { ftdi_set_signal nSRST 0 ftdi_set_signal nSRST z } halt # We must turn on this because otherwise the IDE version debug cannot download the program into flash flash protect 0 0 last off 但是这个文件好像不能直接使用,有很多管脚都没有定义,请问您可以给我看看您用的.cfg文件吗?十分感谢!

雷哥
雷哥2334 天前 · 3 楼
回复 hdzx:

请问楼主解决了吗?用什么调试器可以下载应用程序到soc中?


没有解决? 已经放弃

h
hdzx2334 天前 · 4 楼

请问楼主解决了吗?用什么调试器可以下载应用程序到soc中?


X
XQS09272357 天前 · 5 楼
回复 雷哥:

好吧? 感谢

其实PC端识别到COM口可能只是说明电脑到调试线是好的,不能说明调试线到开发板之间也连接好了。。。

雷哥
雷哥2357 天前 · 6 楼
回复 XQS0927:

这就爱莫能助了,我用的是Olimex的线,看看哪位用蜂鸟调试线的同仁给解释一下吧。。。

好吧? 感谢

雷哥
雷哥2357 天前 · 7 楼
回复 hdzx:

我的显示是COM10

和COM几没关系,串行设备总线里显示的才是设备(驱动)信息

X
XQS09272357 天前 · 8 楼
回复 雷哥:

这正是问题的关键? 设备管理器里显示是识别到Dual RS-232的

这就爱莫能助了,我用的是Olimex的线,看看哪位用蜂鸟调试线的同仁给解释一下吧。。。

h
hdzx2358 天前 · 9 楼
回复 雷哥:

这正是问题的关键? 设备管理器里显示是识别到Dual RS-232的

我的显示是COM10

雷哥
雷哥2359 天前 · 10 楼
回复 XQS0927:

那看一下设备管理器,查一下驱动

这正是问题的关键? 设备管理器里显示是识别到Dual RS-232的

X
XQS09272359 天前 · 11 楼
回复 雷哥:

嗯……有其他人给出的解释是说驱动的问题 就是跟连接开发板的这个环节没关系,在调试器那里就夭折了。。

那看一下设备管理器,查一下驱动

雷哥
雷哥2359 天前 · 12 楼
回复 XQS0927:

Error: JTAG scan chain interrogation failed: all ones 这条错误信息意思是没识别出JTAG接口,检查一下接线有没有问题吧,或者杜邦线不好了?

嗯……有其他人给出的解释是说驱动的问题 就是跟连接开发板的这个环节没关系,在调试器那里就夭折了。。

X
XQS09272359 天前 · 13 楼
回复 雷哥:

Info : auto-selecting first available session transport "jtag". To override use 'transport select '. Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND 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 Info : Listening on port 3333 for gdb connections Error: Target not examined yet Error: Unsupported DTM version: 15 Warn : Flash driver of my_first_flash does not support free_driver_priv() 确定可以检测到RS-232

Error: JTAG scan chain interrogation failed: all ones 这条错误信息意思是没识别出JTAG接口,检查一下接线有没有问题吧,或者杜邦线不好了?

雷哥
雷哥2359 天前 · 14 楼
回复 XQS0927:

libsub_open() failed with LIBSUB_ERROR_NOT_SUPPORTED这个错误消息可以忽略,其他的你不发上来我也不知道是个啥。。。

Info : auto-selecting first available session transport "jtag". To override use 'transport select '. Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND 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 Info : Listening on port 3333 for gdb connections Error: Target not examined yet Error: Unsupported DTM version: 15 Warn : Flash driver of my_first_flash does not support free_driver_priv() 确定可以检测到RS-232

X
XQS09272359 天前 · 15 楼
回复 雷哥:

我买来调试器了,也按书上说的配置了,但是仍然报错? libsub_open() failed with LIBSUB_ERROR_NOT_SUPPORTED以及一大堆...

libsub_open() failed with LIBSUB_ERROR_NOT_SUPPORTED这个错误消息可以忽略,其他的你不发上来我也不知道是个啥。。。

💡 请 登录 后参与讨论(微信扫码即登录/注册)