<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Questions about the Hse_B Monotonic counter in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Questions-about-the-Hse-B-Monotonic-counter/m-p/2205101#M54482</link>
    <description>&lt;P&gt;Hi ，NXP&lt;BR /&gt;&lt;BR /&gt;At present, I need to use the Monotonic counter of HSE. How should I configure it? Are there any precautions for operations? I have referred to the HSE_B Firmware Reference Manual, but I don't understand many of the principles. I hope to get some help and answers.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;As I understand it, HSE_B has HSE_NUM_OF_MONOTONIC_COUNTERS (16) counters, and each HSE monotonic counter is 64 bits. It can be configured as two types of bit fields: RP/VC. Only when the accumulated sum of the increment value is greater than the range of the VC bit field will an RP update be triggered, and the accumulated sum will be updated and added to RP and saved to FLASH. Based on the above understanding, ① After the RP update is triggered, will VC be reset to 0? ② When only updating VC, the data will not be stored in dflash. So if a POR event occurs, will the data be lost?&lt;/LI&gt;&lt;LI&gt;Suppose I configure RP as 64 bits. Each time the data is updated, it will be updated to FLASH. Why does an erase operation occur only when 512 bit fields are changed? Does RP use a principle similar to FEE?&lt;/LI&gt;&lt;LI&gt;Suppose I configure RP as 32 bits, and VC will also be 32 bits. Will there be no trigger to save the data to Flash?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wuxianlong_0-1763113826847.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365687iBAB783A9AD483E6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="wuxianlong_0-1763113826847.png" alt="wuxianlong_0-1763113826847.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Best Regards，&lt;BR /&gt;xianlong&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2025 09:51:28 GMT</pubDate>
    <dc:creator>wuxianlong</dc:creator>
    <dc:date>2025-11-14T09:51:28Z</dc:date>
    <item>
      <title>Questions about the Hse_B Monotonic counter</title>
      <link>https://community.nxp.com/t5/S32K/Questions-about-the-Hse-B-Monotonic-counter/m-p/2205101#M54482</link>
      <description>&lt;P&gt;Hi ，NXP&lt;BR /&gt;&lt;BR /&gt;At present, I need to use the Monotonic counter of HSE. How should I configure it? Are there any precautions for operations? I have referred to the HSE_B Firmware Reference Manual, but I don't understand many of the principles. I hope to get some help and answers.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;As I understand it, HSE_B has HSE_NUM_OF_MONOTONIC_COUNTERS (16) counters, and each HSE monotonic counter is 64 bits. It can be configured as two types of bit fields: RP/VC. Only when the accumulated sum of the increment value is greater than the range of the VC bit field will an RP update be triggered, and the accumulated sum will be updated and added to RP and saved to FLASH. Based on the above understanding, ① After the RP update is triggered, will VC be reset to 0? ② When only updating VC, the data will not be stored in dflash. So if a POR event occurs, will the data be lost?&lt;/LI&gt;&lt;LI&gt;Suppose I configure RP as 64 bits. Each time the data is updated, it will be updated to FLASH. Why does an erase operation occur only when 512 bit fields are changed? Does RP use a principle similar to FEE?&lt;/LI&gt;&lt;LI&gt;Suppose I configure RP as 32 bits, and VC will also be 32 bits. Will there be no trigger to save the data to Flash?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wuxianlong_0-1763113826847.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365687iBAB783A9AD483E6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="wuxianlong_0-1763113826847.png" alt="wuxianlong_0-1763113826847.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Best Regards，&lt;BR /&gt;xianlong&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 09:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Questions-about-the-Hse-B-Monotonic-counter/m-p/2205101#M54482</guid>
      <dc:creator>wuxianlong</dc:creator>
      <dc:date>2025-11-14T09:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about the Hse_B Monotonic counter</title>
      <link>https://community.nxp.com/t5/S32K/Questions-about-the-Hse-B-Monotonic-counter/m-p/2205259#M54498</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Rollover Protection (RP) portion of monotonic counter seems to be sort of EEPROM data storage.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Volatile counter (VC) portion of monotonic counter seems to be sort of RAM storage.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Both counter can only be incremented, that’s why the feature is unique, &lt;/SPAN&gt;ensuring they cannot be decremented or reset, thereby maintaining a reliable sequence of operations and enhancing overall system security.&lt;/P&gt;
&lt;P&gt;1) ① - I don’t think so. Just in case RP is changed, then it is stored to FLASH.&lt;/P&gt;
&lt;P&gt;1) ② - Yes, VC portion will be lost i.e. cleared.&lt;/P&gt;
&lt;P&gt;2) Yes, it is exactly how you said.&lt;/P&gt;
&lt;P&gt;3) If you change RP portion, then it’ll be stored to flash.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 15:07:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Questions-about-the-Hse-B-Monotonic-counter/m-p/2205259#M54498</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2025-11-14T15:07:46Z</dc:date>
    </item>
  </channel>
</rss>

