Navigation

    全志在线开发者论坛

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

    T113i uboot阶段通过串口发送数据

    T Series
    2
    3
    167
    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.
    • Gadyellow
      Gadyellow LV 5 last edited by

      想要在uboot阶段通过串口2发送一条指令出去,但是往寄存器写数据写不进去,有人知道是哪里配置的有问题吗?
      7ec70e64-64b7-4f8a-b2e9-4f6b28c14d12-image.png
      9751579e-9c7e-4e2f-a0f2-ff034ec60b9f-image.png
      ce119e62-5251-4433-a626-9c6bc032f368-image.png
      代码是添加在brandy-2.0/spl-pub/nboot/main/boot0_main.c中,运行的log如下:
      589c6e6c-b70f-4a84-b1bc-7fec843ac880-image.png
      【还有一个奇怪的点就是当我开启APB1和UART的时钟后,镜像烧写就会卡住,因此屏蔽了】

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

        @gadyellow 去参考awboot里面关于uart初始化的代码,配置没细看,至少缺少Uart引脚初始化,UART时钟使能和复位释放操作。
        awboot.PNG

        awboot的源码可以参考: https://github.com/szemzoa/awboot

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

          @jasonzhang 在 T113i uboot阶段通过串口发送数据 中说:

          @gadyellow 去参考awboot里面关于uart初始化的代码,配置没细看,至少缺少Uart引脚初始化,UART时钟使能和复位释放操作。
          awboot.PNG

          awboot的源码可以参考: https://github.com/szemzoa/awboot

          好的,谢谢,我这边研究看下

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

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

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