您的位置:首页 > 其它

友善2440开发板开启串口输出调试信息

2010-07-20 22:54 483 查看



友善2440开发板开启串口输出调试信息 收藏

document.body.oncopy = function () { if (window.clipboardData) { setTimeout(function () { var text = clipboardData.getData("text"); if (text && text.length > 300) { text = text + "\r\n\n本文来自CSDN博客,转载请标明出处:" + location.href; clipboardData.setData("text", text); } }, 100); } } function StorePage() { d = document; t = d.selection ? (d.selection.type != 'None' ? d.selection.createRange().text : '') : (d.getSelection ? d.getSelection() : ''); void (keyit = window.open('http://www.365key.com/storeit.aspx?t=' + escape(d.title) + '&u=' + escape(d.location.href) + '&c=' + escape(t), 'keyit', 'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes')); keyit.focus(); }
2440开发板,WINCE6.0系统,系统启动时发现串口工具没有输出任何信息,Google一下,原来是友善把它屏蔽了。
解决方法:
1、修改Debug.c文件,增加#define BSP_DEBUG_UART0,如下所示

// Function: OEMInitDebugSerial
//
// Initializes the debug serial port
//
#if defined(KITL_SERIAL_UART0)
#define BSP_DEBUG_UART0
#elif defined(KITL_SERIAL_UART1)
#define BSP_DEBUG_UART1
#endif
#define BSP_DEBUG_UART0 //add
#undef BSP_DEBUGPORT
#if defined(BSP_DEBUG_UART0) || defined(BSP_DEBUG_UART1)
#define BSP_DEBUGPORT
#endif
// Function: OEMInitDebugSerial // // Initializes the debug serial port // #if defined(KITL_SERIAL_UART0) #define BSP_DEBUG_UART0 #elif defined(KITL_SERIAL_UART1) #define BSP_DEBUG_UART1 #endif #define BSP_DEBUG_UART0 //add #undef BSP_DEBUGPORT #if defined(BSP_DEBUG_UART0) || defined(BSP_DEBUG_UART1) #define BSP_DEBUGPORT #endif 2、修改platform.reg,屏蔽串口0相关配置代码

3、重新生成镜像,烧入即可。

----------------------------------------------------------

尊重他人劳动成果,转载请标明出处http://www.cnblogs.com/feishanm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: