<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[XR806_RTthread接口适配请教]]></title><description><![CDATA[<p dir="auto">最初在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的，把问题丢出来蹲一个大佬帮忙解决。<br />
代码仓：<a href="https://github.com/saltfishli/xr806_RTT" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/saltfishli/xr806_RTT</a></p>
<p dir="auto"><img src="/assets/uploads/files/1645100744407-77db2395-6314-44bb-911f-d049ca1a6da9-%E5%9B%BE%E7%89%87.png" alt="77db2395-6314-44bb-911f-d049ca1a6da9-图片.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://bbs.aw-ol.com/topic/1040/xr806_rtthread接口适配请教</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 00:14:16 GMT</lastBuildDate><atom:link href="https://bbs.aw-ol.com/topic/1040.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Feb 2022 12:27:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to XR806_RTthread接口适配请教 on Sat, 19 Feb 2022 04:17:09 GMT]]></title><description><![CDATA[<p dir="auto">既然有GDB了，是否把Printf的底层输出置空掉，看是否可以正常跑起来。</p>
]]></description><link>https://bbs.aw-ol.com/post/4434</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/4434</guid><dc:creator><![CDATA[aozima]]></dc:creator><pubDate>Sat, 19 Feb 2022 04:17:09 GMT</pubDate></item></channel></rss>