<?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のトピックRe: LPC4330 UART0_RX not operating</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550560#M14034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just found that the the issue (UART0_RX not functional) occurs only when Boot-mode selector (J4 on my NGX Xplorer PCB) selects USART0 (DIP switches 1234 are Up,Up,Up,Up) .&lt;/P&gt;&lt;P&gt;Description in AN11239 states exactly:&lt;/P&gt;&lt;P&gt;"Boot from device connected to USART0 using pins P2_0 and P2_1. For flash parts, enter UART ISP mode"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The USART0 I/Os on the LPC4330 / BGA100 can be routed to pins P2_0, P2_1 (= those used by Bootloader) or pins P6_4, P6_5 (== those used by me, available on pinheader J8).&lt;/P&gt;&lt;P&gt;Which register controls the selection between these two options ?&lt;/P&gt;&lt;P&gt;Can I boot from pins P2_0, P2_1 and then switch to P6_4, P6_5 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it not controlable and Boot_via_UART0 automatically means the UART0 pins can be only P2_0 and P2_1 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Jul 2016 18:48:31 GMT</pubDate>
    <dc:creator>daliborzanca</dc:creator>
    <dc:date>2016-07-09T18:48:31Z</dc:date>
    <item>
      <title>LPC4330 UART0_RX not operating</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550559#M14033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;I have NGX LPC-4330-Xplorer board;&lt;BR /&gt;pins U0_TXD (9), U0_RXD (10) and GND (1) are interconnected to FTDI cable C232HD pins RXD,TXD,GND.&lt;BR /&gt;I tried to debug project "periph_uart_rb" from package lpcopen_2_12_lpcxpresso_ngx_xplorer_4330.zip &lt;BR /&gt;On start it prints initial text:&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;LPC18xx/43xx UART example using ring buffers&lt;BR /&gt;Press a key to echo it back or ESC to quit&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;but when I press any key there is no echo, no reaction at all.&lt;BR /&gt;I think it should repeat the char pressed and LED should toggle.&lt;BR /&gt;I measured the FTDI cable and there is 115200 Bd 1Start+8Data+1Stop bit on its TX output pin as expected.&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;Also tried project "periph_uart", no reaction to pressed key, only prints some text.&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;Then I created my project, based on LPCOpen, and tested if the pin used for UART0_RX is functional;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;when reconfigured it to Function_0 (be GPIO) I was polling this GPIO &amp;amp; incremented when zero,&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;the counter risen on each char sent from terminal =&amp;gt; pin is functional.&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;UART is initialized:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Chip_UART_Init(LPC_UART);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Chip_UART_SetBaud(LPC_UART, 115200);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Chip_UART_ConfigData(LPC_UART, UART_LCR_WLEN8 | UART_LCR_SBS_1BIT); /* Default 8-N-1 */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Chip_UART_TXEnable(LPC_UART);&lt;/EM&gt;&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;for printing I successfully use function:&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&lt;EM&gt;Chip_UART_SendBlocking(LPC_UART, mystr, 7);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // mystr[] filled with 7 characters before..&lt;/EM&gt;&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;for reception I tried construction:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a = Chip_UART_Read(LPC_UART, recbuf, 64);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;// try to read, maximally 64 bytes&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;but it always returns 0&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried also reading my way:&lt;/P&gt;&lt;P&gt;// try polling of UART0 / LSR.RDR&lt;/P&gt;&lt;P&gt;ula = *((unsigned long *)0x40081014); // UART0_LSR&lt;/P&gt;&lt;P&gt;if (ula &amp;amp; 0x0001) // b0 = RDR (RX Data Ready)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = *((unsigned long *)0x40081000); // UART0_RBR&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the bit RDR is never set&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried to print content of UART0 registers after initializetion (before the endless loop),&lt;/P&gt;&lt;P&gt;UART0_IER:&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;UART0_IIR:&amp;nbsp; 0x000000C1&lt;/P&gt;&lt;P&gt;UART0_LCR:&amp;nbsp; 0x00000003&lt;/P&gt;&lt;P&gt;UART0_LSR:&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;UART0_ACR:&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;UART0_OSR:&amp;nbsp; 0x000000F0&lt;/P&gt;&lt;P&gt;UART0_HDEN: 0x00000000&lt;/P&gt;&lt;P&gt;UART0_SYNC: 0x00000000&lt;/P&gt;&lt;P&gt;UART0_TER:&amp;nbsp; 0x00000001&lt;/P&gt;&lt;P&gt;UART0_THR:&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I found interesting is that register IIR / bits_7,6 are HH =&amp;gt; FIFO is enabled.&lt;/P&gt;&lt;P&gt;Not sure why (does it LPCOpen) and if it affects the way how RX module works,&lt;/P&gt;&lt;P&gt;could this be the reason why bit RDR (DataReceived) is never set when a char comes ?&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;Am I to use different procedure for reception, based on anything else that waiting for RDR==1 and reading RBR ?&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;Could anybody show any example code with UART0 that really works on &lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;NGX LPC-4330-Xplorer board ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;Any idea what could be wrong or what to try ?&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;Other registers that affect UART functionality, MUXes, clocks ?.. (but TX works ok)&lt;/P&gt;&lt;P style="min- padding: 0px; color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 14px;"&gt;Any ideas welcome.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337919"&gt;dal_test1.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 17:24:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550559#M14033</guid>
      <dc:creator>daliborzanca</dc:creator>
      <dc:date>2016-07-07T17:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4330 UART0_RX not operating</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550560#M14034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just found that the the issue (UART0_RX not functional) occurs only when Boot-mode selector (J4 on my NGX Xplorer PCB) selects USART0 (DIP switches 1234 are Up,Up,Up,Up) .&lt;/P&gt;&lt;P&gt;Description in AN11239 states exactly:&lt;/P&gt;&lt;P&gt;"Boot from device connected to USART0 using pins P2_0 and P2_1. For flash parts, enter UART ISP mode"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The USART0 I/Os on the LPC4330 / BGA100 can be routed to pins P2_0, P2_1 (= those used by Bootloader) or pins P6_4, P6_5 (== those used by me, available on pinheader J8).&lt;/P&gt;&lt;P&gt;Which register controls the selection between these two options ?&lt;/P&gt;&lt;P&gt;Can I boot from pins P2_0, P2_1 and then switch to P6_4, P6_5 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it not controlable and Boot_via_UART0 automatically means the UART0 pins can be only P2_0 and P2_1 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2016 18:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550560#M14034</guid>
      <dc:creator>daliborzanca</dc:creator>
      <dc:date>2016-07-09T18:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4330 UART0_RX not operating</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550561#M14035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Problem to use P6_4/P6_5 even if for the purpose of booting via UART0 pins P2_0/P2_1 have been used before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, make sure that the pin multiplexers for pins P2_0/P2_1 no longer select UART0 function. If both pin pairs P2_0/P2_1 and P6_4/P6_5 select UART0, then at least for the RXD signal only one of the pins will be functional!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 05:50:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550561#M14035</guid>
      <dc:creator>rolfmeeser</dc:creator>
      <dc:date>2016-07-12T05:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4330 UART0_RX not operating</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550562#M14036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rolf, you are right.&lt;/P&gt;&lt;P&gt;Initial value of&lt;/P&gt;&lt;P&gt;SCU register for pin P2_1 is 0x00 (func0..SGPIO5) when Boot_via_USART3 is selected (or any other probably),&lt;/P&gt;&lt;P&gt;but it is 0xD1 (func1..U0_RXD) when Boot_via_USART0 is selected, that was my problem.&lt;/P&gt;&lt;P&gt;So I had 2 pins both configured as U0_RXD, and in this case obviously P2_1 has priority over P6_5.&lt;/P&gt;&lt;P&gt;After assigning func4..GPIO5_1 to pin P2_1 the P6_5 functions correctly as the only U0_RXD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 17:07:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-UART0-RX-not-operating/m-p/550562#M14036</guid>
      <dc:creator>daliborzanca</dc:creator>
      <dc:date>2016-07-12T17:07:29Z</dc:date>
    </item>
  </channel>
</rss>

