打开目录窗口,选中需要添加的驱动,如图8.2-23所示,单击鼠标右键选择“Add to OS Design”即可将驱动添加到系统中。
Catalog->Core OS->Windows CE devices Core OSServices Display Support
Catalog->Core OS->Windows CE devices Core OSSerial Port Support
Catalog->Core OS->Windows CE devices Core OS USB Host Support USB Human Input Device(HID)Class Driver USB HID Keyboard and Mouse
图8.2-23 添加BSP驱动界面
Catalog->Core OS->Windows CE devices Core OS USB Host Support USBStorage Class Driver
Catalog->Core OS->Windows CE devices Core OSServicesGraphics and Multimedia Technologies
Catalog->Core OS->Device Drivers USB Function USB Function Clients Mass Storage
Catalog->Core OS->Device Drivers USB Function USB Function Clients Serial
Catalog->Third Party ->BSPs->AT91SAM9261EK->AT91SAM926x Processors->AT91SAM9261 support
Catalog->Third Party ->BSPs->AT91SAM9261EK Boot Mode Boot from SPI DataFlash
Catalog->Third Party ->BSPs->AT91SAM9261EK->Device Drivers->Display->LCDC
Catalog->Third Party ->BSPs->AT91SAM9261EK->Device Drivers->SPI->SPI Driver(www.xing528.com)
Catalog ->Third Party ->BSPs->AT91SAM9261EK->Device Drivers->TouchScreen->TouchScreen
Catalog->Third Party ->BSPs->AT91SAM9261EK->Device Drivers->USBFunction->USB Function Bus Drivers->USB Function Driver
Catalog->Third Party ->BSPs->AT91SAM9261EK->Device Drivers->USB Host->USB Host Controllers->USB Host
Catalog ->Third Party ->BSPs->AT91SAM9261EK->Storage Drivers->MSFlash Drivers->Nand Flash
添加完驱动后开始编译,选择“Build OS->Sysgen”,如图8.2-24所示,开始编译;编译完成后弹出界面如图8.2-25所示。
编译完成后在目录“C:\\WINCE500\\PBWorkspaces\\iwhr9261\\Rel Dir\\AT91SAM9261EK_ARMV4I_Release”下 生 成NK.nb0、FIRSTBOOT.nb0、EBOOT.nb0和NK.nb0,目录内容如图8.2-26所示。
图8.2-24 编译映像
图8.2-25 编译成界面
图8.2-26 生成映像
其中BOOTRAM和EBOOT存储在AT45DB321C上的启动代码,是系统上电后进行一部分硬件初始化后将CPU的控制权交给操作系统的核心,所起的作用与现在PC机中的BIOS作用相同,是32位嵌入式数据采集器操作系统的启动代码,需要使用工具软件SAM-BA烧录到Data Flash中。
NK是操作系统映像,即为Windows CE 5.0的系统映像,该系统定制需要通过Platform Builder来完成,最后通过Platform Builder编译生成最终映像。
免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。