Navigation

    全志在线开发者论坛

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

    XR806_RTthread接口适配请教

    Wireless & Analog Series
    2
    2
    1375
    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.
    • M
      MR.HejingYg LV 2 last edited by

      最初在github上看到有大佬适配了但是没有启动,就自己fork下来倒腾了几下,系统是起来了,如果不执行platform_init(),系统也能正常跑hello world,但是执行了platform_init就发现会卡死在image_init(PRJCONF_IMG_FLASH, PRJCONF_IMG_ADDR),进一步用GDB排查发现居然是卡死在printf函数里面。初始化函数是写死了的,修改的地方只有OS接口,rtthread的API和freertos的API的差异还是比较大的,应该是接口适配不对导致出问题了,毕竟printf函数也是需要用到信号量和mux的,把问题丢出来蹲一个大佬帮忙解决。
      代码仓:https://github.com/saltfishli/xr806_RTT

      77db2395-6314-44bb-911f-d049ca1a6da9-图片.png

      1 Reply Last reply Reply Quote Share 0
      • aozima
        aozima LV 7 last edited by

        既然有GDB了,是否把Printf的底层输出置空掉,看是否可以正常跑起来。

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

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

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