<?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: iMX6UL Wakeup from UART without losing data in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520400#M84279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to have flow control.&lt;/P&gt;&lt;P&gt;Because during the waking up, the clock is very slow at that time.&lt;/P&gt;&lt;P&gt;It is not fast enough to read the data out from fifo. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2016 02:38:58 GMT</pubDate>
    <dc:creator>BiyongSUN</dc:creator>
    <dc:date>2016-06-17T02:38:58Z</dc:date>
    <item>
      <title>iMX6UL Wakeup from UART without losing data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520397#M84276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt; I am using an &lt;STRONG&gt;iMX6UL evk in combination with a µC module.&lt;/STRONG&gt; The&amp;nbsp; µC is connected to the &lt;STRONG&gt;iMX's UART2&lt;/STRONG&gt; (ttymxc1, since &lt;STRONG&gt;I'm using the default dt configuration&lt;/STRONG&gt; provided for the 14x14 evk). The evk is running a &lt;STRONG&gt;Yocto&lt;/STRONG&gt; Linux image with &lt;STRONG&gt;kernel 4.1.15&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;My application requires the iMX6 to be in the lower possible power state for most of the time, so I've configured it to enter &lt;STRONG&gt;DSM mode&lt;/STRONG&gt; (using "&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;echo mem &amp;gt; /sys/power/state&lt;/EM&gt;&lt;/SPAN&gt;") and wake up on interrupts from the UART pins, so that whenever the µC module has any data to transmit, the iMX can wake up and handle the coming messages. Wake up on UART is configured echoing "&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;enabled&lt;/EM&gt;&lt;/SPAN&gt;" into the corresponding sysfs "&lt;SPAN style="font-family: 'courier new', courier;"&gt;wakeup&lt;/SPAN&gt;" entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm currently achieving is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the &lt;STRONG&gt;communication&lt;/STRONG&gt; between the iMX and the µC &lt;STRONG&gt;works correctly when the iMX is NOT in DSM mode&lt;/STRONG&gt;;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;the iMX wakes up correctly&lt;/STRONG&gt; in about 120 ms when some data is transmitted from the µC module, but &lt;STRONG&gt;I'm not seeing any UART message being reported to my application&lt;/STRONG&gt;. To be noted that the message sent from the µC module to the iMX is of few (1 to 10) bytes @ 115200 bps. The µC module never changes its state, so it is expected to have a consistent behavior independently from the iMX power state.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are then the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Should I expect to receive the message&lt;/STRONG&gt; when the system is woken up from UART (so by the message itself being transmitted) or is it normal that at least some byte is being discarded?&lt;/LI&gt;&lt;LI&gt;If I should expect to lose some data with my current configuration, what changes should I perform in order to avoid losing any message? In other words &lt;STRONG&gt;what would be the most (power) efficient way to wake up the iMX6UL from UART without losing any message?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you for your help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Giorgio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 11:11:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520397#M84276</guid>
      <dc:creator>gga</dc:creator>
      <dc:date>2016-06-14T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6UL Wakeup from UART without losing data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520398#M84277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giorgio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first character could be lost as mentioned in sect.53.8.2 UART Operation&lt;/P&gt;&lt;P&gt;in System Stop Mode i.MX6UL Reference Manual &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FIMX6ULRM.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When an asynchronous WAKE (awake) interrupt exits the ARM platform from STOP&lt;/P&gt;&lt;P&gt;mode, make sure that a dummy character is sent first because the first character may not&lt;/P&gt;&lt;P&gt;be received correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 00:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520398#M84277</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-06-15T00:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6UL Wakeup from UART without losing data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520399#M84278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;thank you very much for your reply.&lt;/P&gt;&lt;P&gt;The manual says that I should lose a character, but experimentally I'm noticing a different behavior using the 4.1.15 kernel and the provided yocto image.&lt;/P&gt;&lt;P&gt;I'm testing such behavior setting up the serial port (@155200 bps) and issuing a "&lt;SPAN style="font-family: 'courier new', courier;"&gt;cat /dev/ttymxc1&lt;/SPAN&gt;" command, since the external µC module is sending out ascii chars (i'm testing it sending periodically the "&lt;SPAN style="font-family: 'courier new', courier;"&gt;1234567890abcdefghijklmnopqrstuvwxyz&lt;/SPAN&gt;" string).&lt;/P&gt;&lt;P&gt;If the iMX EVK is in RUN mode everything works as expected, the message is correctly shown in the console.&lt;/P&gt;&lt;P&gt;If i put the iMX in STOP mode (issuing the "&lt;SPAN style="font-family: 'courier new', courier;"&gt;echo mem &amp;gt; /sys/power/state&lt;/SPAN&gt;" command) it wakes up correctly as soon as the µC transmits the message, but the string printed out by the cat command is something like "&lt;SPAN style="font-family: 'courier new', courier;"&gt;tuvwxyz&lt;/SPAN&gt;", so i'm losing much more than a single char.&lt;/P&gt;&lt;P&gt;It looks like some data is lost before the system is woken up. Could it be a driver or configuration related issue?&lt;/P&gt;&lt;P&gt;How can I further investigate the issue? Do you have any debugging hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Giorgio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 16:09:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520399#M84278</guid>
      <dc:creator>gga</dc:creator>
      <dc:date>2016-06-16T16:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6UL Wakeup from UART without losing data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520400#M84279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to have flow control.&lt;/P&gt;&lt;P&gt;Because during the waking up, the clock is very slow at that time.&lt;/P&gt;&lt;P&gt;It is not fast enough to read the data out from fifo. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 02:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520400#M84279</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2016-06-17T02:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6UL Wakeup from UART without losing data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520401#M84280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giorgio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you had any progress with this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Evgeny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 19:13:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6UL-Wakeup-from-UART-without-losing-data/m-p/520401#M84280</guid>
      <dc:creator>evgenyerlihman</dc:creator>
      <dc:date>2017-06-01T19:13:33Z</dc:date>
    </item>
  </channel>
</rss>

