<?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 rtc resets at powerup in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/rtc-resets-at-powerup/m-p/328622#M2492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our project has an MK22FX512VLH12. Trying to use the RTC. Every time the device is powered up the clock starts and runs from the time configured in the processor expert property panel. &lt;/P&gt;&lt;P&gt;How can we get it to not reset to this specific time upon power up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 20:06:39 GMT</pubDate>
    <dc:creator>randenewberry</dc:creator>
    <dc:date>2015-03-18T20:06:39Z</dc:date>
    <item>
      <title>rtc resets at powerup</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/rtc-resets-at-powerup/m-p/328622#M2492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our project has an MK22FX512VLH12. Trying to use the RTC. Every time the device is powered up the clock starts and runs from the time configured in the processor expert property panel. &lt;/P&gt;&lt;P&gt;How can we get it to not reset to this specific time upon power up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 20:06:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/rtc-resets-at-powerup/m-p/328622#M2492</guid>
      <dc:creator>randenewberry</dc:creator>
      <dc:date>2015-03-18T20:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: rtc resets at powerup</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/rtc-resets-at-powerup/m-p/328623#M2493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I suppose you are using RTC_LDD component. This component provide selection of initialization mode. There is &lt;EM&gt;Initialization//Autoinitialization/Auti init. mode&lt;/EM&gt; property that must be set to Soft init. This settings provides initialization that does not set date and time into RTC registers, see the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RTC_LDD_soft_init.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41969iACE31F5B4CD26F3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="RTC_LDD_soft_init.png" alt="RTC_LDD_soft_init.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't use the autoinitialization and you are calling the RTC1_Init in your application code you must use the same value of the SoftInit parameter (TRUE). Otherwise all date and time registers are set to values that are defined in the component properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also the description of the Init method:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Initializes the device. There are two modes of initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;1) RTC device is NOT battery backed up. (SoftInit = FALSE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;All registers (interrupts, counters, clock routing …) that influence RTC behavior are initialized. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Note: This initialization mode doesn't preserve time and date settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;2) RTC device IS battery backed up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;(SoftInit = TRUE). Only registers that are not backed up are initialized (Interrupt priority …). RTC device is running, time and date a preserved, RTC interrupts (events) are preserved too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Allocates memory for the device data structure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;This method can be called only once. Before the second call of Init() the Deinit() must be called first.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;LDD_TDeviceData * RTC1_Init(LDD_TUserData *UserDataPtr, bool SoftInit);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt; -Return value: Pointer to the dynamically allocated private structure or NULL if there was an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt; -1. parameter: Pointer to the user or RTOS specific data. This pointer will be passed as an event or callback parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt; -2. parameter: If set to "true" only registers that are not battery backup are initialized (E.g. Interrupt priority in interrupt controller … )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;If set to "false" all registers are initialized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note, that in case of the SoftInit=TRUE you must have a RTC battery backup on your target board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 12:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/rtc-resets-at-powerup/m-p/328623#M2493</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-03-26T12:37:52Z</dc:date>
    </item>
  </channel>
</rss>

