<?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[ROM安全启动无法跳转到boot]]></title><description><![CDATA[<p dir="auto">目前已经在用户 Boot 中配置了 Secure Boot，但是实际烧写后发现 ROM 启动后没有正常进入 Boot，调试了一下发现主要是严格安全启动BOOT_SEQ_STRICT这个位导致进入不了boot，因此希望确认 ROM → Boot 的启动流程以及具体的调试方法</p>
<pre><code>CM7_0_M_EN-1
BOOT_SEQ-1
BOOT_SEQ_STRICT-1
APP_WDG_EN-1
ROM_BOOT_SCST_EN-1
CPDIVS-0
</code></pre>
<p dir="auto">boot中secure group软件配置如下</p>
<pre><code>const secure_boot_group_config_t secure_boot_group SB_CONFIG_SECTION_SEG = {
    .secure_boot_group_marker = SECURE_BOOT_GROUP_MARKER,
    .secure_boot_section_num  = 1,
    .encrypt                  = true,
    .aes_key_size             = KEY_LEN_128_BITS,
    .key_slot                 = 0,
    .section_config_addr[0]   = (uint32_t)&amp;secure_boot_section_config0,
};
</code></pre>
<p dir="auto">boot中secure section软件配置如下</p>
<pre><code>const secure_boot_section_config_t secure_boot_section_config0 SB_CONFIG_SECTION_SEG = {
    .secure_boot_marker = SECURE_BOOT_SECTION_MARKER,
    .aes_key_size       = KEY_LEN_128_BITS,
    .key_slot           = 0,
    .start_addr         = 0x02000800,
    .length             = 0xFC00,
    .cmac_addr          = (uint32_t)&amp;cmac0[0],
};
</code></pre>
<p dir="auto">目前已经检查了生成的 HEX 文件，Secure Boot Group 和 Secure Boot Section 的相关配置在 HEX 中没有发现明显异常，并且编辑hex在最后加入了boot的cmac计算值<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1925/31321758-8f11-4e69-9a30-b950fe18fc9d.png" alt="c26d62ee-f89c-4f6a-9606-fd796096f566-image.png" class=" img-fluid img-markdown" /><br />
但烧写进去boot未启动<br />
想确认一下：<br />
1.ROM 没有进入 Secure Boot 流程<br />
2.ROM无法跳转是因为CMAC 校验失败还是因为group/section配置校验失败<br />
3.关于这部分调试方法或者相关资料和参考示例代码</p>
]]></description><link>https://forum.ytmicro.com/topic/2239/rom安全启动无法跳转到boot</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 11:22:54 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/2239.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Sep 2026 02:08:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ROM安全启动无法跳转到boot on Tue, 08 Sep 2026 10:03:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/23">Diga</a> 在 <a href="/post/9641">ROM安全启动无法跳转到boot</a> 中说：</p>
<blockquote>
<ol>
<li>这段地址是在 ROM 里，应该是停在 ROM 没跳过去</li>
<li>签名的输入，一是你的程序，即明文，二是你的密钥，这俩但凡有一个更新了，签名都要同步更新，不然肯定不匹配。</li>
</ol>
</blockquote>
<p dir="auto">这部分下午尝试用yuntu_tool生成，生成出来可以跳转boot，但比较发现secure section被篡改了，和资料上说明的有点出入，例如头应该是0x5aa5，key slot这部分0x33也不太合理<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1925/0aaa3462-2e80-4565-bc14-429dda507ed5.png" alt="41a6d2c4-b6bb-48b1-a412-57ea9c4d2d95-ceedcfc6ebb62056e6a4480df64c9d23.png" class=" img-fluid img-markdown" /><br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1925/58c29ebc-f0f8-4c1a-a3ba-e22cf9077d20.png" alt="04935ff5-851c-4379-9164-9ffadce0c855-3b57eaa675687e288a4912b19e375168.png" class=" img-fluid img-markdown" /><br />
yuntu_tool配置如下<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1925/292d910b-6edf-4af7-a009-8c7662062b1c.png" alt="18e79cd5-9d16-44d8-b6d1-31e2c8071e74-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/9650</link><guid isPermaLink="true">https://forum.ytmicro.com/post/9650</guid><dc:creator><![CDATA[xiepenghan]]></dc:creator><pubDate>Tue, 08 Sep 2026 10:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to ROM安全启动无法跳转到boot on Tue, 08 Sep 2026 05:39:52 GMT]]></title><description><![CDATA[<p dir="auto">如果能让你看到 ROM 算出的 CMAC 值，那你直接把这个签名往里填不就行了，那这个安全启动还有安全性可言吗</p>
]]></description><link>https://forum.ytmicro.com/post/9643</link><guid isPermaLink="true">https://forum.ytmicro.com/post/9643</guid><dc:creator><![CDATA[Diga]]></dc:creator><pubDate>Tue, 08 Sep 2026 05:39:52 GMT</pubDate></item><item><title><![CDATA[Reply to ROM安全启动无法跳转到boot on Tue, 08 Sep 2026 03:48:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/23">Diga</a> 在 <a href="/post/9641">ROM安全启动无法跳转到boot</a> 中说：</p>
<blockquote>
<ol>
<li>这段地址是在 ROM 里，应该是停在 ROM 没跳过去</li>
<li>签名的输入，一是你的程序，即明文，二是你的密钥，这俩但凡有一个更新了，签名都要同步更新，不然肯定不匹配。</li>
</ol>
</blockquote>
<p dir="auto">第二点没有调试手段吗，例如查看ROM算出的cmac值，然后我可以再和我工具计算出来的比较一下</p>
]]></description><link>https://forum.ytmicro.com/post/9642</link><guid isPermaLink="true">https://forum.ytmicro.com/post/9642</guid><dc:creator><![CDATA[xiepenghan]]></dc:creator><pubDate>Tue, 08 Sep 2026 03:48:33 GMT</pubDate></item><item><title><![CDATA[Reply to ROM安全启动无法跳转到boot on Tue, 08 Sep 2026 03:16:59 GMT]]></title><description><![CDATA[<ol>
<li>这段地址是在 ROM 里，应该是停在 ROM 没跳过去</li>
<li>签名的输入，一是你的程序，即明文，二是你的密钥，这俩但凡有一个更新了，签名都要同步更新，不然肯定不匹配。</li>
</ol>
]]></description><link>https://forum.ytmicro.com/post/9641</link><guid isPermaLink="true">https://forum.ytmicro.com/post/9641</guid><dc:creator><![CDATA[Diga]]></dc:creator><pubDate>Tue, 08 Sep 2026 03:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to ROM安全启动无法跳转到boot on Tue, 08 Sep 2026 03:10:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/23">Diga</a> 在 <a href="/post/9639">ROM安全启动无法跳转到boot</a> 中说：</p>
<blockquote>
<p dir="auto">密钥有没有更新</p>
</blockquote>
<p dir="auto">1.我现在通过iar attach上去查看运行卡住的地址是0x0100c784，我看这段其实并没有内容<br />
2.密钥这点真是我现在迷惑的，ROM校验跳boot是根据boot中安全启动的配置来决定的吗，例如我现在工程中配置key_slot=0那么ROM校验的时候是使用密钥槽0中的来校验码，如果是这样密钥应该是没问题的，因为现在boot能通过安全启动跳转app，使用的也是该密钥槽<br />
3.程序我查看内存是有更新的，可以查看到hex确实是有烧录到其中<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1925/6573432b-f111-410a-b417-23ebc96a26a8.png" alt="6790382a-975d-4840-89ca-70681143876a-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/9640</link><guid isPermaLink="true">https://forum.ytmicro.com/post/9640</guid><dc:creator><![CDATA[xiepenghan]]></dc:creator><pubDate>Tue, 08 Sep 2026 03:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to ROM安全启动无法跳转到boot on Tue, 08 Sep 2026 02:51:08 GMT]]></title><description><![CDATA[<p dir="auto">直接连上去，看一下 PC 的地址<br />
确认一下，密钥有没有更新，程序有没有更新，签名值有没有同步更新。</p>
]]></description><link>https://forum.ytmicro.com/post/9639</link><guid isPermaLink="true">https://forum.ytmicro.com/post/9639</guid><dc:creator><![CDATA[Diga]]></dc:creator><pubDate>Tue, 08 Sep 2026 02:51:08 GMT</pubDate></item></channel></rss>