<?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>LPC Microcontrollersのトピック LCP 1549 UART will not receive properly.</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP-1549-UART-will-not-receive-properly/m-p/779406#M31344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a LCP 1549 and UART based off the uart_polling example, but it will not receive properly. I can send and can confirm data is sent back to me but an interrupt is not triggering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;code&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;static void getLineUART(unsigned char *receive_buffer, uint32_t length)&lt;BR /&gt;{&lt;BR /&gt; UART_PARAM_T param;&lt;/P&gt;&lt;P&gt;param.buffer = (uint8_t *) receive_buffer;&lt;BR /&gt; param.size = length;&lt;/P&gt;&lt;P&gt;param.transfer_mode = RX_MODE_BUF_FULL ;&lt;BR /&gt; param.driver_mode = DRIVER_MODE_POLLING;&lt;/P&gt;&lt;P&gt;if (LPC_UARTD_API-&amp;gt;uart_get_line(uartHandle, &amp;amp;param)) {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; it waits here forever&lt;BR /&gt; errorUART();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;/code&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying the other transfer modes and sending /r/n or /0 had no effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 20:36:33 GMT</pubDate>
    <dc:creator>markduffett</dc:creator>
    <dc:date>2018-02-01T20:36:33Z</dc:date>
    <item>
      <title>LCP 1549 UART will not receive properly.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP-1549-UART-will-not-receive-properly/m-p/779406#M31344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a LCP 1549 and UART based off the uart_polling example, but it will not receive properly. I can send and can confirm data is sent back to me but an interrupt is not triggering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;code&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;static void getLineUART(unsigned char *receive_buffer, uint32_t length)&lt;BR /&gt;{&lt;BR /&gt; UART_PARAM_T param;&lt;/P&gt;&lt;P&gt;param.buffer = (uint8_t *) receive_buffer;&lt;BR /&gt; param.size = length;&lt;/P&gt;&lt;P&gt;param.transfer_mode = RX_MODE_BUF_FULL ;&lt;BR /&gt; param.driver_mode = DRIVER_MODE_POLLING;&lt;/P&gt;&lt;P&gt;if (LPC_UARTD_API-&amp;gt;uart_get_line(uartHandle, &amp;amp;param)) {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; it waits here forever&lt;BR /&gt; errorUART();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;/code&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying the other transfer modes and sending /r/n or /0 had no effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 20:36:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP-1549-UART-will-not-receive-properly/m-p/779406#M31344</guid>
      <dc:creator>markduffett</dc:creator>
      <dc:date>2018-02-01T20:36:33Z</dc:date>
    </item>
    <item>
      <title>Re:  LCP 1549 UART will not receive properly.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LCP-1549-UART-will-not-receive-properly/m-p/779407#M31345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark Duffett,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It seems you are using the lpcopen code for LP1549, which is downloaded from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc15xx:LPCOPEN-SOFTWARE-FOR-LPC15XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc15xx:LPCOPEN-SOFTWARE-FOR-LPC15XX"&gt;LPCOpen Software for LPC15XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I also test the uart_polling_example, if you want to send back the data after you input each byte, please do a modification:&lt;/P&gt;&lt;P&gt;#define RECV_BUFF_SIZE 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; The orginal definition is 32, so the data just will echo back after it receives 32 Bytes, but if you modify the RECV_BUFF_SIZE to 1, then you will get each byte:&lt;/P&gt;&lt;P&gt;This is my test result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5385iC726A6195FB51B5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please test the polling example again.&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>Sun, 11 Feb 2018 07:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LCP-1549-UART-will-not-receive-properly/m-p/779407#M31345</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-02-11T07:44:50Z</dc:date>
    </item>
  </channel>
</rss>

