- 积分
- 0
贡献0
飞刀0 FD
注册时间2015-12-16
在线时间0 小时
|
发表于 2011-4-12 16:46:02
|
显示全部楼层
步骤:
1:在D:\WINCE600\PLATFORM\SMDKC100\MDK100.bat里面
set BSP_NOSERIAL=
set BSP_NOUART0=
set BSP_NOUART1=
set BSP_NOUART2=
set BSP_NOUART3=
set BSP_NOIRDA2=1
set BSP_NOIRDA3=1
@REMset BSP_DEBUGPORT=SERIAL_UART0
@REMset BSP_DEBUGPORT=SERIAL_UART1
@REM set BSP_DEBUGPORT=SERIAL_UART2
@REM set BSP_DEBUGPORT=SERIAL_UART3
隐去以上的,主要是要加载各个串口的注册表信息一边加载驱动
如果哪个不隐去,则哪个就不加载,用于调试串口
2:在D:\WINCE600\PLATFORM\SMDKC100\SRC\OAL\OALLIB\debug.c里面
要隐去VOID OEMWriteDebugByte(UINT8 ch)和、int OEMReadDebugByte()
里面的内容:注意如果不隐去则烧写系统进不了,死在这了!
VOID OEMWriteDebugByte(UINT8 ch)
{
// Wait for TX Buffer Empty
//
// while (!(g_pUARTReg->UTRSTAT & 0x2));//muscle boy
// g_pUARTReg->UTXH = ch; //muscle boy
}
//------------------------------------------------------------------------------
//
// Function: OEMReadDebugByte
//
// Reads a byte from the debug serial port. Does not wait for a character.
// If a character is not available function returns "OEM_DEBUG_READ_NODATA".
//
int OEMReadDebugByte()
{
/* int ch; //muscle boy
if (g_pUARTReg->UTRSTAT & 0x1) // There is received data
{
ch = (int)(g_pUARTReg->URXH);
}
else // There no data in RX Buffer;
{
ch = OEM_DEBUG_READ_NODATA;
}
return ch;
*/ //muscle boy
} |
|