Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T113S3 I2C异常

    T Series
    3
    7
    1046
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lztmfx LV 5 last edited by

      root@TinaLinux:/# i2cdetect -y 0
      0 1 2 3 4 5 6 7 8 9 a b c d e f[ 225.484348] sunxi-i2c sunxi-i2c0: runtime resume finish

      00: [ 225.494594] sunxi-i2c sunxi-i2c0: engine-mode: start signal xfered
      [ 225.494608] sunxi-i2c sunxi-i2c0: engine-mode: [slave address:(0x3),irq state:(0x8)]
      [ 225.511400] sunxi-i2c sunxi-i2c0: engine-mode: 7bits+r/w = 0x6 xfered
      [ 225.518624] sunxi-i2c sunxi-i2c0: engine-mode: data 0x6 xfered
      [ 230.529514] sunxi-i2c sunxi-i2c0: engine-mode: xfer timeout(dev addr:0x3)
      [ 230.529546] sunxi-i2c sunxi-i2c0: runtime suspend finish
      [ 230.537143] 0x02502000: 00000000 00000000 00000000 00000000
      [ 230.549452] 0x02502010: 00000000 00000000 00000000 00000000
      -- [ 230.555922] sunxi-i2c sunxi-i2c0: runtime resume finish
      [ 230.562028] sunxi-i2c sunxi-i2c0: engine-mode: start signal xfered
      [ 235.569499] sunxi-i2c sunxi-i2c0: engine-mode: xfer timeout(dev addr:0x4)
      [ 235.569529] sunxi-i2c sunxi-i2c0: runtime suspend finish
      [ 235.577115] 0x02502000: 00000000 00000000 00000000 00000000
      [ 235.577121] 0x02502010: 00000000 00000000 00000000 00000000
      -- [ 235.595857] sunxi-i2c sunxi-i2c0: runtime resume finish
      [ 235.601971] sunxi-i2c sunxi-i2c0: engine-mode: start signal xfered
      ^C[ 240.609525] sunxi-i2c sunxi-i2c0: engine-mode: xfer timeout(dev addr:0x5)
      [ 240.609543] sunxi-i2c sunxi-i2c0: runtime suspend finish
      [ 240.617154] 0x02502000: 00000000 00000000 00000000 00000000
      [ 240.629478] 0x02502010: 00000000 00000000 00000000 00000000

      root@TinaLinux:/# i2cdetect -l
      i2c-0 i2c sunxi-i2c0 I2C adapter

      换了其他没有挂任何设备的I2C也是一样的报错,是不是kernel什么地方配置不对啊?和开源的好几个项目都对比过config配置了,不知道怎么排查了

      Z 1 Reply Last reply Reply Quote Share 0
      • Z
        z2500abc LV 5 @lztmfx last edited by

        @lztmfx 是不是 设备树配置有问题啊,先检查下设备树的配置了

        1 Reply Last reply Reply Quote Share 0
        • A
          awwwwa LV 8 last edited by

          engine-mode开了,配置 下twi_drv_used = <1>;

          L 1 Reply Last reply Reply Quote Share 1
          • L
            lztmfx LV 5 last edited by

            @z2500abc 闹乌龙了,SCL和旁边的PWM引脚连锡了,另外正常的哪路TWI也会打印许多信息,我直接把kernel 的log等级改成3就不打印这么多了

            1 Reply Last reply Reply Quote Share 0
            • L
              lztmfx LV 5 @awwwwa last edited by

              @awwwwa twi_drv_used 是做什么的?以前没看到过,我试试看,我后来把kernel log等级改成3就不打印这么多了

              A Z 2 Replies Last reply Reply Quote Share 0
              • A
                awwwwa LV 8 @lztmfx last edited by

                @lztmfx 是否使用DMA

                1 Reply Last reply Reply Quote Share 0
                • Z
                  z2500abc LV 5 @lztmfx last edited by

                  @lztmfx DMA功能的

                  1 Reply Last reply Reply Quote Share 0
                  • 1 / 1
                  • First post
                    Last post

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

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