Navigation

    全志在线开发者论坛

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

    T536 大小核共享内存,有没有简单的Demo?

    T Series
    3
    3
    200
    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.
    • B
      bleem1998 LV 2 last edited by

      SDK用的V1.2
      FreeRTOS通过共享内存发数据给Linux

      我目前的做法是FreeRTOS持续生成数据(大约1K)写到0x44100~0x44600
      Linux这边读到的始终是旧数据,后续生成的似乎没被写入内存

      指针都加了volatile,是否还需要什么配置?

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

        RPMsg、RPBuf

        1 Reply Last reply Reply Quote Share 0
        • J
          jasonzhang LV 5 @bleem1998 last edited by

          @bleem1998 Linux那边使用内存映射读取的吗?内存共享需要限制不能通过cache访问,对应映射使用ioremap_nocache,直接volatile只是表示每次操作都访问硬件,不会被优化,这个硬件没有说不能是cache。

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

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

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