RISC-V MCU中文社区

关于在Digilent Nexys4上实现e203的问题

发表于 开源蜂鸟E203 2020-04-13 22:58:52
21
11196
0

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

喜欢0
用户评论 (21)
  • 再胖十斤

    2021-05-12 11:28:50 再胖十斤 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

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


  • 读书人阿曾曾

    2021-02-23 18:16:58 读书人阿曾曾 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文件吗?十分感谢!

  • 雷哥

    2020-05-19 21:31:00 雷哥 3#

    hdzx

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


    没有解决? 已经放弃

  • hdzx

    2020-05-19 20:59:20 hdzx 4#

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


  • XQS0927

    2020-04-26 13:38:02 XQS0927 5#

    雷哥

    好吧? 感谢

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

  • 雷哥

    2020-04-26 12:47:16 雷哥 6#

    XQS0927

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

    好吧? 感谢

  • 雷哥

    2020-04-26 12:46:47 雷哥 7#

    hdzx

    我的显示是COM10

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

  • XQS0927

    2020-04-26 11:54:40 XQS0927 8#

    雷哥

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

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

  • hdzx

    2020-04-25 11:53:48 hdzx 9#

    雷哥

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

    我的显示是COM10

  • 雷哥

    2020-04-24 20:03:09 雷哥 10#

    XQS0927

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

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

  • XQS0927

    2020-04-24 18:55:26 XQS0927 11#

    雷哥

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

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

  • 雷哥

    2020-04-24 18:43:22 雷哥 12#

    XQS0927

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

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

  • XQS0927

    2020-04-24 16:46:40 XQS0927 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接口,检查一下接线有没有问题吧,或者杜邦线不好了?

  • 雷哥

    2020-04-24 15:32:30 雷哥 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

  • XQS0927

    2020-04-24 15:09:39 XQS0927 15#

    雷哥

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

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

雷哥

雷哥 实名认证

懒的都不写签名

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