Navigation

    全志在线开发者论坛

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

    R818下关于使用devmem2直接操作寄存器失败的问题

    其它全志芯片讨论区
    2
    3
    1101
    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
      shuai.yin LV 3 last edited by

      b3641d54-77ec-4f5b-bcbe-cd46f855cd77-image.png
      devmem2项目源码:https://github.com/radii/devmem2
      我看devmem采用mmap的方式做的寄存器映射采用4字节读写, 发现再基地址上偏移0x28是能读取到的,但是偏移0x24 0x34 读写都不行。

      1 Reply Last reply Reply Quote Share 0
      • B
        benlypan LV 2 last edited by

        看代码,word 方式走的是 unsigned long,64 位下默认应该是按 8 字节访问的

        S 1 Reply Last reply Reply Quote Share 0
        • S
          shuai.yin LV 3 @benlypan last edited by

          @benlypan 对的。我是忽略了,818是64位cpu,但是寄存器是32位,应该使用4字节访问😬

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

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

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