<?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>MCUXpresso SDKのトピックRe: LPUART_TransferSendNonBlocking() with framing errors</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773625#M795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be even more complex. To try an eliminate a interrupt firing unexpectedly. I modified the code to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;__disable_irq();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LPUART_WriteBlocking(LPUART0, command_str, i);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;__enable_irq();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where disable disable_irq() &amp;amp; enable_irq() use the assembler command &lt;EM&gt;cpsid&lt;/EM&gt; and &lt;EM&gt;cpsie&lt;/EM&gt; respectively. And there still appears to be unexpected pauses when transmitting over the lpuart i.e.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34755i9077713ECAF0462F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 14:04:01 GMT</pubDate>
    <dc:creator>beng_</dc:creator>
    <dc:date>2018-02-01T14:04:01Z</dc:date>
    <item>
      <title>LPUART_TransferSendNonBlocking() with framing errors</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773624#M794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using LPUART_TransferSendNonBlocking() to send a string (in the example below it's a 4 character string K2\r\n (where the last to are carriage return &amp;amp; line feed) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I look the output (top line) there appear to be random pauses in the middle of the string causing framing errors. In the example below these delay are only of the orer of ms but on soem occasions it's been over a second.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34620iD0DB1360008EC263/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:41:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773624#M794</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2018-01-31T17:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_TransferSendNonBlocking() with framing errors</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773625#M795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be even more complex. To try an eliminate a interrupt firing unexpectedly. I modified the code to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;__disable_irq();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LPUART_WriteBlocking(LPUART0, command_str, i);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;__enable_irq();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where disable disable_irq() &amp;amp; enable_irq() use the assembler command &lt;EM&gt;cpsid&lt;/EM&gt; and &lt;EM&gt;cpsie&lt;/EM&gt; respectively. And there still appears to be unexpected pauses when transmitting over the lpuart i.e.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34755i9077713ECAF0462F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 14:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773625#M795</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2018-02-01T14:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_TransferSendNonBlocking() with framing errors</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773626#M796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I'm running the code usign the debugger (j-Link plus) in Kinetis Design Studio, the LPUART behaves as I'd expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I, program in the .srec manually and run it normally (i.e. in the real world) it exhibits the above behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 11:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773626#M796</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2018-02-02T11:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_TransferSendNonBlocking() with framing errors</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773627#M797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please also tell us what the chip you are using now? And tell me the SDK version, then I will check it on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Wed, 07 Feb 2018 01:55:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPUART-TransferSendNonBlocking-with-framing-errors/m-p/773627#M797</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-02-07T01:55:25Z</dc:date>
    </item>
  </channel>
</rss>

