Navigation

    全志在线开发者论坛

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

    V853的SPI能否实现从机模式下的DMA循环内存接收?

    V Series
    3
    5
    1598
    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.
    • S
      sssanton LV 4 last edited by

      即SPI配置成从机模式,实现DMA的数据循环接收(类似STM32的Circular模式)?
      看了数据手册,DMA好像不支持这样的模式,每次传输都只能固定大小。用起来不太方便,我这里的数据每帧的接收间隔只有7ms。

      J 1 Reply Last reply Reply Quote Share 0
      • J
        Jingyan LV 6 @sssanton last edited by

        @sssanton 可以,使用环形缓冲区+dma cycle mode,注意dma需要配置成width=1,burst=1

        目前该用例还没有开放,需要自行实现或在全志平台提单

        S 1 Reply Last reply Reply Quote Share 0
        • S
          szwellchip LV 4 last edited by

          我在全志A133上做了spi从机接收。哎,资料有限,能力有限。最终测试,经常出现spi无法接收数据。最后,加了一个mcu,我的A133还是spi主机来解决。

          1 Reply Last reply Reply Quote Share 0
          • S
            sssanton LV 4 @Jingyan last edited by

            @jingyan 数据手册没看到有SPI有dma cycle mode哦。确定V853支持吗?只看到串口好像有。

            J 1 Reply Last reply Reply Quote Share 0
            • J
              Jingyan LV 6 @sssanton last edited by

              @sssanton 可以,串链/单链是DMA的功能,与外设支持与否无关。但SPI驱动默认用的是单链这个模式,需要自行开发

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

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

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