导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    T-Head Debugger Server 连线问题

    MR Series
    2
    4
    2260
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • B
      brissett LV 3 最后由 编辑

      我的 CKLink_Lite_V2 接到 Sparkfun SDcard sniffer pinout 再接到板子, 想用 GDB 调试板子

      DebugServer 从 T-Head 页面下载的 T-Head-DebugServer-linux-x86_64-V5.16.2-20220708.sh.tar.gz

      alt text

      想问

      1. VCC 应该是接到 CKLink 的 Vref?
      2. 因为 Jtag 与 SD 卡共用脚位,Sparkfin SDcard sniffer 上是否不能放 SD card 呢?

      错误信息:

      DebugServerConsole -arch riscv --debug connect 
      +---                                                    ---+
      |  T-Head Debugger Server (Build: Jul  8 2022)             |
         User   Layer Version : 5.16.02 
         Target Layer version : 2.0
      |  Copyright (C) 2022 T-HEAD Semiconductor Co.,Ltd.        |
      +---                                                    ---+
      CONNECT: Start to connect target (Enter target_open).
      CONNECT: Detect JTAG port for RISC-V cores.
      CONNECT:        Configure cJTAG with 2-wires
      CONNECT:        Read IDCODE Gets 0x80000000, Invalid IDCODE.
      CONNECT:        Configure CDI type to 2-wires.
      CONNECT:        Read IDCODE Gets 0xffffffff, Manufid is 0x7ff.
      CONNECT:        Configure CDI type to 5-wires.
      CONNECT:        Read IDCODE Gets 0xffffffff, Manufid is 0x7ff.
      CONNECT: Can't detect JTAG Port for RISC-V DM,keep going
      CONNECT: Try to connect target and get arch_ops.
      T-HEAD: CKLink_Lite_V2, App_ver 2.35, Bit_ver null, Clock 2526.316KHz,
             5-wire, Without DDC, Cache Flush On, SN CKLink_Lite_V2-93A75147D5.
      CONNECT: +--Attempt to connect Debug Transport Module.--+
      CONNECT: Read IDCODE.
      CONNECT:        Read DTM IDCODE get 0xffffffff, it isn't T-HEAD implementation.
      CONNECT: Read DTM Debug Control and Status.
      CONNECT:        Read DTMCS get 0xffffffff.
      ERROR: DTM version unknown (dtmcs 0xffffffff)
      CONNECT:        DM is implemented depends on spec unknown as DTMCS.version is 15.
      ERROR: For more information, please run Debugserver with connect log:
               Console: run Debugserver with arguments "--debug connect".
               UI     : select "Connect" from menu "Setting->Verbose Setting".
      
      YuzukiTsuru 1 条回复 最后回复 回复 引用 分享 0
      • YuzukiTsuru
        柚木 鉉 LV 9 @brissett 最后由 编辑

        @brissett VCC可以不用连接(我反正没连
        可以试试按住FEL连接CKLink

        B 1 条回复 最后回复 回复 引用 分享 0
        • B
          brissett LV 3 @YuzukiTsuru 最后由 编辑

          @yuzukitsuru
          谢谢回覆
          想请问DebugServer 是要搭配 xfel 一起使用吗?
          线路都接起来后,我的操作方式: xfel 按钮 -> 板子上电 -> CKLINK 上电 -> xfel ddr ddr3(console 有正常反应)-> xfel jtag (console 没反应) -> DebugServer -arch riscv --debug connect (console 印出一样的错误信息)

          奇怪的是我两张 Nezha 板子都有 Read DTM IDCODE get 0xffffffff, it isn't T-HEAD implementation.

          不知道我的操作流程是否有误?

          YuzukiTsuru 1 条回复 最后回复 回复 引用 分享 0
          • YuzukiTsuru
            柚木 鉉 LV 9 @brissett 最后由 编辑

            @brissett 不需要xfel吧,我记得上电就行了

            1 条回复 最后回复 回复 引用 分享 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策