<?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>MCUXpresso IDEのトピックRe: RTC peripheral enables subsecond timer in wrong order on MIMXRT685S</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1800307#M9502</link>
    <description>&lt;P&gt;Hello, my name is Pavel, and I will be supporting your case, sorry I could not understand if you are reporting an issue, if yes could you elaborate further on how to replay?&amp;nbsp; if this is not the case, could you explain more?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 22:17:39 GMT</pubDate>
    <dc:creator>Pavel_Hernandez</dc:creator>
    <dc:date>2024-02-01T22:17:39Z</dc:date>
    <item>
      <title>RTC peripheral enables subsecond timer in wrong order on MIMXRT685S</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1800038#M9501</link>
      <description>&lt;P&gt;When using the new RTC peripheral, I see that there is an option to enable the subsecond timer.&lt;/P&gt;&lt;P&gt;This is the code it generates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/* Enable sub-second counter */
RTC_EnableSubsecCounter(HRC_RTC_PERIPHERAL, true);
/* Start RTC timer */
RTC_StartTimer(HRC_RTC_PERIPHERAL);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the subsecond timer will not start unless the RTC has been started, making the first call ineffective. The order should be reversed.&lt;/P&gt;&lt;P&gt;As a temporary fix, I have edited my code generator at:&amp;nbsp;\ProgramData\NXP\mcu_data_v15\components\ksdk2_0\lpc_rtc_5b94d23b38d98ad150d835147973adbf\lpc_rtc.component&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:30:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1800038#M9501</guid>
      <dc:creator>Kenzimatic</dc:creator>
      <dc:date>2024-02-01T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: RTC peripheral enables subsecond timer in wrong order on MIMXRT685S</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1800307#M9502</link>
      <description>&lt;P&gt;Hello, my name is Pavel, and I will be supporting your case, sorry I could not understand if you are reporting an issue, if yes could you elaborate further on how to replay?&amp;nbsp; if this is not the case, could you explain more?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 22:17:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1800307#M9502</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-02-01T22:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: RTC peripheral enables subsecond timer in wrong order on MIMXRT685S</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1801950#M9506</link>
      <description>&lt;P&gt;I have a workaround, but the bug exists in the IDE.&lt;/P&gt;&lt;P&gt;On an MIMXRT685S project, create the RTC peripheral and turn on the subsecond counter.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kenzimatic_0-1707142950875.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261964iFE9648726735C11D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kenzimatic_0-1707142950875.png" alt="Kenzimatic_0-1707142950875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Call the peripheral init function.&amp;nbsp;If you execute the code, you'd find that the RTC CTRL register's&amp;nbsp;SUBSEC_ENA bit does not get set to 1 when RTC_EnableSubsecCounter is called.&lt;/P&gt;&lt;P&gt;This is because&amp;nbsp;peripherals.c is generated incorrectly. It calls RTC_EnableSubsecCounter before RTC_StartTimer, which is the wrong order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 14:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1801950#M9506</guid>
      <dc:creator>Kenzimatic</dc:creator>
      <dc:date>2024-02-05T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: RTC peripheral enables subsecond timer in wrong order on MIMXRT685S</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1802900#M9509</link>
      <description>&lt;P&gt;Hello, sorry for the late response I did the test and have the same result, so let me open an internal report.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/RTC-peripheral-enables-subsecond-timer-in-wrong-order-on/m-p/1802900#M9509</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-02-06T18:44:58Z</dc:date>
    </item>
  </channel>
</rss>

