<?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 Reset when trying to start RTC oscillator in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-when-trying-to-start-RTC-oscillator/m-p/434562#M25269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a K12 micro and want to use an external crystal on EXTAL32/XTAL32 as the source for the FLL and RTC.&amp;nbsp; When I try to start the RTC oscillator using the following code I get a reboot at line 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. SIM_SCGC6 = SIM_SCGC6_RTC_MASK;&lt;/P&gt;&lt;P&gt;2. RTC_CR&amp;nbsp; = RTC_CR_SWR_MASK + RTC_CR_SC4P_MASK + RTC_CR_SC8P_MASK + RTC_CR_CLKO_MASK;&lt;/P&gt;&lt;P&gt;3. RTC_CR&amp;nbsp; &amp;amp;= ~RTC_CR_SWR_MASK;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; RTC_CR |= RTC_CR_OSCE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read on this forum that VBAT left floating can cause this.&amp;nbsp; This is how my design is implemented.&amp;nbsp; Could there be another issue causing the reset?&amp;nbsp; If this is the cause, is there a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jun 2015 00:03:59 GMT</pubDate>
    <dc:creator>abbian</dc:creator>
    <dc:date>2015-06-06T00:03:59Z</dc:date>
    <item>
      <title>Reset when trying to start RTC oscillator</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-when-trying-to-start-RTC-oscillator/m-p/434562#M25269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a K12 micro and want to use an external crystal on EXTAL32/XTAL32 as the source for the FLL and RTC.&amp;nbsp; When I try to start the RTC oscillator using the following code I get a reboot at line 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. SIM_SCGC6 = SIM_SCGC6_RTC_MASK;&lt;/P&gt;&lt;P&gt;2. RTC_CR&amp;nbsp; = RTC_CR_SWR_MASK + RTC_CR_SC4P_MASK + RTC_CR_SC8P_MASK + RTC_CR_CLKO_MASK;&lt;/P&gt;&lt;P&gt;3. RTC_CR&amp;nbsp; &amp;amp;= ~RTC_CR_SWR_MASK;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; RTC_CR |= RTC_CR_OSCE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read on this forum that VBAT left floating can cause this.&amp;nbsp; This is how my design is implemented.&amp;nbsp; Could there be another issue causing the reset?&amp;nbsp; If this is the cause, is there a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 00:03:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-when-trying-to-start-RTC-oscillator/m-p/434562#M25269</guid>
      <dc:creator>abbian</dc:creator>
      <dc:date>2015-06-06T00:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reset when trying to start RTC oscillator</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-when-trying-to-start-RTC-oscillator/m-p/434563#M25270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan Rhodes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RTC is powered from VBAT pin, which is a different power domain from the MCU VDD power. It is normal that there is a hardfault when accessing the RTC registers if there is no VBAT power. There is no workaround, this is how it is designed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not interested in the RTC working during power outage, you can simply hang the VBAT pin to VDD.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 00:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-when-trying-to-start-RTC-oscillator/m-p/434563#M25270</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-06-06T00:26:45Z</dc:date>
    </item>
  </channel>
</rss>

