<?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 i.MX RT Toolbox Real Time Clock support in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/i-MX-RT-Toolbox-Real-Time-Clock-support/m-p/1278932#M6069</link>
    <description>&lt;P&gt;Is there a way to use (in-built) RTC functionality on i.MX RT1064 without writing custom blocks ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;</description>
    <pubDate>Wed, 19 May 2021 10:43:33 GMT</pubDate>
    <dc:creator>Maciek</dc:creator>
    <dc:date>2021-05-19T10:43:33Z</dc:date>
    <item>
      <title>i.MX RT Toolbox Real Time Clock support</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/i-MX-RT-Toolbox-Real-Time-Clock-support/m-p/1278932#M6069</link>
      <description>&lt;P&gt;Is there a way to use (in-built) RTC functionality on i.MX RT1064 without writing custom blocks ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:43:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/i-MX-RT-Toolbox-Real-Time-Clock-support/m-p/1278932#M6069</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2021-05-19T10:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX RT Toolbox Real Time Clock support</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/i-MX-RT-Toolbox-Real-Time-Clock-support/m-p/1278976#M6071</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/12402"&gt;@Maciek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can use MCUX Configuration Tool for the initialization part:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxa11767_0-1621425215089.png" style="width: 447px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145049i831BDCCF1848C808/image-dimensions/447x306?v=v2" width="447" height="306" role="button" title="nxa11767_0-1621425215089.png" alt="nxa11767_0-1621425215089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The SNVS peripheral will allow configuration of the RTC. (next to your model you should have a file with .mex extension that is the MCUX Configuration File with the platform initialization).&lt;/P&gt;
&lt;P&gt;The SDK API for this can be found in the next files: &lt;STRONG&gt;fsl_svns_hp.c/fsl_svns_lp.c&lt;/STRONG&gt;&amp;nbsp;and&lt;STRONG&gt; fsl_svns_hp.h/fsl_svns_lp.h.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You'll need to use custom code to instruct the simulink make process to add to source path the fsl_svns_hp.c/fsl_svns_lp.c file. And also for other functionalities:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- IRQ handler interrupt implementation&lt;/P&gt;
&lt;P&gt;- other RTC functionalities that you need to be called during step execution. You can use here the SDK API function calls from the above mentioned files.&lt;/P&gt;
&lt;P&gt;e.g&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxa11767_1-1621426914291.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145050i5B6388A21A4DF3CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxa11767_1-1621426914291.png" alt="nxa11767_1-1621426914291.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Alexandra&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 12:23:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/i-MX-RT-Toolbox-Real-Time-Clock-support/m-p/1278976#M6071</guid>
      <dc:creator>nxa11767</dc:creator>
      <dc:date>2021-05-19T12:23:56Z</dc:date>
    </item>
  </channel>
</rss>

