<?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[读取温度C值出现ACCERR]]></title><description><![CDATA[<p dir="auto">读取NVR中的温度C值出现了ACCERR，这个可能啥原因导致的？</p>
<pre><code class="language-c">static uint32_t SafMgrUser_ReadOptNvr(uint32_t Address)
{
    uint32_t u32Data = 0U;
    
    /* Step 0: Wait for IDLE flag to be set */
    while (0U == (EFM-&gt;STS &amp; (EFM_STS_IDLE_MASK)))
    {
        /* wait */
    }

    /* Enter Fls critical section to prevent concurrent EFM access */
    SchM_Enter_Fls_FLS_EXCLUSIVE_AREA_07();
    
    /* Add NOP command to clear write buffer */
    EFM-&gt;CMD = 0;

    /* Step 1: Clear error status of EFM STS register */
    EFM-&gt;STS = EFM_STS_FAIL_MASK |
                EFM_STS_ACCERR_MASK |
                EFM_STS_UNRECOVERR_MASK |
                EFM_STS_RECOVERR_MASK |
                EFM_STS_DONE_MASK;
    
#if (PLATFORM_MPU_CFG == STD_ON)
    ARM_MPU_Disable();
#endif

    /* Step 2: Set the address that needs to be read in the NVR_ADDR register */
    EFM-&gt;NVR_ADDR = Address;
    
#if (PLATFORM_MPU_CFG == STD_ON)
    ARM_MPU_Enable(MPU_CTRL_PRIVDEFENA_Msk);
#endif

    /* Step 3: Write 0xFD9573F5 to CMD_UNLOCK to unlock the command */
    EFM-&gt;CMD_UNLOCK = 0xFD9573F5U;

    /* Step 4: Set Read NVR command (0x42) in CMD register */
    EFM-&gt;CMD = 0x42U;
    
    /* Exit Fls critical section */
    SchM_Exit_Fls_FLS_EXCLUSIVE_AREA_07();
    
    /* Step 5: Wait for DONE flag to be set */
    while (0U == (EFM-&gt;STS &amp; (EFM_STS_DONE_MASK)))
    {
        /* wait */
    }    

    /* Step 6: Read NVR_DATA0 and NVR_DATA1 */
    if (0U == (EFM-&gt;STS &amp; EFM_STS_ACCERR_MASK))
    {
        u32Data = EFM-&gt;NVR_DATA[0];
        /* NVR_DATA[1] also available if needed */
    }

    return u32Data;
}
</code></pre>
<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1300/37256761-ab5e-4b06-b4fd-f0a8bbbcc2fa.png" alt="883250dd-4eec-40ad-9345-55505a6df531-5bed317aa64e4f3ec9afdd02acf916df.png" class=" img-fluid img-markdown" /><br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1300/f03ae877-c689-40ea-9623-837bc546a9f3.png" alt="e47a9622-6d8a-4b79-9951-0c4fb449b6fa-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/topic/2003/读取温度c值出现accerr</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 19:09:52 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/2003.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Jun 2026 03:27:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 08:32:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/119">tx007007</a> 点击链接直接加入会议：<br />
<a href="https://meeting.tencent.com/dm/wr7sc3E5Bq4h" rel="nofollow ugc">https://meeting.tencent.com/dm/wr7sc3E5Bq4h</a></p>
<p dir="auto">#腾讯会议：751-895-963</p>
]]></description><link>https://forum.ytmicro.com/post/8694</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8694</guid><dc:creator><![CDATA[OliverChen]]></dc:creator><pubDate>Thu, 04 Jun 2026 08:32:47 GMT</pubDate></item><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 08:29:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/119">tx007007</a> 可以</p>
]]></description><link>https://forum.ytmicro.com/post/8693</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8693</guid><dc:creator><![CDATA[OliverChen]]></dc:creator><pubDate>Thu, 04 Jun 2026 08:29:08 GMT</pubDate></item><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 08:12:17 GMT]]></title><description><![CDATA[<p dir="auto">要不你拉个会议，远程给你看一下，看能不能找到原因</p>
]]></description><link>https://forum.ytmicro.com/post/8692</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8692</guid><dc:creator><![CDATA[tx007007]]></dc:creator><pubDate>Thu, 04 Jun 2026 08:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 07:58:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/119">tx007007</a> 这个估计是因为断点打的位置在Step6。实际上DATA0是能读到C值的，但是就是会出这个错误。我是直接使用的SafMgrUser_ReadOptNvr(0x100103f8UL)读取的。</p>
]]></description><link>https://forum.ytmicro.com/post/8691</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8691</guid><dc:creator><![CDATA[OliverChen]]></dc:creator><pubDate>Thu, 04 Jun 2026 07:58:57 GMT</pubDate></item><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 07:50:12 GMT]]></title><description><![CDATA[<p dir="auto">从你的NVR_addr来看是0地址，可能传参出问题了，你这里改成绝对地址或者把传参的变量搞成全局看看</p>
]]></description><link>https://forum.ytmicro.com/post/8690</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8690</guid><dc:creator><![CDATA[tx007007]]></dc:creator><pubDate>Thu, 04 Jun 2026 07:50:12 GMT</pubDate></item><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 07:46:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/1298">swust</a> 代码在1L，使用了<code>SchM_Enter_Fls_FLS_EXCLUSIVE_AREA_07</code>这个接口，应该是关了</p>
]]></description><link>https://forum.ytmicro.com/post/8688</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8688</guid><dc:creator><![CDATA[OliverChen]]></dc:creator><pubDate>Thu, 04 Jun 2026 07:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 07:21:19 GMT]]></title><description><![CDATA[<p dir="auto">操作之前关一下全局中断呢</p>
]]></description><link>https://forum.ytmicro.com/post/8684</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8684</guid><dc:creator><![CDATA[swust]]></dc:creator><pubDate>Thu, 04 Jun 2026 07:21:19 GMT</pubDate></item><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 07:04:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/23">Diga</a> <strong>0x100103f8UL</strong><br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1300/570bd4f0-e690-41b6-a44b-eb16335ce7c3.png" alt="c89b062f-3615-4007-806c-28c768f851b6-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.ytmicro.com/post/8682</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8682</guid><dc:creator><![CDATA[OliverChen]]></dc:creator><pubDate>Thu, 04 Jun 2026 07:04:56 GMT</pubDate></item><item><title><![CDATA[Reply to 读取温度C值出现ACCERR on Thu, 04 Jun 2026 07:01:06 GMT]]></title><description><![CDATA[<p dir="auto">读的哪个地址时候出错的</p>
]]></description><link>https://forum.ytmicro.com/post/8681</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8681</guid><dc:creator><![CDATA[Diga]]></dc:creator><pubDate>Thu, 04 Jun 2026 07:01:06 GMT</pubDate></item></channel></rss>