# Lpc2106 Uart Problems

**URL:** <https://forums.freertos.org/t/lpc2106-uart-problems/5105>\
**Category:** Kernel\
**Created:** [November 8, 2008, 12:03pm UTC](https://forums.freertos.org/t/lpc2106-uart-problems/5105 "2008-11-08T12:03:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 8, 2008, 12:03pm UTC](https://forums.freertos.org/t/lpc2106-uart-problems/5105/1 "2008-11-08T12:03:46Z")

</div>

**[cminor](https://sourceforge.net/u/cminor/)** wrote on [Saturday, November 08, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/df8d63d8/#23f9):

Hello Everyone,  
I’m new to this stuff and i’m experimenting with an Olimex Lpc2106 board using FreeRTOS.  
I have some problems with the Uart Driver though (the one included in demo application).

I have three tasks, the two of them blink 2 leds, and the third is used for sending a string to uart0 and receive something. I use Teraterm as terminal.

The problem is :  
When I receive ONE char, everything works well, and I can resend it to Uart :

xSerialGetChar( xPort, &jimR, comRX\_BLOCK\_TIME );  
xSerialPutChar( xPort, jimR, comNO\_BLOCK );

But, when I want to receive a string, using an array variable, if I send any char everything hangs. (Assume I send only 2 chars)

char \*array;  
xSerialGetChar( xPort, &array[0], comRX\_BLOCK\_TIME );  
xSerialGetChar( xPort, &array[1], comRX\_BLOCK\_TIME );

This does not happen if&nbsp; I use two different variables for my two chars :

xSerialGetChar( xPort, &jimR, comRX\_BLOCK\_TIME );  
xSerialGetChar( xPort, &jimR2, comRX\_BLOCK\_TIME );  
xSerialPutChar( xPort, jimR, comNO\_BLOCK );  
xSerialPutChar( xPort, jimR2, comNO\_BLOCK );

Any thoughts…?

Regards, Dimitris

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 8, 2008, 8:50pm UTC](https://forums.freertos.org/t/lpc2106-uart-problems/5105/2 "2008-11-08T20:50:07Z")

</div>

**[edwards3](https://sourceforge.net/u/edwards3/)** wrote on [Saturday, November 08, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/df8d63d8/#23f9/b0c7):

char \*array -\> This only defines a pointer to a character, not an array. You need char array[2].
