<?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 UART_RB example problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1435519#M48361</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I'm trying to use the ring buffer in a LPC11u34 and I'm testing the LPCOpen example without good results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#include "chip.h"
//#include "board.h"
#include "string.h"
#include "delay.h"

STATIC RINGBUFF_T txring, rxring;
#define UART_SRB_SIZE 128	/* Send */
#define UART_RRB_SIZE 128	/* Receive */
#define UART_SPEED		9600

static uint8_t rxbuff[UART_RRB_SIZE], txbuff[UART_SRB_SIZE];

const char inst1[] = "LPC13xx UART example using ring buffers\r\n";
const char inst2[] = "Press a key to echo it back or ESC to quit\r\n";

static void Init_UART_PinMux(void)
{
    Chip_IOCON_PinMux(LPC_IOCON,_portRXD,_pinRXD,IOCON_MODE_INACT, FUNC1);	// RXD
    Chip_IOCON_PinMux(LPC_IOCON,_portTXD,_pinTXD,IOCON_MODE_INACT, FUNC1);	// TXD

	Chip_UART_Init(LPC_USART);
	Chip_UART_SetBaud(LPC_USART, UART_SPEED);
	Chip_UART_ConfigData(LPC_USART, (UART_LCR_WLEN8 | UART_LCR_SBS_1BIT | UART_LCR_PARITY_DIS));		//  | UART_LCR_PARITY_DIS
	Chip_UART_SetupFIFOS(LPC_USART, (UART_FCR_FIFO_EN | UART_FCR_TRG_LEV2));							/*!&amp;lt; UART FIFO trigger level 0: 1 character */
	Chip_UART_TXEnable(LPC_USART);
}

void UART_IRQHandler(void)
{
	Chip_UART_Send(LPC_USART, "INTERRUPTED!\n\r", 15);     //never printed
	Chip_UART_IRQRBHandler(LPC_USART, &amp;amp;rxring, &amp;amp;txring);
}

