<?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: LPC18xx UART0 cannot work in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/1778551#M55030</link>
    <description>&lt;P&gt;UART on LPC18S37&amp;nbsp; always responding the below data as I am sending 0xAA can u please help me with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 08:36:46 GMT</pubDate>
    <dc:creator>pranavkolte</dc:creator>
    <dc:date>2023-12-21T08:36:46Z</dc:date>
    <item>
      <title>LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636716#M25157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using LPC1837 processor in my project and try to use UART0 to debug . Unfortunatelly it cannot work. In my project, I use uart0 to send messages to my computer visa usb-uart cable and initialize the uart register as below:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;LPC_CCU1-&amp;gt;CLK_M3_GPIO_CFG |= 0x01;&lt;BR /&gt; while (!(LPC_CCU1-&amp;gt;CLK_M3_GPIO_STAT &amp;amp; 0x01));&lt;/P&gt;&lt;P&gt;/* Enable USART0 peripheral clock */&lt;BR /&gt; LPC_CCU2-&amp;gt;CLK_APB0_USART0_CFG |= 0x01;&lt;BR /&gt; while (!(LPC_CCU2-&amp;gt;CLK_APB0_USART0_STAT &amp;amp; 0x01));&lt;/P&gt;&lt;P&gt;/* Enable USART0 register interface clock */&lt;BR /&gt; LPC_CCU1-&amp;gt;CLK_M3_USART0_CFG |= 0x01;&lt;BR /&gt; while (!(LPC_CCU1-&amp;gt;CLK_M3_USART0_STAT &amp;amp; 0x01));&lt;/P&gt;&lt;P&gt;/* Init GPIO pins */&lt;BR /&gt; LPC_SCU-&amp;gt;SFSP2_0 = (1 &amp;lt;&amp;lt; 6) | /* Input buffer enabled */&lt;BR /&gt; (1 &amp;lt;&amp;lt; 4) | /* Pull-up disabled */&lt;BR /&gt; (1 &amp;lt;&amp;lt; 0) ; /* Pin P2_0 used as U0_TXD */&lt;/P&gt;&lt;P&gt;LPC_SCU-&amp;gt;SFSP2_1 = (1 &amp;lt;&amp;lt; 6) | /* Input buffer enabled */&lt;BR /&gt; (1 &amp;lt;&amp;lt; 4) | /* Pull-up disabled */&lt;BR /&gt; (1 &amp;lt;&amp;lt; 0) ; /* Pin P2_1 used as U0_RXD */&lt;/P&gt;&lt;P&gt;/* Init USART0 */&lt;BR /&gt; uart-&amp;gt;USART-&amp;gt;LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */&lt;BR /&gt; uart-&amp;gt;USART-&amp;gt;DLL = 0x06; /* 115200 Baudrate @ 12 MHz IRC */&lt;BR /&gt; uart-&amp;gt;USART-&amp;gt;DLM = 0x00;&lt;BR /&gt; uart-&amp;gt;USART-&amp;gt;FDR = 0xC1;&lt;BR /&gt; uart-&amp;gt;USART-&amp;gt;LCR = 0x03; /* DLAB = 0 */&lt;BR /&gt; /* preemption = 1, sub-priority = 1 */&lt;BR /&gt; NVIC_SetPriority(uart-&amp;gt;USART_IRQn, ((0x01 &amp;lt;&amp;lt; 3) | 0x01));&lt;/P&gt;&lt;P&gt;/* Enable Interrupt for UART channel */&lt;BR /&gt; NVIC_EnableIRQ(uart-&amp;gt;USART_IRQn);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;to send data:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;while (!(uart-&amp;gt;USART-&amp;gt;LSR &amp;amp; 0x20));&lt;BR /&gt; uart-&amp;gt;USART-&amp;gt;THR = c;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;c here stands for data want to be sent.&lt;/P&gt;&lt;P&gt;Platform:Keil Uvision4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outcome:No any messages in the ternimal.&lt;/P&gt;&lt;P&gt;It is really strange that there is not any messages in the ternimal since the function of GPIO has been correctly set. What is wrong with my codes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 08:09:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636716#M25157</guid>
      <dc:creator>yuanbinzhou</dc:creator>
      <dc:date>2017-04-24T08:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636717#M25158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuanbin Zhou,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please refer to our LPC1837 lpcopen code at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can download the IAR and MDK lpcopen code for LPCxpresso 1837 board from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/assets/downloads/data/en/software/lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837.zip" title="http://www.nxp.com/assets/downloads/data/en/software/lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837.zip"&gt;http://www.nxp.com/assets/downloads/data/en/software/lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UART0 code is in folder: lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\iar\periph_uart&lt;/P&gt;&lt;P&gt;The default uart0 pin is using :&amp;nbsp; P6_4 as UART0_TXD, P2_1 as UART0_RXD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you want to use P2_0 as UART0_TXD, you can modify the Board_UART_Init function in board.c like this:&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/14044i87172FE740227379/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;Then build the lib and the uart project again.&lt;/P&gt;&lt;P&gt;This is test result with lpcxpresso 1837:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14023i07D65FB75115B4EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question after using our official code, please let me know.&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>Tue, 25 Apr 2017 06:00:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636717#M25158</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-04-25T06:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636718#M25159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Unfortunately in my computer Keil uVision5 or IAR is not available. Could you please provide us with examples with older version of Keil uVision(e.g. Keil uVision4.7). Thanks in advance for your help.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 03:25:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636718#M25159</guid>
      <dc:creator>yuanbinzhou</dc:creator>
      <dc:date>2017-04-26T03:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636719#M25160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry Zhou,&lt;/P&gt;&lt;P&gt;I have tried to build uart demo downloaded from the link you have posted trhough&amp;nbsp;IAR IDE and to be honest I am not familiar with it.&amp;nbsp;Unfortunately ONE MISTAKE has encountered during the link process and I did not alter any source codes and configurations of the project. Could you please kindly help me. The output information is:&lt;/P&gt;&lt;P&gt;Fatal Error[Li001]: could not open file "C:\Users\xxx\Downloads\lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\iar\lpc_board_nxp_lpcxpresso_1837\iar_output\Exe\ lib_lpc_board_nxp_lpcxpresso_1837.a"&lt;/P&gt;&lt;P&gt;Platform:IAR Embedded Workbench for ARM 7.70.1.11486&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 04:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636719#M25160</guid>
      <dc:creator>yuanbinzhou</dc:creator>
      <dc:date>2017-04-26T04:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636720#M25161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuanbin Zhou,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please follow my step, and try again to build the project.&lt;/P&gt;&lt;P&gt;1. Open folder:lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\iar\periph_examples&lt;/P&gt;&lt;P&gt;2.Build lib_lpc_board at first, then build lib_lpc_chip， at last build uart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14648i4E7AF8EE5F9F7FC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your problem is caused by the lib, you didn't build the lib at first.&lt;/P&gt;&lt;P&gt;&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, 26 Apr 2017 04:42:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636720#M25161</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-04-26T04:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636721#M25162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your reply. With your help, UART0 is running well as expected by using IAR IDE. However, my team and I would prefer to use Keil uVision and I am trying to build project through Keil uVision5. I followed the steps the same as IAR IDE as you guided, that is&lt;/P&gt;&lt;P&gt;1. Open folder:lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\keil\periph_examples&lt;BR /&gt;2.Build lib_lpc_board at first, then build lib_lpc_chip， at last build uart.&lt;/P&gt;&lt;P&gt;However it get the following messages when I build the lib_lpc_board project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error: C4065E: type of input file 'C:\Users\credo\Downloads\lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\keil\periph_sdmmc\RTE' unknown&lt;BR /&gt;compiling sdmmc.c...&lt;BR /&gt;Error: C4065E: type of input file 'C:\Users\credo\Downloads\lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\keil\periph_sdmmc\RTE' unknown&lt;BR /&gt;assembling keil_startup_lpc18xx43xx.s...&lt;BR /&gt;compiling fs_mci.c...&lt;BR /&gt;Error: C4065E: type of input file 'C:\Users\credo\Downloads\lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\keil\periph_sdmmc\RTE' unknown&lt;BR /&gt;compiling rtc.c...&lt;BR /&gt;Error: C4065E: type of input file 'C:\Users\credo\Downloads\lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\keil\periph_sdmmc\RTE' unknown&lt;BR /&gt;compiling ff.c...&lt;BR /&gt;Error: C4065E: type of input file 'C:\Users\credo\Downloads\lpcopen_3_01_keil_iar_nxp_lpcxpresso_1837\LPC43xx_18xx\prj_xpresso1837\keil\periph_sdmmc\RTE' unknown&lt;BR /&gt;linking...&lt;BR /&gt;.\keil_output\sdmmc.axf: error: L6002U: Could not open file .\keil_output\sysinit.o: No such file or directory&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 05:42:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636721#M25162</guid>
      <dc:creator>yuanbinzhou</dc:creator>
      <dc:date>2017-04-26T05:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636722#M25163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question is that how can I port the uart driver into CMSIS library&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 06:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636722#M25163</guid>
      <dc:creator>yuanbinzhou</dc:creator>
      <dc:date>2017-04-26T06:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636723#M25164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Yuanbin Zhou,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This is the build result on my side, no errors:&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/14959i0A017D71231FDF7A/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;My MDK version is V5.23.&lt;/P&gt;&lt;P&gt;Your result turns out that you are building sdmmc.&lt;/P&gt;&lt;P&gt;Please build the lib at first, take care, the MDK should &lt;STRONG&gt;choose the according lib, then left click, choose the set as active project,&lt;/STRONG&gt; then build.&lt;/P&gt;&lt;P&gt;Please build the two lib, and uart project again with my method.&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, 26 Apr 2017 06:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636723#M25164</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-04-26T06:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636724#M25165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuanbin Zhou,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I find some CMSIS driver from LPC183x series.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/lpc18xx-cmsis-compliant-standard-peripheral-firmware-driver-library-keil-iar" title="https://www.lpcware.com/content/nxpfile/lpc18xx-cmsis-compliant-standard-peripheral-firmware-driver-library-keil-iar"&gt;LPC18xx CMSIS-Compliant Standard Peripheral Firmware Driver Library (Keil, IAR) | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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, 26 Apr 2017 06:15:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636724#M25165</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-04-26T06:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636725#M25166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. Could you please give me a very simple example to make UART working(e.g. Files that write register s directly except the files that call library although that is not very hard to understand. However&amp;nbsp;I am afraid that I neglected something important in the files ). I have read the manual MANY MANY MANY&amp;nbsp;times and use very similar code as the example. But in my code, UART0 still cannot work. &amp;nbsp;What should I do? Which code should be written? Set the pin? UART Configuration?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 07:25:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636725#M25166</guid>
      <dc:creator>yuanbinzhou</dc:creator>
      <dc:date>2017-04-26T07:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636726#M25167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;I still cannot compile that project in Keil uVision5. I got the following errors:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;Error: C4065E: type of input file 'C:\Users\xxx\Downloads\lpcopen_3_01_keil_iar_ngx_xplorer_1830\LPC43xx_18xx\prj_xplorer1830\keil\periph_uart\RTE' unknown&lt;/BLOCKQUOTE&gt;&lt;P&gt;Please notice that I have build the project lib_lpc_chip_18xx and lib_lpc_board_ngx_xplorer_1830. What should I do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 04:19:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636726#M25167</guid>
      <dc:creator>yuanbinzhou</dc:creator>
      <dc:date>2017-05-04T04:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636727#M25168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yuanbin Zhou,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry for my later reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Actually, the simple code you also can refer to the lpcopen code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have modify the lpcopen code like this:&lt;/P&gt;&lt;P&gt;#include "chip.h"&lt;BR /&gt;#include "board.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;* Private types/enumerations/variables&lt;BR /&gt;&amp;nbsp;****************************************************************************/&lt;BR /&gt;#define UARTNum 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#define LPC_UART LPC_USART0&lt;BR /&gt;#define UARTx_IRQn&amp;nbsp; USART0_IRQn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; unsigned int i,j;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SystemCoreClockUpdate();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Board_Init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Board_UART_Init(LPC_UART);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_UART_Init(LPC_UART);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_UART_SetBaud(LPC_UART, 115200);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_UART_ConfigData(LPC_UART, UART_LCR_WLEN8 | UART_LCR_SBS_1BIT); /* Default 8-N-1 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Enable UART Transmit */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_UART_TXEnable(LPC_UART);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;100;i++) for(j=0;j&amp;lt;65535;j++);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while((Chip_UART_ReadLineStatus(LPC_USART0) &amp;amp; UART_LSR_THRE) != 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_USART0-&amp;gt;THR = (uint32_t)0X55;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is just send 0X55 with 115200bps in UART0, PIO2_0 and PIO2-1.&lt;/P&gt;&lt;P&gt;I also attached my test project for your reference, and the following picture is the test result:&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/26290i828EEA6F236FABAC/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;Wish it helps you!&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>Thu, 29 Jun 2017 09:00:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/636727#M25168</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-29T09:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/1778551#M55030</link>
      <description>&lt;P&gt;UART on LPC18S37&amp;nbsp; always responding the below data as I am sending 0xAA can u please help me with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M▒Ս▒M&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 08:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/1778551#M55030</guid>
      <dc:creator>pranavkolte</dc:creator>
      <dc:date>2023-12-21T08:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx UART0 cannot work</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/1778559#M55031</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pranavkolte_0-1703148136605.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255475i9957CA4C22B37AC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pranavkolte_0-1703148136605.png" alt="pranavkolte_0-1703148136605.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It gives this response&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pranavkolte_1-1703148200339.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255476i597B8451E877D9D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pranavkolte_1-1703148200339.png" alt="pranavkolte_1-1703148200339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And this code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 08:43:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-UART0-cannot-work/m-p/1778559#M55031</guid>
      <dc:creator>pranavkolte</dc:creator>
      <dc:date>2023-12-21T08:43:42Z</dc:date>
    </item>
  </channel>
</rss>

