Navigation

    全志在线开发者论坛

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

    请问D1H裸机下SPI0的寄存器无法访问到?

    MR Series
    3
    6
    1719
    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
      sorive LV 3 last edited by

      我在裸机程序中配置SPI0的寄存器,但是发现写不进去值。配置UART就可以。我是直接在程序中访问以下的SPI0地址。程序的地址在0x40200000。

      5c53d2da-0757-4723-96c6-a2d4ac5f03ac-image.png

      结果:
      817fef11-eb27-4388-bac4-6379eebf8dbf-image.png

      C 1 Reply Last reply Reply Quote Share 0
      • C
        chengwei_peng LV 6 @sorive last edited by

        @sorive 是不是spi0的时钟你还没有配置,需要先配置时钟,再配置寄存器

        S 1 Reply Last reply Reply Quote Share 0
        • S
          sorive LV 3 @chengwei_peng last edited by

          @chengwei_peng 我先配了SPI0的时钟了,时钟源选的HOSC:
          799b104c-e24a-4d22-b418-33cdd4ef652e-image.png

          1 Reply Last reply Reply Quote Share 0
          • S
            sorive LV 3 last edited by

            @chengwei_peng 在 请问D1H裸机下SPI0的寄存器无法访问到? 中说:

            @sorive 是不是spi0的时钟你还没有配置,需要先配置时钟,再配置寄存器

            C 1 Reply Last reply Reply Quote Share 0
            • C
              chengwei_peng LV 6 @sorive last edited by

              @sorive SPI_BGR_REG 这个寄存器也要操作

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

                请问裸机开发 用的是哪个编译软件,SDK。有相应的资料可以参考一下嘛

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

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

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