作者:[email protected] 日期:2012-12-23
I:\WINCE600\PLATFORM\sate210\SRC\COMMON\DBGSERIAL\dbgserial.c(60):#if (DEBUG_PORT == DEBUG_UART0)
I:\WINCE600\PLATFORM\sate210\SRC\COMMON\DBGSERIAL\dbgserial.c(63):#elif (DEBUG_PORT == DEBUG_UART1)
I:\WINCE600\PLATFORM\sate210\SRC\COMMON\DBGSERIAL\dbgserial.c(66):#elif (DEBUG_PORT == DEBUG_UART2)
I:\WINCE600\PLATFORM\sate210\SRC\COMMON\DBGSERIAL\dbgserial.c(69):#elif (DEBUG_PORT == DEBUG_UART3)
I:\WINCE600\PLATFORM\sate210\SRC\COMMON\DBGSERIAL\dbgserial.c(83):#if (DEBUG_PORT == DEBUG_UART0)
I:\WINCE600\PLATFORM\sate210\SRC\COMMON\DBGSERIAL\dbgserial.c(90):#elif (DEBUG_PORT == DEBUG_UART1)
I:\WINCE600\PLATFORM\sate210\SRC\COMMON\DBGSERIAL\dbgserial.c(97):#elif (DEBUG_PORT == DEBUG_UART2)
I:\WINCE600\PLATFORM\sate210\SRC\COMMON\DBGSERIAL\dbgserial.c(104):#elif (DEBUG_PORT == DEBUG_UART3)
//------------------------------------------------------------------------------
// SMDKV210 UART Debug Port Baudrate
//------------------------------------------------------------------------------
#define DEBUG_UART0 (0)
#define DEBUG_UART1 (1)
#define DEBUG_UART2 (2)
#define DEBUG_UART3 (3)
#define DEBUG_BAUDRATE (115200)
// UART Configuration
Div = (float)((float)PCLKPSYS/(16.0*(float)DEFAULT_DEBUG_BAUDRATE)) - 1;
OUTREG32(&g_pUARTReg->UFCON, DEBUG_UART_UFCON);
OUTREG32(&g_pUARTReg->ULCON, DEBUG_UART_ULCON);
OUTREG32(&g_pUARTReg->UCON, DEBUG_UART_UCON);
OUTREG32(&g_pUARTReg->UBRDIV, (UINT32)Div);
DivSlot = (UINT32)(((Div-(int)Div)*16)+0.5);
OUTREG32(&g_pUARTReg->UDIVSLOT, aSlotTable[DivSlot]);
// Now, let the log go through the serial
g_UARTStat &= ~UART_NOT_READY;
先把这里的函数清空直接返回。
另外在Sate210.bat 去掉调试串口环境变量设置,然后再把platform.reg 里面的com3 的index 值改成5~9都行。