Do everything if needed

Only to note everything I meet.

2010年7月6日 #

开发串口驱动程序

摘要: 串口驱动程序的样例在public\common\oak\drivers\serial下,其中COM_MDD2是MDD部分, SERCARD是PC卡MODEM设备的驱动.ISR16550是16550的ISR代码.SERPDDCM,是PDD的公用部分,OO16550是16550的PDD,一般我们可以以这个代码为基础根据需要开发我们自己的代码.可以参考OO16550中的代码,实现其中各个函数即可.串口在... 阅读全文

posted @ 2010-07-06 18:40 microsun 阅读(1670) 评论(0) 推荐(0) 编辑

驱动开发过程中的内存访问

摘要: 驱动开发过程中可能遇到以下几种与内在访问相关的情况: 1.CPU访问设备寄存器:在ARM中可以直接将设备的寄存器映射到ARM的存储空间中,我们需要使用几个函数将硬件寄存器地址映射到系统空间:如果已知硬件的虚拟地址,可以使用VirtualAlloc,VirtualCopy,如果已知硬件的物理地址,需要使用MmMapIoSpace映射.2.CPU与DMA或其它硬件交换数据。DMA需要使用物理地址,因为... 阅读全文

posted @ 2010-07-06 18:39 microsun 阅读(380) 评论(0) 推荐(0) 编辑

WINCE键盘驱动程序开发的注意事项

摘要: WINCE中标准的键盘驱动程序接口可以参考PS2键盘的驱动程序,但那个接口比较复杂,对于了解流接口的人来说,实现一个流接口的驱动程序应该是一个更好的选择.我们只需要实现一个流接口驱动程序,发生中断以后读到键盘的扫描码,将其用MapVirtualKey转化成虚键,再调用keybd_event函数将些虚键发送出去即可。只是我们需要注意记录CTRL,ALT等特殊键的状态。注意:1,某些键的扫描码有两个值... 阅读全文

posted @ 2010-07-06 18:39 microsun 阅读(752) 评论(0) 推荐(0) 编辑

useful information of developing driver

摘要: 1. in CE5.0 and later, DDK_GetWindowInfo can't be called in the flash driver if flash driver is loaded in system start phase 1.if it's called, the system crashed in CE5.0 due to a data abort, it can't... 阅读全文

posted @ 2010-07-06 18:38 microsun 阅读(193) 评论(0) 推荐(0) 编辑

Set external storage device as root directory

摘要: To set a external storage device as root directory, just set registry as following:[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]"DriverPath"="Drivers\\BuiltIn\\NORFlash""LoadFlags"=dword... 阅读全文

posted @ 2010-07-06 18:37 microsun 阅读(206) 评论(0) 推荐(0) 编辑

CETK serial test issues and IRDA settings

摘要: 1.Serial communicaion test can't run, it's because we need full modem COM port to run the test.2. command line with run serial communication test case with pserial.dll Option -p Followed by the Port n... 阅读全文

posted @ 2010-07-06 18:36 microsun 阅读(207) 评论(0) 推荐(0) 编辑

HIVE Registry

摘要: HIVE registry is useful and easy to use feature, to enable it, we need first add the HIVE registry feature from CATALOGinto the OSDesign file. then add registry as following listed.The following is th... 阅读全文

posted @ 2010-07-06 18:35 microsun 阅读(461) 评论(0) 推荐(0) 编辑

WINCE6.0 CETK BUG List(CETK,RTC_Real-Time_Functions tests)

摘要: When run CETK OAL Timer ->RTC_Real-Time_Functions tests.The test sets 12-31-2005 23:59:57 first and then waits 5 seconds to get a time:1-1-2006 0:0:2, but the time is set to 12-31-2005 22:59:57 by ... 阅读全文

posted @ 2010-07-06 18:35 microsun 阅读(258) 评论(0) 推荐(0) 编辑

WINCE中的一些不常用的功能

摘要: WINCE是一个面向高端市场的OS,但它同时也具备一些低端产品所需要的功能,只是大多数人用不着,在此我就列举一些,但愿对大伙能有用,我自己也做个记录,以便日后查用.1.Console over serial.这个功能不是LINUX的专例,WINCE一样支持.只需要加上Command Processor,再设置如下注册表即可:[HKEY_LOCAL_MACHINE\Drivers\Console]"... 阅读全文

posted @ 2010-07-06 18:31 microsun 阅读(251) 评论(0) 推荐(0) 编辑

Call KernelIoControl in user space in WINCE6.0

摘要: WINCE6.0 is very different with the old versions. It more likes a desktop OS.Drivers are running in kernel mode, programs run in user mode.And many functions maybe just only be used in driversno longe... 阅读全文

posted @ 2010-07-06 18:30 microsun 阅读(376) 评论(0) 推荐(0) 编辑

Funny things in CE6

摘要: A. Microsoft is there as the biggest software manufacture in the world,their software management is also well known, but some software components are conflicting. Following is some samples.1. Followin... 阅读全文

posted @ 2010-07-06 18:29 microsun 阅读(177) 评论(0) 推荐(0) 编辑

WINCE中如何快速定位问题

摘要: 跟踪一个BUG的过程中,发现一个BUG的真正原因有时甚至比找出问题的解决方法更为重要,更麻烦.WINCE是一个很庞杂的系统,很多问题一开始根本无从下手,而一旦找到问题的本质,BUG也就迎刃而解了.首先,我们需要对WINCE系统各个模块的功能,相互关系有一个基本的认识.例如,存储系统包括块设备的驱动程序,文件系统及分区管理模块.块设备驱动程序只负责读取/写入数据,对数据的内容一概不闻不问,在这个意义... 阅读全文

posted @ 2010-07-06 18:28 microsun 阅读(577) 评论(0) 推荐(0) 编辑

Mobile 不能开机的可能情况

摘要: Mobile系统与CE的一个较大不同是通常Mobile的IMAGE较大,为了节约内存空间,一般会将IMAGE放到NAND或者NOR FLASH上,BOOTLOAER只会将很小一部分(通常只有2M)加载到RAM中运行,其它部分仍然在FLASH设备上,根据需要系统会通过IMGFS文件系统将需要的模块加载到RAM中运行,这种行为更像XP。所以,Mobile不能开机的原因比CE又多了几种:1,进入OS后不... 阅读全文

posted @ 2010-07-06 18:18 microsun 阅读(552) 评论(0) 推荐(0) 编辑

导航