omap3530/shared/monitor/monitor.cpp
changeset 66 43baf257831d
parent 63 8cf16be5c3dd
child 69 39ed99121282
--- a/omap3530/shared/monitor/monitor.cpp	Fri Sep 10 17:28:00 2010 +0100
+++ b/omap3530/shared/monitor/monitor.cpp	Fri Sep 10 17:31:41 2010 +0100
@@ -28,6 +28,9 @@
 		{
 		Omap3530Uart::TUart uart( portNumber );
 
+		// wait for uart to fihish any transmission that could be started (i.e. crash info)
+		while(!uart.TxFifoEmpty());
+
 		// Ensure UART clocks are running
 		Prcm::SetClockState( uart.PrcmInterfaceClk(),Prcm::EClkOn );
 		Prcm::SetClockState( uart.PrcmFunctionClk(), Prcm::EClkOn );
@@ -50,7 +53,7 @@
 		Omap3530Uart::TUart uart( portNumber );
 
 		TUint c=0;
-
+			
 		while ( !uart.RxFifoEmpty() )
 			{ 
 			if ( CheckPower() )