fixed another issue with uart / and crash-debugger generic_fixes_and_updates
authorLukasz Forynski <lukasz.forynski@gmail.com>
Mon, 13 Sep 2010 01:36:12 +0100
branchgeneric_fixes_and_updates
changeset 70 39ed99121282
parent 69 93c6de6be1b1
child 72 dc96bdfcaddc
fixed another issue with uart / and crash-debugger
omap3530/beagleboard/src/variant.cpp
omap3530/shared/monitor/monitor.cpp
--- a/omap3530/beagleboard/src/variant.cpp	Sat Sep 11 23:40:07 2010 +0100
+++ b/omap3530/beagleboard/src/variant.cpp	Mon Sep 13 01:36:12 2010 +0100
@@ -212,6 +212,7 @@
 void Beagle::DebugInit()
 	{
 	Variant::UartInit();
+	iDebugInitialised = ETrue;
 	}
 
 void Beagle::DebugOutput(TUint aLetter)
--- a/omap3530/shared/monitor/monitor.cpp	Sat Sep 11 23:40:07 2010 +0100
+++ b/omap3530/shared/monitor/monitor.cpp	Mon Sep 13 01:36:12 2010 +0100
@@ -28,13 +28,15 @@
 		{
 		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 );
 	
+		// Add new line and wait for uart to fihish any transmission (i.e. crash info from fifo)
+		uart.Write('\r');
+		uart.Write('\n');
+		while(!uart.TxFifoEmpty());
+		
 		// We don't know what state the UART is in, so reinitialize it
 		uart.Init();
 		uart.DefineMode( Omap3530Uart::TUart::EUart );