惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 易学

Control Panel Shortcuts 基于LMS8962的跑马灯教学程序——定时器、串口及GPIO的使用 使用SerialPort及ZedGraph快速实现串口数据实时显示 基于.NET Compact Framework的实时曲线绘制控件 在Windows mobile 6.0模拟器中实现蓝牙数据采集 Firmata解析 多线程环境下的UI异步操作 WinCE下动态显示绘图控件 XPE及CE系统对比 西溪湿地(摘录) - 易学 - 博客园 当前电子鼻系统数据处理中常用的模式识别技术 各大公司样片申请指南 数字万用表集成块的代换技巧 AD855x系列在微弱信号检测中的应用 测试Live Writer能否直接发图片 Radial 射线 昆明理工大学博士、硕士论文撰写规范 “共轭变换”图像处理算法在FPGA 上实现的研究
定制带有模拟器且支持ActiveSync调试的WINCE5.0 SDK
易学 · 2009-10-31 · via 博客园 - 易学

本文来自CSDN博客,http://blog.csdn.net/Veabol/archive/2009/09/04/4520154.aspx

目的:生成供Visual Studio和EVC开发WINCE5.0应用程序的SDK,且带有模拟器和直接连接设备的两种调试功能。

软件环境:WINCE5.0 Platform Builder

以下内容针对CPU为ARMV4I,其它CPU过程相似

一、除给自己设备build OS的BSP之后还需要另外一个BSP:"DeviceEmulatorBSP.msi",这是微软提供的ARMV4I模拟器BSP,可以到官方网站上去下载。

二、 build一个模拟器镜像:

1、安装DeviceEmulatorBSP,安装完成后WINCE500\PLATFORM\Deviceemulator目录下会有一个Using the CE DeviceEmulator.rtf文件,其中详细介绍了如何创建带模拟器的SDK。

2、运行Platform Builder,新建一个Platform,我用的名字是Emulator。BSP选择Microsoft DeviceEmulator:ARMV4I,Design Template选择Mobile Handheld,Application & Media随意,Networking & Communications只选择Local Area Network(LAN)->Wired Local Area Network,其余都去掉。最后完成向导。

3. 如果要开发托管程序,添加Catalog View的Core OS->Windows CE Devices->Applications – End User->CAB File Installer/Uninstaller。

4. 添加ActiveSync(可选),在Catalog View的Core OS->Windows CE Devices->Applications – End User目录下。

5. 添加存储支持支持。Partition Driver和FAT。

  Partition Driver在Core OS->>Windows CE Devices->File Systems and Data Store-> Storage Manager->Partition Driver

  FAT在Core OS->Windows CE Devices->File Systems and Data Store->Storage Manager->FAT File System。

6. 打开菜单Platform->Setting,这里有三个地方要设置:

  1) Build Options选项卡下,去掉Enable CE Target Control Support和Enable KITL;(如果不去掉可能会导致模拟器黑屏)

  2) Environment选项卡,添加环境变量CE_MODULES_SERIAL=1,这是用来将DMA添加进来;(这十分重要)

  3) Locale选项卡,用来添加你想要的语言支持,可改可不改。

7. 视情况添加其他所需的组件。

9. BuildOS->Sysgen。

最终生成nk.bin

三、build自己的BSP下的OS镜像,步骤基本同(二)(假定为MyPlatform)

四、生成SDK(参考Using the CE DeviceEmulator.rtf)

1. 运行SDK Wizard(Platform->SDK->New SDK),填写必要的信息之后,把支持的开发工具都勾上,完成。

2. 用记事本等工具打开\WINCE500\PBWorkspaces\MyPlatform\ExportSDK.sdkcfg

3.找到<PropertyBag NAME="DeviceEmulation">一段,添加如下信息:

<PropertyBag NAME="DeviceEmulation">

<Property NAME="Default Image">1</Property>

<PropertyBag NAME="1">

<Property NAME="ImageName">My Emulator</Property> ;(在VS上显示的模拟器的名字)

<Property NAME="VMID">{6CB9C6E3-E576-4580-BC1E-ADED62B97FFB}</Property>

<Property NAME="Default Skin"/>

<Property NAME="Height">400</Property>

<Property NAME="Width">240</Property>

<Property NAME="BitDepth">16</Property>

<Property NAME="Memory">128</Property>

<Property NAME="Bin Dest">Emulator\NK.bin</Property>

<Property NAME="Fixed Screen">1</Property>

<Property NAME="CpuName">ARMV4I</Property>

<Property NAME="DPIX">96</Property>

<Property NAME="DPIY">96</Property>

<Property NAME="SupportRotation">0</Property>

<Property NAME="Enabled">1</Property>

<Property NAME="Bin Path"></Property>

<Property NAME="Ethernet">1</Property>

<Property NAME="Ports">1</Property>

<Property NAME="AdditionalParameters">

</Property>

<PropertyBag NAME="Skins"/>

</PropertyBag>

</PropertyBag>

根据文档的说明修改相应的模拟器屏幕尺寸等信息。并添加如下内容:

<PropertyBag NAME="Added Files">

<PropertyBag NAME="{3B388597-0924-4102-ADFA-2519D2C3E11B}">

<Property NAME="Source">C:\WINCE500\PBWorkspaces\Emulator\Addfile</Property>

<Property NAME="Destination">Emulation</Property>

<Property NAME="Subfolders">0</Property>

</PropertyBag>

</PropertyBag>

C:\WINCE500\PBWorkspaces\Emulator\Addfile此路径是自己建立的,其中存放Emulator的nk.bin(此处仅放这一文件,否则生成SDK时会将这一目录下的内容全部压缩进去)完成后保存文件。

4.Platform->SDK->Build SDK 等待完成。

五、安装SDK及配置模拟器(此部分参考Using the CE DeviceEmulator.rtf即可)

六、假设无法连接模拟器,关掉VS,删除C:\Documents and Settings\xxxxxx\Local Settings\Application Data\Microsoft\CoreCon\1.0下的文件(建议先备份一下)再打开VS并重新配置模拟器就可以连接。