<?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[HA01 sMCAL3_0_0 Demo 烧录后掉电再上电代码无法运行问题]]></title><description><![CDATA[<h1>1. 问题背景</h1>
<h2>1.1 问题描述</h2>
<ol>
<li>将 HA01 sMCAL3_0_0 Demo 编译后的 Hex 下载到 EVB 板中可以正常 Debug 调试，将 EVB 板断点再上电后代码无法运行，Attach 发现 PC 指针停在 0x0100_0000 - 0x0100_FFFF 的 ROM 段。</li>
</ol>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/710/d0a5032f-570a-4460-8af3-b30588c6b271.png" alt="6c7c786d-a79c-4923-a07c-ade67d1fa143-image.png" class=" img-fluid img-markdown" /></p>
<h2>1.2 解决方案</h2>
<ol>
<li>Platform -&gt; SecureBootConfig 中勾选 Name，Name 变成绿色表示使能 SecureBootConfig</li>
</ol>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/710/4a6ca5ac-5b38-424c-ae46-ee1aa396a25b.png" alt="83a82238-8d91-47d8-985b-fc2b17d3a40a-image.png" class=" img-fluid img-markdown" /></p>
<ol start="2">
<li>Platform -&gt; SecureBootConfig -&gt; BvtConfiguration 中勾选 BvtYtlLinkRef，BvtYtlLinkRef 变成绿色表示使能，BvtYtlLinkRef 的值选择 “ytlink/P_FLASH/children/BVT/children/BVT/children/BVT/children/bvt_header”</li>
</ol>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/710/3f989086-d19a-48cb-b90c-7fb3c2878a97.png" alt="b19f195d-df41-4723-92cc-8379c7adc18c-image.png" class=" img-fluid img-markdown" /></p>
<ol start="3">
<li>Platform -&gt; SecureBootConfig -&gt; BvtConfiguration -&gt; BvtCoreConfig 中点击 Add，会生成 BvtCoreConfig_0</li>
</ol>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/710/80d2d2f5-815d-4eb0-bfff-ca97bb11130d.png" alt="506bcc91-74dd-4779-ba02-4406e7fee97c-image.png" class=" img-fluid img-markdown" /></p>
<ol start="4">
<li>Platform -&gt; SecureBootConfig -&gt; BvtConfiguration -&gt; BvtCoreConfig -&gt; BvtCoreConfig_0 中勾选 CoreEnable；CoreAppEntrySource 的值选择 YT_LINK_REF；勾选 CoreAppEntryYtLinkRef 变成绿色表示使能；CoreAppEntryYtLinkRef 的值选择 “ytlink/P_FLASH/children/IVT”</li>
</ol>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/710/043cb9f2-0bcd-4b77-b4aa-5e86d774b75d.png" alt="887e4420-b3fa-4e4f-baab-2982fe41a90c-image.png" class=" img-fluid img-markdown" /></p>
<ol start="5">
<li>Platform -&gt; SecureBootConfig -&gt; SbGroupConfiguration 中勾选 SbGroupYtLinkRef 变成绿色表示使能；SbGroupYtLinkRef 的值选择 “ytlink/P_FLASH/children/BVT/children/BVT/children/BVT/children/sb_config_group”；勾选 SbSectionCfgYtLinkRef 变成绿色表示使能；SbSectionCfgYtLinkRef 的值选择 “ytlink/P_FLASH/children/BVT/children/BVT/children/BVT/children/sb_config_section”</li>
</ol>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/710/3e477ac1-e63f-43df-886a-f7dd6f55db01.png" alt="925017c9-ea90-43d4-92bd-a7b9f0b4567a-image.png" class=" img-fluid img-markdown" /></p>
<ol start="6">
<li>修改后保存 YCT 工程，点击 Ctrl+S -&gt;  Generate 重新生成 MCAL 配置后，使用对应 IDE 重新编译下载后，掉电再上电后可以正常运行</li>
</ol>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/710/7af65691-fb7d-40dd-b305-314740003aa4.png" alt="db01fc55-6bfd-472e-969b-0add227b9c2a-image.png" class=" img-fluid img-markdown" /></p>
<h2>1.3 背景说明</h2>
<ol>
<li>软件：HA01 sMCAL3_0_0 所有 Demo</li>
<li>硬件：EVB 板和客户 PCBA</li>
</ol>
<h1>2. 根因说明</h1>
<ol>
<li>HA01 sMCAL3_0_0 的 Platform 新增 SecureBootConfig 配置，Demo 默认是关闭的，SecureBootConfig 配置会影响 IDE 编译后生成的 BVT 段，若 SecureBootConfig 不配置，IDE 编译后是不生成 BVT 段的。</li>
</ol>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/710/4f4700a6-a0c5-4a96-b030-b65676897dbf.png" alt="74d05a52-2b94-424c-8455-12af063a7294-image.png" class=" img-fluid img-markdown" /></p>
<ol start="2">
<li>没有 BVT 段 ROM 里的安全启动过不了，现象就是断电后在上电，代码不运行，attach 后 PC 指针停在 0x0100_0000 - 0x0100_FFFF 的 ROM 段，芯片卡在安全启动流程里无法正常运行</li>
</ol>
]]></description><link>https://forum.ytmicro.com/topic/2320/ha01-smcal3_0_0-demo-烧录后掉电再上电代码无法运行问题</link><generator>RSS for Node</generator><lastBuildDate>Sat, 24 Oct 2026 08:51:59 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/2320.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Oct 2026 08:11:30 GMT</pubDate><ttl>60</ttl></channel></rss>