<?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 How can I use UART0 of LPC4078? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954710#M37893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do write a simple code to test UART0 of LPC4078 on our original board, but it does not work...&lt;/P&gt;&lt;P&gt;Codes for initialize UART0 are shown below:&lt;BR /&gt;void Uart0Init(void)&lt;BR /&gt;{&lt;BR /&gt; UART_CFG_Type UARTConfigStruct;&lt;BR /&gt; UART_FIFO_CFG_Type UARTFIFOConfigStruct;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_ConfigStructInit(&amp;amp;UARTConfigStruct);&lt;/P&gt;&lt;P&gt;UARTConfigStruct.Baud_rate = 115200;&lt;BR /&gt; UART_Init(UART_0, &amp;amp;UARTConfigStruct);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_FIFOConfigStructInit(&amp;amp;UARTFIFOConfigStruct);&lt;BR /&gt; UART_FIFOConfig(UART_0, &amp;amp;UARTFIFOConfigStruct);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_TxCmd(UART_0, ENABLE);&lt;/P&gt;&lt;P&gt;UART_IntConfig(UART_0, UART_INTCFG_RBR, ENABLE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NVIC_SetPriority(UART0_IRQn, ((0x02&amp;lt;&amp;lt;3)|0x01));&lt;/P&gt;&lt;P&gt;NVIC_EnableIRQ(UART0_IRQn);&lt;BR /&gt;}&lt;BR /&gt;And the port 0.2 and 0.3 are set by codes below:&lt;BR /&gt;PINSEL_ConfigPin(0, 2, 1);&lt;BR /&gt;PINSEL_ConfigPin(0, 3, 1);&lt;/P&gt;&lt;P&gt;Based on the initialize code shown above, I tried to send some characters via ring buffer, but any characters sent to terminal.&lt;BR /&gt;I added "UART_SendByte(UART_0, 'A'); to simplify the debug work, but the result was same.&lt;/P&gt;&lt;P&gt;I believe "UART_SendByte" is very simple command and should be work, so there must be an error in my setup/initialization code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The connection diagram of my debug environment are&lt;BR /&gt; PC USB &lt;BR /&gt;MCUXpresso ----- LPC-Link2 --------------- 4078board&lt;BR /&gt; Serial |&lt;BR /&gt;Tera Term ----- USB-Serial Converter ---------|&lt;/P&gt;&lt;P&gt;I did run the sample code "periph_uart_rb" and it was work, so I believe the hardware itself is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Sep 2019 05:25:09 GMT</pubDate>
    <dc:creator>at-nakano</dc:creator>
    <dc:date>2019-09-21T05:25:09Z</dc:date>
    <item>
      <title>How can I use UART0 of LPC4078?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954710#M37893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do write a simple code to test UART0 of LPC4078 on our original board, but it does not work...&lt;/P&gt;&lt;P&gt;Codes for initialize UART0 are shown below:&lt;BR /&gt;void Uart0Init(void)&lt;BR /&gt;{&lt;BR /&gt; UART_CFG_Type UARTConfigStruct;&lt;BR /&gt; UART_FIFO_CFG_Type UARTFIFOConfigStruct;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_ConfigStructInit(&amp;amp;UARTConfigStruct);&lt;/P&gt;&lt;P&gt;UARTConfigStruct.Baud_rate = 115200;&lt;BR /&gt; UART_Init(UART_0, &amp;amp;UARTConfigStruct);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_FIFOConfigStructInit(&amp;amp;UARTFIFOConfigStruct);&lt;BR /&gt; UART_FIFOConfig(UART_0, &amp;amp;UARTFIFOConfigStruct);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_TxCmd(UART_0, ENABLE);&lt;/P&gt;&lt;P&gt;UART_IntConfig(UART_0, UART_INTCFG_RBR, ENABLE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NVIC_SetPriority(UART0_IRQn, ((0x02&amp;lt;&amp;lt;3)|0x01));&lt;/P&gt;&lt;P&gt;NVIC_EnableIRQ(UART0_IRQn);&lt;BR /&gt;}&lt;BR /&gt;And the port 0.2 and 0.3 are set by codes below:&lt;BR /&gt;PINSEL_ConfigPin(0, 2, 1);&lt;BR /&gt;PINSEL_ConfigPin(0, 3, 1);&lt;/P&gt;&lt;P&gt;Based on the initialize code shown above, I tried to send some characters via ring buffer, but any characters sent to terminal.&lt;BR /&gt;I added "UART_SendByte(UART_0, 'A'); to simplify the debug work, but the result was same.&lt;/P&gt;&lt;P&gt;I believe "UART_SendByte" is very simple command and should be work, so there must be an error in my setup/initialization code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The connection diagram of my debug environment are&lt;BR /&gt; PC USB &lt;BR /&gt;MCUXpresso ----- LPC-Link2 --------------- 4078board&lt;BR /&gt; Serial |&lt;BR /&gt;Tera Term ----- USB-Serial Converter ---------|&lt;/P&gt;&lt;P&gt;I did run the sample code "periph_uart_rb" and it was work, so I believe the hardware itself is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2019 05:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954710#M37893</guid>
      <dc:creator>at-nakano</dc:creator>
      <dc:date>2019-09-21T05:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use UART0 of LPC4078?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954711#M37894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="345612" data-username="at-nakano@kaijo.co.jp" href="https://community.nxp.com/people/at-nakano@kaijo.co.jp"&gt;Atsuki Nakano&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please check whether enable the UART clock and GPIO (UART TX/RX) clock.&lt;/P&gt;&lt;P&gt;You can refer to the UART demo under LPCopen for LPC4088:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc40xx:LPCOPEN-SOFTWARE-FOR-LPC40XX" title="https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc40xx:LPCOPEN-SOFTWARE-FOR-LPC40XX"&gt;LPCOpen Software for LPC40XX | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 08:35:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954711#M37894</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-09-23T08:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use UART0 of LPC4078?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954712#M37895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean, calling "Chip_Clock_EnablePeriphClock" from "Chip_UART_Init" in "uart_17xx_40xx.c"?&lt;BR /&gt;The "Chip_Clock_EnablePeriphClock" in "clock_17xx_40xx.c" and set the bit 3 of "LPC_SYSCTL-&amp;gt;PCONP".&lt;BR /&gt;If so, "UART_Init" in "lpc_uart.c" calls "CLKPWR_ConfigPPWR" in "lpc_clkpwr.c" and certainly set the bit 3 of "LPC_SC-&amp;gt;PCONP".&lt;BR /&gt;Finally, the value of "LPC_SC-&amp;gt;PCONP" is "0x042887de", and&amp;nbsp; the address of "LPC_SYSCTL-&amp;gt;PCONP" and "LPC_SC-&amp;gt;PCONP" is same, just "0x400fc000", so I think clock for UART is enabled.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Do you have any other idea or am I looking at the wrong place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2019 08:00:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954712#M37895</guid>
      <dc:creator>at-nakano</dc:creator>
      <dc:date>2019-09-24T08:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use UART0 of LPC4078?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954713#M37896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Atsuki Nakano,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;The easy way is compare your code with example code.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Or&amp;nbsp; you can directly config based on the example, thus can save your time to development.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;BR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Alice&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="color: #51626f; border: 0px; font-size: 14px; margin: 5px 0px; padding: 0px 30px;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #51626f; border: 0px; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;FORM action="javascript:void(0);" class="" method="post" name="jive-comment-post-form" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="mce-tinymce mce-panel mce-container" style="color: inherit; background: #ffffff; border: 1px none; font-weight: normal; text-decoration: none; font-size: 14px;"&gt;&lt;DIV class="mce-container-body mce-stack-layout" style="color: inherit; background: transparent; border: none; font-weight: normal; text-decoration: none; font-size: 14px;"&gt;&lt;DIV class="mce-panel mce-stack-layout-item mce-container mce-toolbar-grp mce-first" style="color: inherit; background: #f7f7f7 !important; border-top: 0px solid #ffffff; border-bottom: 2px solid #ffffff !important; border-left: 0px solid #ffffff; border-right: 0px solid #ffffff; font-weight: normal; text-decoration: none; font-size: 14px; padding: 10px 47px;"&gt;&lt;DIV class="mce-container-body mce-stack-layout" style="color: inherit; background: transparent; border: none; font-weight: normal; text-decoration: none; font-size: 14px;"&gt;&lt;DIV class="mce-stack-layout-item mce-container mce-toolbar mce-first" style="color: inherit; background: transparent; border: 0px; font-weight: normal; text-decoration: none; font-size: 14px;"&gt;&lt;DIV class="mce-container-body mce-flow-layout" style="color: inherit; background: transparent; border: 0px; font-weight: normal; text-decoration: none; font-size: 14px;"&gt;&lt;DIV class="mce-container mce-btn-group mce-flow-layout-item mce-first" style="color: inherit; background: transparent; border: 0px; font-weight: normal; text-decoration: none; font-size: 14px; margin: 2px 0px 0px 2px;"&gt;&lt;DIV style="color: inherit; background: transparent; border: 0px; font-weight: normal; text-decoration: none; font-size: 14px;"&gt;&lt;DIV class="mce-widget mce-btn mce-first" style="color: inherit; background: #f7f7f7; border: 1px solid transparent; font-weight: normal; text-decoration: none; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/FORM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 09:00:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954713#M37896</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-09-25T09:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use UART0 of LPC4078?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954714#M37897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;I'll look into the differences between sample code and my one again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atsuki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 00:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-use-UART0-of-LPC4078/m-p/954714#M37897</guid>
      <dc:creator>at-nakano</dc:creator>
      <dc:date>2019-09-27T00:18:52Z</dc:date>
    </item>
  </channel>
</rss>

