<?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 Re: RCM_GetPreviousResetSources(RCM) returns incorrect value in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654716#M7086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gaurav,&lt;/P&gt;&lt;P&gt;I have checked the pin assignmet, for the MKL03Z32&amp;nbsp; with 16 pin package, the PTB5 is multiplexed with NMI pin, in default state after Reset, the PTB5 pin is in NMI function, you have to connect a pull-up resistor for the PIN so that the NMI pin is high after reset. If it is low after reset, the chip will enter NMI interrupt after reset.&lt;/P&gt;&lt;P&gt;For your current board, can you pull-up the PTB5 pin to high even if you use it as GPIO output?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 09:50:26 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2017-07-28T09:50:26Z</dc:date>
    <item>
      <title>RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654710#M7080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a MKL03Z32 and I am using VLLS0 and VLLS3 states.&lt;/P&gt;&lt;P&gt;When I recover from these states to RUN state because of an LLWU interrupt source, the&amp;nbsp;RCM_GetPreviousResetSources(RCM) returns an even number. It should be odd (with LSb =&amp;nbsp;1).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is called before the function&amp;nbsp;BOARD_InitPins(); in the main(). My code is based on the example "power mode switch"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on what could be wrong?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 12:17:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654710#M7080</guid>
      <dc:creator>gauravbanyal</dc:creator>
      <dc:date>2017-02-21T12:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654711#M7081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the MCU is in VLLS0 or VLLS3 state and I start flashing the MCU with the J-link probe, I always receive an odd value for that event. For the LLWU interrupt event, I always get an even value.&amp;nbsp;I have seen values 0x20 and 0x400.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 14:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654711#M7081</guid>
      <dc:creator>gauravbanyal</dc:creator>
      <dc:date>2017-02-21T14:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654712#M7082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gaurav,&lt;/P&gt;&lt;P&gt;As you know that the RCM_GetPreviousResetSources(RCM) function returns the RCM_SRS1/RCM_SRS0 registers value, if the value is 0x20, it means that watchdog resets the chip.&amp;nbsp; If the value is 0x40, it means that Reset pin&amp;nbsp; resets the chip.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use LLWU interrupt source, have you set the LLWU module so that the external low leakage wakeup pin can reset the chip? which wake-up pin are you using?&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static inline uint32_t RCM_GetPreviousResetSources(RCM_Type *base)&lt;BR /&gt;{&lt;BR /&gt;#if (defined(FSL_FEATURE_RCM_REG_WIDTH) &amp;amp;&amp;amp; (FSL_FEATURE_RCM_REG_WIDTH == 32))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return base-&amp;gt;SRS;&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (uint32_t)((uint32_t)base-&amp;gt;SRS0 | ((uint32_t)base-&amp;gt;SRS1 &amp;lt;&amp;lt; 8U));&lt;BR /&gt;#endif /* (FSL_FEATURE_RCM_REG_WIDTH == 32) */&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 03:21:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654712#M7082</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-02-27T03:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654713#M7083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this issue now again. Previously I had this issue on the old generation of the HW of the product we are trying to build. Now I have a new build with the same processor MKL03Z32 in the 16-pin package.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The culprit is port pin PTB5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the earlier version of the hardware, this pin was configured as an analog input for the ADC. In the new&amp;nbsp;version of the hardware (which I am using now), its a GPIO output pin. In either case, the problem is solved when I comment out the code doing the mux setting for this pin in BOARD_InitPins().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue is, I need to use this pin as a GPIO and my system cannot work without it. The Erata does not give me any information on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP ON PRIORITY!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654713#M7083</guid>
      <dc:creator>gauravbanyal</dc:creator>
      <dc:date>2017-07-27T15:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654714#M7084</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;Please check below threads about how to disable NMI function of KL03 PTB5:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/430438"&gt;Bare-metal on KL03:&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/626738?commentID=626738#comment-626738" title="https://community.nxp.com/message/626738?commentID=626738#comment-626738"&gt;https://community.nxp.com/message/626738?commentID=626738#comment-626738&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&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>Fri, 28 Jul 2017 06:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654714#M7084</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-07-28T06:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654715#M7085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ma Hui,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this. It was quite a long read in the community page you shared, to understand what needs to be done. But glad I did understand it in the end.&lt;/P&gt;&lt;P&gt;In "startup_MKL03Z4.s" I changed the line&lt;/P&gt;&lt;P&gt;FOPT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EQU &amp;nbsp; &amp;nbsp; 0x3D&lt;/P&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;P&gt;FOPT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EQU &amp;nbsp; &amp;nbsp; 0x39&lt;/P&gt;&lt;P&gt;After this, everything was fine :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR\Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654715#M7085</guid>
      <dc:creator>gauravbanyal</dc:creator>
      <dc:date>2017-07-28T09:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654716#M7086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gaurav,&lt;/P&gt;&lt;P&gt;I have checked the pin assignmet, for the MKL03Z32&amp;nbsp; with 16 pin package, the PTB5 is multiplexed with NMI pin, in default state after Reset, the PTB5 pin is in NMI function, you have to connect a pull-up resistor for the PIN so that the NMI pin is high after reset. If it is low after reset, the chip will enter NMI interrupt after reset.&lt;/P&gt;&lt;P&gt;For your current board, can you pull-up the PTB5 pin to high even if you use it as GPIO output?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654716#M7086</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-07-28T09:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654717#M7087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun Rong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment, the boards are built without a pull-up. I am using it as a GPIO output.&lt;/P&gt;&lt;P&gt;Is the change that I have done above, risky? If not, I will prefer to not change the hardware at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:55:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654717#M7087</guid>
      <dc:creator>gauravbanyal</dc:creator>
      <dc:date>2017-07-28T09:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: RCM_GetPreviousResetSources(RCM) returns incorrect value</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654718#M7088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gaurav,&lt;/P&gt;&lt;P&gt;can the Kl03 start up successfully? if it can not(KL03 enters NMI interrupt after Reset), you have to connect a pull-up resisto by float wire.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 09:17:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/RCM-GetPreviousResetSources-RCM-returns-incorrect-value/m-p/654718#M7088</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-07-31T09:17:09Z</dc:date>
    </item>
  </channel>
</rss>

