新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應用 > 讓2440輸出驅(qū)動的調(diào)試信息

讓2440輸出驅(qū)動的調(diào)試信息

作者: 時間:2016-11-20 來源:網(wǎng)絡 收藏
Mini2440打印串口調(diào)試信息,2440的串口0被應用層用于COM1,導致不能打印調(diào)試信息。做以下修改即可:

1.首先在platform.reg屏蔽掉串口0的注冊表信息【注冊表前面加“;”就行了】。

本文引用地址:http://m.butianyuan.cn/article/201611/318923.htm

;[HKEY_LOCAL_MACHINEDriversBuiltInSerial0]
; "DeviceArrayIndex"=dword:0
; "Irq"=dword:1c
; "MemBase"=dword:50000000
; "MemLen"=dword:2C
; "InterruptBitsShift"=dword:0 ; UART 0 Interrupt Sub Register shift bit.
; "ISTTimeouts"=dword:200 ; every 512 ticks checking Modem status.
; "Prefix"="COM"
; "Index"=dword:1
; "Dll"="serial_smdk2440.dll"
; "Order"=dword:0
; "Priority"=dword:0
; "Port"="COM1:"
; "DeviceType"=dword:0
; "FriendlyName"="COM-1"
; "Tsp"="unimodem.dll"
; "IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
; "DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00
;ENDIF

2、其次在目錄WINCE500PLATFORMmini2440SrcInc中找到options.h找到

view plaincopy to clipboardprint?
// --- by customer
//#define KITL_NONE
#define KITL_SERIAL_UART0
//#define KITL_SERIAL_UART1
//#define KITL_USBSERIAL
//#define KITL_ETHERNET

然后 解除對#define KITL_SERIAL_UART0的屏蔽即可



評論


技術(shù)專區(qū)

關(guān)閉