10 years, 9 months ago.  This question has been closed. Reason: https://mbed.org/forum/bugs-suggestions/topic/4473/

Bug in UART library (NXP 16550 compatible UART)

Hi,

A bug report has been posted to Japanese forum: https://mbed.org/forum/ja/topic/4471/

It seems to be a problem in UART library (only for NXP 16550 compatible UART).

When sending operation is happened during receiving operation, receiving operation seems to be broken by serial_putc() function.

It appeared only in full-duplex communication, not in half-duplex communication. <http://mbed.org/users/mbed_official/code/mbed-src/file/f9e72c209510/vendor/NXP/LPC1768/hal/serial_api.c>

Because THR and RBR register shared same address, receiving data has been wrongly read in serial_putc().

/media/uploads/MACRUM/serial_api.jpg /media/uploads/MACRUM/um10360.jpg

Posted to Bug&Suggestions forum https://mbed.org/forum/bugs-suggestions/topic/4473/

posted by Toyomasa Watarai 18 Jul 2013