I am developing the DUART driver for the board TWR-LS1021A-PB. DUART works fine as long as you don't stress it by sending lots of data to the target. In the situation when serial communication stops, if I reset the MBED controller (by plug in/plug out the USB cable), serial seems to work again. In my understanding the problem may be in the Windows driver (mbedWinSerial_16466.exe) or in the MBED firmware (k20dx128_if_mbed.bin). Please find below the details of my test environment.
Host PC: Windows x86
Serial Driver: mbedWinSerial_16466.exe
Serial Port Configuration: 115200-8-N-1
Host application: Send/receive data to/from the target board (TWR-LS1021A-PB).
Target board: TWR-LS1021A-PB
UART controller: DUART1
Clock input to the UART controller : 150 MHz (Platform clock / 2, where Platform clock is 300 MHz)
Baud rate set : 115200 bps
During debugging, I have observed that the UART driver in the target board is still alive when the communication fails between the host and the target. That means if I reset the MBED controller the communication gets established again.
Has anyone faced this kind of issue? Is there any workaround?