DEBUG , OPENOCD LIBUSB_ERROR_TIMEOUT



  • 调试的时候出现LIBUSB_ERROR_TIMEOUT错误:

    (k210)ch@ch-H110M-TS:$ sudo ./bin/openocd -f tcl/new.cfg 
    Kendryte Open On-Chip Debugger For RISC-V v0.1.3 (20180912)
    Licensed under GNU GPL v2
    adapter speed: 3000 kHz
    Info : J-Link ARM V8 compiled Nov 28 2014 13:44:46
    Info : Hardware version: 8.00
    Info : VTarget = 1.831 V
    Warn : Failed to receive data from device: LIBUSB_ERROR_TIMEOUT.  <===HERE
    Warn : Failed to receive data from device: LIBUSB_ERROR_TIMEOUT.
    Error: Receiving data from device timed out.
    Error: transport_read() failed: timeout occurred.
    Error: jaylink_jtag_io() failed: timeout occurred.
    Warn : Last read operation left 2 bytes.
    Warn : Failed to receive data from device: LIBUSB_ERROR_TIMEOUT.
    Warn : Failed to receive data from device: LIBUSB_ERROR_TIMEOUT.
    Error: Receiving data from device timed out.
    Error: transport_read() failed: timeout occurred.
    Error: jaylink_get_speeds() failed: timeout occurred.
    
    Warn : Last read operation left 6 bytes.
    Error: Failed to receive data from device: LIBUSB_ERROR_IO.
    Error: transport_read() failed: unspecified error.
    Error: jaylink_unregister() failed: unspecified error.
    Error: Failed to release interface: LIBUSB_ERROR_NO_DEVICE.
    

    tcl/new.cfg 内容如下:

    # debug adapter
    interface jlink
    
    transport select jtag
    adapter_khz 3000
    
    # server port
    gdb_port 3333
    telnet_port 4444
    
    # add cpu target
    set _CHIPNAME riscv
    
    jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x04e4796b
    
    set _TARGETNAME $_CHIPNAME.cpu
    target create $_TARGETNAME riscv -chain-position $_TARGETNAME
    
    # command
    init
    halt
    
    

    这种情况怎么处理,求助~


  • Staff

    确定你的JLINK设备是正常工作的吗