Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
MBED thinks there is a character to receive when there is no character
I'm using a TWR-LS1021A target which has an MBED controller for the serial port. I have downloaded the latest MBED driver for my Windows 7 64-bit PC. I'm using the latest Teraterm to connect to the port (happens to be COM30). Serial works fine as long as you don't stress it by sending lots of data to the target. I have a demo that displays a screen of data and every time you press a key it updates that screen. If I hold the space bar down for about 10 seconds and then let go, the UART on the LS1021A thinks it always has data even when I'm pretty sure there is no data being sent. The UART bits show that it believes there is a character in the receive register and, according to the manual, if you read the receive register that is supposed to clear the register. Well it doesn't. Now, if in TeraTerm, I go to Control->Reset Port, after a few seconds the problem clears up and I now have control over the serial port again. Is this a known issue and is there a plan for an updated MBED driver?
Hi Michael, how did you resolve your problem? Basically I am also facing the same kind of problem and I cannot find a proper solution. I have asked NXP to provide the latest MBED firmware, although it does not resolve the issue. If you have any workaround, please share.
posted by Sk Hasanujjaman 26 Oct 2016