int main(void)
{
	uint8_t key;
	int bytes;

	SystemCoreClockUpdate();
	setSYSTICK();
	//Board_Init();
	Chip_GPIO_Init(LPC_GPIO);

	Init_UART_PinMux();

	RingBuffer_Init(&amp;amp;rxring, rxbuff, 1, UART_RRB_SIZE);
	RingBuffer_Init(&amp;amp;txring, txbuff, 1, UART_SRB_SIZE);
	//RingBuffer_Flush(&amp;amp;rxring);
	//RingBuffer_Flush(&amp;amp;txring);

	Chip_UART_IntEnable(LPC_USART, (UART_IER_RBRINT | UART_IER_RLSINT));

	/* preemption = 1, sub-priority = 1 */
	NVIC_SetPriority(UART0_IRQn, 1);
	NVIC_EnableIRQ(UART0_IRQn);

	for(uint8_t i = 0; i&amp;lt;5; i++){
		Chip_UART_Send(LPC_USART, "TEST BUFFER\n\r", 15);
		_delay_ms(1000);
	}

	// -&amp;gt; until here, transmission is OK

	/* Send initial messages */
	Chip_UART_SendRB(LPC_USART, &amp;amp;txring, inst1, sizeof(inst1) - 1);			// here, only prints "L" (first char of the array)
	Chip_UART_SendRB(LPC_USART, &amp;amp;txring, inst2, sizeof(inst2) - 1);			// nothing printed anymore

	Chip_UART_Send(LPC_USART, "\n\rGO!\n\r", 15);

	/* Poll the receive ring buffer for the ESC (ASCII 27) key */
	key = 0;
	while (key != 27) {
		bytes = Chip_UART_ReadRB(LPC_USART, &amp;amp;rxring, &amp;amp;key, 1);
		if (bytes &amp;gt; 0) {
			Chip_UART_Send(LPC_USART, "key pressed\n\r", 15);				// -&amp;gt; enters here without pressing any key and the string is cut, only prints "key pre"
			/* Wrap value back around */
			if (Chip_UART_SendRB(LPC_USART, &amp;amp;txring, (const uint8_t *) &amp;amp;key, 1) != 1) {
				Chip_UART_Send(LPC_USART, "error\n\r", 15);
			}
		}
	}

	/* DeInitialize UART0 peripheral */
	NVIC_DisableIRQ(UART0_IRQn);
	Chip_UART_DeInit(LPC_USART);

	return 1;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura.PNG" style="width: 154px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175154iD78F9719496CB24C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura.PNG" alt="Captura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see few errors:&lt;/P&gt;&lt;P&gt;- UART IRQ seems not to be fired.&lt;/P&gt;&lt;P&gt;- First&amp;nbsp;Chip_UART_SendRB instance, only prints the first character "L".&lt;/P&gt;&lt;P&gt;- Second&amp;nbsp;Chip_UART_SendRB prints nothing.&lt;/P&gt;&lt;P&gt;- Although no key is pressed, program enters into if(byte &amp;gt; 0). And there, only "key pre" is printed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've modified LPCOpen function as seen in this forum because the original one, only prints the first byte:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;int Chip_UART_Send(LPC_USART_T *pUART, const void *data, int numBytes)
{
	int sent = 0;
	uint8_t *p8 = (uint8_t *) data;

	/* Send until the transmit FIFO is full or out of bytes */
/*	while ((sent &amp;lt; numBytes) &amp;amp;&amp;amp;
		   ((Chip_UART_ReadLineStatus(pUART) &amp;amp; UART_LSR_THRE) != 0)) {
		Chip_UART_SendByte(pUART, *p8);
		p8++;
		sent++;
	}
*/
    while ((sent &amp;lt; numBytes) ) {												// FUNCION CORREGIDA DE LA LIBRERIA LPCOPEN
        while((Chip_UART_ReadLineStatus(pUART) &amp;amp; UART_LSR_THRE) == 0);
        Chip_UART_SendByte(pUART, *p8);
        p8++;
        sent++;
    }

	return sent;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone light my way, please?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 14:46:28 GMT</pubDate>
    <dc:creator>emimad</dc:creator>
    <dc:date>2022-03-29T14:46:28Z</dc:date>
    <item>
      <title>UART_RB example problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1435519#M48361</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I'm trying to use the ring buffer in a LPC11u34 and I'm testing the LPCOpen example without good results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#include "chip.h"
//#include "board.h"
#include "string.h"
#include "delay.h"

STATIC RINGBUFF_T txring, rxring;
#define UART_SRB_SIZE 128	/* Send */
#define UART_RRB_SIZE 128	/* Receive */
#define UART_SPEED		9600

static uint8_t rxbuff[UART_RRB_SIZE], txbuff[UART_SRB_SIZE];

const char inst1[] = "LPC13xx UART example using ring buffers\r\n";
const char inst2[] = "Press a key to echo it back or ESC to quit\r\n";

static void Init_UART_PinMux(void)
{
    Chip_IOCON_PinMux(LPC_IOCON,_portRXD,_pinRXD,IOCON_MODE_INACT, FUNC1);	// RXD
    Chip_IOCON_PinMux(LPC_IOCON,_portTXD,_pinTXD,IOCON_MODE_INACT, FUNC1);	// TXD

	Chip_UART_Init(LPC_USART);
	Chip_UART_SetBaud(LPC_USART, UART_SPEED);
	Chip_UART_ConfigData(LPC_USART, (UART_LCR_WLEN8 | UART_LCR_SBS_1BIT | UART_LCR_PARITY_DIS));		//  | UART_LCR_PARITY_DIS
	Chip_UART_SetupFIFOS(LPC_USART, (UART_FCR_FIFO_EN | UART_FCR_TRG_LEV2));							/*!&amp;lt; UART FIFO trigger level 0: 1 character */
	Chip_UART_TXEnable(LPC_USART);
}

void UART_IRQHandler(void)
{
	Chip_UART_Send(LPC_USART, "INTERRUPTED!\n\r", 15);     //never printed
	Chip_UART_IRQRBHandler(LPC_USART, &amp;amp;rxring, &amp;amp;txring);
}

int main(void)
{
	uint8_t key;
	int bytes;

	SystemCoreClockUpdate();
	setSYSTICK();
	//Board_Init();
	Chip_GPIO_Init(LPC_GPIO);

	Init_UART_PinMux();

	RingBuffer_Init(&amp;amp;rxring, rxbuff, 1, UART_RRB_SIZE);
	RingBuffer_Init(&amp;amp;txring, txbuff, 1, UART_SRB_SIZE);
	//RingBuffer_Flush(&amp;amp;rxring);
	//RingBuffer_Flush(&amp;amp;txring);

	Chip_UART_IntEnable(LPC_USART, (UART_IER_RBRINT | UART_IER_RLSINT));

	/* preemption = 1, sub-priority = 1 */
	NVIC_SetPriority(UART0_IRQn, 1);
	NVIC_EnableIRQ(UART0_IRQn);

	for(uint8_t i = 0; i&amp;lt;5; i++){
		Chip_UART_Send(LPC_USART, "TEST BUFFER\n\r", 15);
		_delay_ms(1000);
	}

	// -&amp;gt; until here, transmission is OK

	/* Send initial messages */
	Chip_UART_SendRB(LPC_USART, &amp;amp;txring, inst1, sizeof(inst1) - 1);			// here, only prints "L" (first char of the array)
	Chip_UART_SendRB(LPC_USART, &amp;amp;txring, inst2, sizeof(inst2) - 1);			// nothing printed anymore

	Chip_UART_Send(LPC_USART, "\n\rGO!\n\r", 15);

	/* Poll the receive ring buffer for the ESC (ASCII 27) key */
	key = 0;
	while (key != 27) {
		bytes = Chip_UART_ReadRB(LPC_USART, &amp;amp;rxring, &amp;amp;key, 1);
		if (bytes &amp;gt; 0) {
			Chip_UART_Send(LPC_USART, "key pressed\n\r", 15);				// -&amp;gt; enters here without pressing any key and the string is cut, only prints "key pre"
			/* Wrap value back around */
			if (Chip_UART_SendRB(LPC_USART, &amp;amp;txring, (const uint8_t *) &amp;amp;key, 1) != 1) {
				Chip_UART_Send(LPC_USART, "error\n\r", 15);
			}
		}
	}

	/* DeInitialize UART0 peripheral */
	NVIC_DisableIRQ(UART0_IRQn);
	Chip_UART_DeInit(LPC_USART);

	return 1;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura.PNG" style="width: 154px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175154iD78F9719496CB24C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura.PNG" alt="Captura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see few errors:&lt;/P&gt;&lt;P&gt;- UART IRQ seems not to be fired.&lt;/P&gt;&lt;P&gt;- First&amp;nbsp;Chip_UART_SendRB instance, only prints the first character "L".&lt;/P&gt;&lt;P&gt;- Second&amp;nbsp;Chip_UART_SendRB prints nothing.&lt;/P&gt;&lt;P&gt;- Although no key is pressed, program enters into if(byte &amp;gt; 0). And there, only "key pre" is printed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've modified LPCOpen function as seen in this forum because the original one, only prints the first byte:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;int Chip_UART_Send(LPC_USART_T *pUART, const void *data, int numBytes)
{
	int sent = 0;
	uint8_t *p8 = (uint8_t *) data;

	/* Send until the transmit FIFO is full or out of bytes */
/*	while ((sent &amp;lt; numBytes) &amp;amp;&amp;amp;
		   ((Chip_UART_ReadLineStatus(pUART) &amp;amp; UART_LSR_THRE) != 0)) {
		Chip_UART_SendByte(pUART, *p8);
		p8++;
		sent++;
	}
*/
    while ((sent &amp;lt; numBytes) ) {												// FUNCION CORREGIDA DE LA LIBRERIA LPCOPEN
        while((Chip_UART_ReadLineStatus(pUART) &amp;amp; UART_LSR_THRE) == 0);
        Chip_UART_SendByte(pUART, *p8);
        p8++;
        sent++;
    }

	return sent;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone light my way, please?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 14:46:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1435519#M48361</guid>
      <dc:creator>emimad</dc:creator>
      <dc:date>2022-03-29T14:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: UART_RB example problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436022#M48374</link>
      <description>&lt;P&gt;HI&amp;nbsp;emimad&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have&amp;nbsp;&lt;SPAN&gt;LPC11u34 but I have a LPC11u37 demo board. under my lpcopen package I didn't find&amp;nbsp; UART_RB demo.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please send me your LPCOpen package download link thus I can test it directly on my side?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 08:55:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436022#M48374</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-03-30T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: UART_RB example problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436109#M48375</link>
      <description>&lt;P&gt;Hi Jun,&lt;/P&gt;&lt;P&gt;I've done many tests with different options. Let me explain my findings.&lt;/P&gt;&lt;P&gt;I have a LPC11u34 and a LPC1337 boards, so I've downloaded this libraries:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=LPCOPEN_V2_00A_LPCXPRESSO_11U14" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=LPCOPEN_V2_00A_LPCXPRESSO_11U14&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=LPCOPEN_V2_03_LPCXPRESSO_11U37H" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=LPCOPEN_V2_03_LPCXPRESSO_11U37H&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My findings:&lt;/P&gt;&lt;P&gt;11u34 and LPC1337 are very similar and most of the functions are compatible.&lt;/P&gt;&lt;P&gt;- 11u14_periph_uart example runs into the 11u34 and into the 1337. The problem here is the console output. The message printed is only "LP".&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Periph_uart_rb (1337 library examples ) runs only in the LPC1337 but the output is OK, printing the entire&amp;nbsp; "LPC13xx UART example using ring buffers\n\rPress a key to echo it back or ESC to quit\r\n" message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My though is that the IRQ in the 11u14 example is not triggering.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 10:31:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436109#M48375</guid>
      <dc:creator>emimad</dc:creator>
      <dc:date>2022-03-30T10:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: UART_RB example problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436141#M48376</link>
      <description>&lt;P&gt;Hi Jun!&lt;/P&gt;&lt;P&gt;I've got running the example properly, you can find it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=LPCOPEN_V2_03_LPCXPRESSO_11U37H" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=LPCOPEN_V2_03_LPCXPRESSO_11U37H&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, i've pasted the code into my project and doesn't work. I think there is a problem with de IRQ because it seems not being triggered.&lt;/P&gt;&lt;P&gt;I have interrupts for TIMERS (32 &amp;amp;16) for PWM and WWDT and they are working fine.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 11:28:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436141#M48376</guid>
      <dc:creator>emimad</dc:creator>
      <dc:date>2022-03-30T11:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: UART_RB example problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436213#M48377</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;I've pasted my code into the uart project example and the IRQ is triggering.&lt;/P&gt;&lt;P&gt;In the opposite way (pasting example code into my project), doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's seems to be something into my project setup... but I haven't idea what it's happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 13:31:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436213#M48377</guid>
      <dc:creator>emimad</dc:creator>
      <dc:date>2022-03-30T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: UART_RB example problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436764#M48383</link>
      <description>&lt;P&gt;You copy part of uart demo code to your own project but uart interrupt doesn't work.&lt;/P&gt;
&lt;P&gt;Thus I suggest you check:&lt;/P&gt;
&lt;P&gt;1. check if you define uart interrupt function in vector table.&lt;/P&gt;
&lt;P&gt;2. check if uart clock source is well defined.&lt;/P&gt;
&lt;P&gt;3. check if the uart pin is well defined&lt;/P&gt;
&lt;P&gt;You can compare the related registers value in your code and demo code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:24:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1436764#M48383</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-03-31T06:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: UART_RB example problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1454881#M48698</link>
      <description>&lt;P&gt;I've found the problem!&lt;/P&gt;&lt;P&gt;In LPC_chip_11uxx_lib, in chip.h it's defined:&lt;/P&gt;&lt;PRE&gt;/* Family specific IRQ handler alias list */&lt;BR /&gt;#if (defined(CHIP_LPC11AXX) || defined(CHIP_LPC11EXX) || defined(CHIP_LPC11UXX))&lt;BR /&gt;#define UART_IRQHandler&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; USART_IRQHandler&lt;BR /&gt;#define USART0_IRQHandler&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; USART_IRQHandler&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;/* Common IRQ Handler Alias list */&lt;BR /&gt;#define UART0_IRQHanlder&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UART_IRQHandler&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the vectors definition in cr_startup_lpc11uxx.c:&lt;/P&gt;&lt;PRE&gt;UART_IRQHandler,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 21 - UART0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the handler defined in the vectors table, will never be invoqued.&lt;/P&gt;&lt;P&gt;The solution is to comment the define-&amp;gt;&amp;nbsp; */ || defined(CHIP_LPC11UXX) */&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 09:44:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-RB-example-problem/m-p/1454881#M48698</guid>
      <dc:creator>emimad</dc:creator>
      <dc:date>2022-05-09T09:44:39Z</dc:date>
    </item>
  </channel>
</rss>

