<?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: UART not geting wakeup in STOP mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444155#M26174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajith&lt;BR /&gt;Please check that you have enable the ICS to operate in stop mode&lt;/P&gt;&lt;P&gt;ICS_C1 |= ICS_C1_IRCLKEN_MASK;&lt;/P&gt;&lt;P&gt;ICS_C1 |= ICS_C1_IREFSTEN_MASK;&lt;/P&gt;&lt;P&gt;I have a sample code that use the uart1 and go to sleep and wake up using the uart 1, this sample code does not use LIN break detection, but the way to wake up is the same&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note the code is for CodeWarrior 10.6&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Vicente&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, 22 May 2015 20:43:06 GMT</pubDate>
    <dc:creator>vicentegomez</dc:creator>
    <dc:date>2015-05-22T20:43:06Z</dc:date>
    <item>
      <title>UART not geting wakeup in STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444152#M26171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using FRDMKE06z Board .&lt;/P&gt;&lt;P&gt;In code I am testing the stop mode by calling stop() api and i want to wake up controller using uart wake up.&lt;/P&gt;&lt;P&gt;I am using CANalyser and sending LIN wakeup signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i am connecting the debugger I am able to wake up the controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am disconnecting the debugger it seems the&amp;nbsp; wakeup is not causing controller to wake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the code as stated in 33.4.6.2 Stop mode operation of MKE06P80M48SF0RM.pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide some sample code for the same or solution to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajith Arikkath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 11:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444152#M26171</guid>
      <dc:creator>ajitharikkath</dc:creator>
      <dc:date>2015-05-19T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: UART not geting wakeup in STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444153#M26172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Ajith&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Are you using processor expert? Can you share your sample code. Maybe processor expert's setting you need to check. If you share your code along with the IDE name you are using, People will recreate that issue and you will get your solution soon. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Amit&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 03:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444153#M26172</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2015-05-20T03:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: UART not geting wakeup in STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444154#M26173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the code which is implemented before calling stop(); functionality.&lt;/P&gt;&lt;P&gt;And I am expecting interrupt and waiting in ISR.&lt;/P&gt;&lt;P&gt;Please check this and let me know anything else I have to initialize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void lin_lld_uart_sleep(uart_channel_name  channel, l_ifc_handle iii)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;  lin_node *lnode_p;&lt;/P&gt;&lt;P&gt;  lnode_p = (lin_node *)&amp;amp;lin_node_descrs[channel];&lt;/P&gt;&lt;P&gt;  tUART* _pUART;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;U&gt;pUART = (tUART*)(lnode&lt;/U&gt;p-&amp;gt;pUART);&lt;/P&gt;&lt;P&gt;  lnode_p-&amp;gt;state=SLEEP_MODE;&lt;/P&gt;&lt;P&gt;/* checks before going for Controller Stop mode*/&lt;/P&gt;&lt;P&gt;   while ((!(_pUART-&amp;gt;uartsr1.byte &amp;amp; UART_S1_TDRE_MASK))||&lt;/P&gt;&lt;P&gt;          (!(_pUART-&amp;gt;uartsr1.byte &amp;amp; UART_S1_TC_MASK))||&lt;/P&gt;&lt;P&gt;           ((_pUART-&amp;gt;uartsr2.byte &amp;amp; UART_S2_RAF_MASK))) ;&lt;/P&gt;&lt;P&gt;   /* Clear flag */&lt;/P&gt;&lt;P&gt;    _pUART-&amp;gt;uartsr2.bit.rxedgif = 1;&lt;/P&gt;&lt;P&gt;  &lt;U&gt;pUART-&amp;gt;uartbdh.byte |= UARTBDH&lt;/U&gt;RXEDGIE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  /* clear LIN Break Detection flag       */&lt;/P&gt;&lt;P&gt;  &lt;U&gt;pUART-&amp;gt;uartsr2.byte |= (UARTSR2&lt;/U&gt;LBKDIF_MASK | UARTSR2_BRK13_MASK | UARTSR2_LBKDE_MASK);&lt;/P&gt;&lt;P&gt;  &lt;U&gt;pUART-&amp;gt;uartcr2.byte |= UARTCR2&lt;/U&gt;RWU_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lin_wakeupflag = 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 05:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444154#M26173</guid>
      <dc:creator>ajitharikkath</dc:creator>
      <dc:date>2015-05-20T05:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: UART not geting wakeup in STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444155#M26174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajith&lt;BR /&gt;Please check that you have enable the ICS to operate in stop mode&lt;/P&gt;&lt;P&gt;ICS_C1 |= ICS_C1_IRCLKEN_MASK;&lt;/P&gt;&lt;P&gt;ICS_C1 |= ICS_C1_IREFSTEN_MASK;&lt;/P&gt;&lt;P&gt;I have a sample code that use the uart1 and go to sleep and wake up using the uart 1, this sample code does not use LIN break detection, but the way to wake up is the same&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note the code is for CodeWarrior 10.6&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Vicente&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, 22 May 2015 20:43:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444155#M26174</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2015-05-22T20:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: UART not geting wakeup in STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444156#M26175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicente,&lt;/P&gt;&lt;P&gt;Thanks for the solution. And it is working.&lt;/P&gt;&lt;P&gt;Here I have one more query.&lt;/P&gt;&lt;P&gt;When i wake up LIN after some 10 seconds its working. But when I do immediately uart is not getting interrupt.&lt;/P&gt;&lt;P&gt;Can you please provide any solutions for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Ajith Arikkath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 14:08:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444156#M26175</guid>
      <dc:creator>ajitharikkath</dc:creator>
      <dc:date>2015-06-05T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: UART not geting wakeup in STOP mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444157#M26176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajith&lt;/P&gt;&lt;P&gt;Have you check the UART interrupt flag, maybe is set (1) and this is causing that the the MCU did not enter to the interrupt again.&lt;/P&gt;&lt;P&gt;Also check all the UART configuration, depending how you are wake up maybe you need to enable the UART again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vicente&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 15:52:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-not-geting-wakeup-in-STOP-mode/m-p/444157#M26176</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2015-07-03T15:52:40Z</dc:date>
    </item>
  </channel>
</rss>

