我用的winCE6 BSP是Mini6410-WinCE6-Suite-1115.zip
安装好开发环境,修改好BSP中的options.h(使用#define LCDA_70,#define KTIL_NONE),直接clean sysgen,生成映像,拷贝到SD,重新烧写,一切OK,wince启动正常,就是COM0输出信息太少。
修改options.h,这次使用#define KITL_SERIAL_UART0 。再次clean sysgen,生成映像,拷贝到SD,重新烧写,一切OK,wince启动,但是COM0输出到-OALIntrRequestSysIntr(irq = 61, sysIntr = 31) 后,系统停滞了,没有任何响应。
难道这一版本的BSP有问题?如果无法使用KITL,如何调试device driver?
定义#define KITL_SERIAL_UART0 后,COM0输出如下:
WinCE 6.0 nboot for Mini6410
Reading...Launch Windows CE...
Windows CE Kernel for ARM (Thumb Enabled) Built on Nov 3 2010 at 07:30:04
[OAL] ++OEMInit()
[OAL] S3C6410_APLL_CLK : 532000000
[OAL] ARMCLK : 532000000
[OAL] HCLK : 133000000
[OAL] PCLK : 66500000
[OAL] InitializeGPIO()
[OAL] InitializeCLKSource()
[OAL] InitializeCLKGating()
[OAL] InitializeBlockPower()
DCache: 128 sets, 4 ways, 32 line size, 16384 size
ICache: 128 sets, 4 ways, 32 line size, 16384 size
+OALArgsInit()
SocID:0x36410101
Arguments area is initialized
-OALArgsInit()
+OALTimerInit( 1, 33249, 0 )
-OALIntrRequestSysIntr(irq = 38, sysIntr = 16)
[OAL] --OEMInit()
[FMD] FMD_OEMIoControl() : IOCTL_FMD_GET_INTERFACE
[FMD:INF] FMD_Init() : Read ID = 0x0000ecda
[FMD] FMD_Init() : type is SLC1
[FMD:ERR] FMD_OEMIoControl() : Unknown IOCTL (0x00071c24)
[OAL] Not Clear Storage
[OAL] Not Clear System Hive
[OAL] Not Clear User Hive
[OAL] Not Clear System Hive
WARN: OALIoCtlHalGetHWEntropy: Buffer too small
[PWRCON] PWC_Init***
-OALIntrRequestSysIntr(irq = 40, sysIntr = 18)
-OALIntrRequestSysIntr(irq = 19, sysIntr = 19)
-OALIntrRequestSysIntr(irq = 23, sysIntr = 20)
-OALIntrRequestSysIntr(irq = 20, sysIntr = 21)
-OALIntrRequestSysIntr(irq = 88, sysIntr = 22)
-OALIntrRequestSysIntr(irq = 73, sysIntr = 23)
-OALIntrRequestSysIntr(irq = 74, sysIntr = 24)
[HSMMC0] Initializing the HSMMC Host Controller
-OALIntrRequestSysIntr(irq = 94, sysIntr = 25)
[HSMMC0] Turn OFF the F/B delay control.
[HSMMC1] Initializing the HSMMC Host Controller
-OALIntrRequestSysIntr(irq = 7, sysIntr = 26)
-OALIntrRequestSysIntr(irq = 95, sysIntr = 27)
[HSMMC0] Card is Inserted!
[HSMMC1] Turn OFF the F/B delay control.
[HSMMC1] Card is Inserted!
[HSMMC0] Turn OFF the F/B delay control.
[HSMMC0] Setting for 1 bit mode , Clock Rate = 100000 Hz
[HSMMC0] Turn OFF the F/B delay control.
ERR CMD:5 : If the card is not a SDIO, CMD 5 does not work in reason.
ERR CMD:1 : If the card is not a MMC, CMD 1 does not work in reason.
[HSMMC1] Turn OFF the F/B delay control.
[HSMMC1] Setting for 1 bit mode , Clock Rate = 100000 Hz
[HSMMC1] Turn OFF the F/B delay control.
ERR CMD:5 : If the card is not a SDIO, CMD 5 does not work in reason.
ERR CMD:8 : If the card is not SD SPEC 2.0, CMD 8 does not work in reason.
ERR CMD:1 : If the card is not a MMC, CMD 1 does not work in reason.
ERR CMD:55 : [HSMMC1] CMD Timeout Error...
<Davicom DM9000A driver for WinCE 6.0>
<DM9:++MiniportIntialize>
[dm9: Tries to map io space with 18000000]
[dm9: The mapped address is D2A40000]
[dm9: Chip signature is 0A469000]
MAC: e0-aa-c8-de-63-52
<DM9:--MiniportIntialize>
[UFNPDD] USB Serial Function Class Enabled
[USB] dii.dwIrq = 96
-OALIntrRequestSysIntr(irq = 96, sysIntr = 28)
Current Client "Serial_Class"
[UFNPDD] USB Serial Function Class Enabled
[SDBUS] SD Card Spec Version : 2.00
[SDBUS] SD/SDHC supports the high-speed mode.
[HSMMC0] Setting for 4 bit mode , Clock Rate = 50000000 Hz
[HSMMC0] Turn OFF the F/B delay control.
[UFNPDD] OTG Cable Attached
[UFNPDD] RESET Again
[USBH] HcdPdd_Init()
[USBH] ++InitializeOHCI()
[USBH] --InitializeOHCI() : Success
+OEMSetAlarmTime(6/15/2011 7:49:26.000)
-OALIntrRequestSysIntr(irq = 13, sysIntr = 29)
-OALIntrRequestSysIntr(irq = 14, sysIntr = 30)
DEBUG: CreateSerialObject 0
-OALIntrRequestSysIntr(irq = 61, sysIntr = 31)