# HG changeset patch # User Lukasz Forynski # Date 1284338172 -3600 # Node ID 39ed991212822fa6484120cbe8d2875b37bd9a3b # Parent 93c6de6be1b17309cd2c864ce74e9f7929c9360e fixed another issue with uart / and crash-debugger diff -r 93c6de6be1b1 -r 39ed99121282 omap3530/beagleboard/src/variant.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) diff -r 93c6de6be1b1 -r 39ed99121282 omap3530/shared/monitor/monitor.cpp --- 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 );