<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=CM-T335%3A_WEC7%3A_OSDesign_Configuration</id>
	<title>CM-T335: WEC7: OSDesign Configuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=CM-T335%3A_WEC7%3A_OSDesign_Configuration"/>
	<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=CM-T335:_WEC7:_OSDesign_Configuration&amp;action=history"/>
	<updated>2026-04-17T08:12:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://www.mediawiki.compulab.com/w/index.php?title=CM-T335:_WEC7:_OSDesign_Configuration&amp;diff=1585&amp;oldid=prev</id>
		<title>Shahal at 07:50, 23 September 2013</title>
		<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=CM-T335:_WEC7:_OSDesign_Configuration&amp;diff=1585&amp;oldid=prev"/>
		<updated>2013-09-23T07:50:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== BSP Package Installation ==&lt;br /&gt;
# Close the Platform Builder Application.&lt;br /&gt;
# Copy the CM_T335_BSP directory into \WINCE700\Platform.&lt;br /&gt;
# Copy the CM_T335 directory into \WINCE700\OSDesigns.&lt;br /&gt;
# Copy the COMMON_TI_V1 directory into \WINCE700\Platform\Common\Src\Soc.&lt;br /&gt;
# Launch VS2008 and open \WINCE700\OSDesigns\CM_T335\CM_T335.sln&lt;br /&gt;
&lt;br /&gt;
== Building the Platform Project ==&lt;br /&gt;
The CM-T335 Platform Project is used to build CompuLab’s WinCE demo image. It includes many components and is highly recommended as a starting point. The demo image size is relatively large, ~60 MB. A custom Windows CE image built for a specific application is typically much smaller.&lt;br /&gt;
&lt;br /&gt;
In order to build the CM-T335 platform, select the {{Cmd|&amp;quot;Open &amp;gt;Project/Solution&amp;quot;}} command from the File menu of the VS2008 and select the&lt;br /&gt;
{{Filename|\WINCE700\OSDesigns\CM_T335\CM_T335.sln}} file. The Platform Project and the workspace will be opened. &lt;br /&gt;
&lt;br /&gt;
Make sure that the project is configured for Release mode(the full debug or checked image are very large and it is not recommended to build it). Perform &amp;quot;Rebuild Solution&amp;quot; from the &amp;quot;Build&amp;quot; menu (alternatively you can perform {{Cmd|&amp;quot;Build-Advanced Build Commands-&amp;gt;Clean Sysgen&amp;quot;}}). The build process takes about 15-20 minutes.&lt;br /&gt;
&lt;br /&gt;
=== Build Options ===&lt;br /&gt;
* Use {{Cmd|Build-&amp;gt;Advanced Build Commands-&amp;gt;Sysgen}} when you add/remove Platform Builder components (Catalog items) to/from the project.&lt;br /&gt;
* Use {{Cmd|Build-&amp;gt;Advanced Build Commands-&amp;gt; Build Current BSP and Subprojects}} when you add/remove CompuLab BSP Platform Builder components to/from the project or perform changes in BSP files.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{warning|Do not use {{cmd|Build-&amp;gt;Advanced Build Commands-&amp;gt;Build and Sysgen}} or {{Cmd|Build-&amp;gt;Advanced Build Commands-&amp;gt;Rebuild and Clean Sysgen}} commands that compile and perform sysgen on the entire Platform Builder tree. In fact, it is recommended to permanently remove these two commands from the build menu.}}&lt;br /&gt;
&lt;br /&gt;
== Setup Target for CM-T335 Image Evaluation ==&lt;br /&gt;
Ensure that you have a serial terminal connected to the CM-T335 evaluation platform as described in [[CM-T3530: WinCE: Console Setup | Console setup]]. Also, ensure that the CM-T335 Ethernet port (connector P2 on the SB-T335) is connected to your local network.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps to setup a connection between the CM-T335 evaluation platform and Platform Builder 7.0 :&lt;br /&gt;
# In Platform Builder, go to {{Cmd| Target &amp;gt;&amp;gt; Connectivity Options}}. &amp;lt;br&amp;gt;[[Image:Target Device Connectivity OptionsVS2008.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
# In {{Parameter|Kernel Service Map}}, select {{Parameter|Ethernet}} for Download and Transport options and {{Parameter|KdStub}} for the Debugger.&lt;br /&gt;
# Press {{Parameter|Kernel Download settings}}, it will popup the following:&amp;lt;br/&amp;gt; [[Image:Ethernet Download SettingsVS2008.jpg]]&lt;br /&gt;
# Boot the target device and press &amp;quot;SPACE&amp;quot; in the device console to get Eboot main menu.&lt;br /&gt;
# In the Eboot menu:&lt;br /&gt;
#: Type &amp;quot;2&amp;quot;. The &amp;quot;Select Boot Device&amp;quot; menu appears.&lt;br /&gt;
#: Type &amp;quot;1&amp;quot; to choose LAN9115 MAC as your boot device.&lt;br /&gt;
#: Type &amp;quot;0&amp;quot; to start the download (results in a broadcast of BOOT ME messages). &lt;br /&gt;
# Platform Builder will show the target device unique name (e.g. CM-T35-195) in the &amp;quot;Active Devices&amp;quot; area.&amp;lt;br&amp;gt;[[Image:Ethernet Download SettingsAfterRecognitionVS2008.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
# Press Transport settings and select &amp;quot;Use device name from bootloader&amp;quot;. &amp;lt;br&amp;gt;[[Image:Ethernet KITL SettingsVS2008.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the connection is configured, you can download and launch the newly created WinCE image:&lt;br /&gt;
# In Platform Builder Target toolbar, select the configured device and then select &amp;quot;Target&amp;quot; &amp;gt;&amp;gt; &amp;quot;Attach Device&amp;quot;.&lt;br /&gt;
# Ensure that Eboot is ready for download (i.e. sends &amp;quot;BOOT ME&amp;quot; messages).&lt;br /&gt;
&lt;br /&gt;
== WinCE Image Customization ==&lt;br /&gt;
There are two ways to customize the Windows CE image:&lt;br /&gt;
# Recommended method: Add or remove BSP components from the demo CM_T335 project. &lt;br /&gt;
# Create a new platform project and then manually add all the necessary BSP components as described in the Platform Builder documentation. Refer to [[WEC7: OSDesign Development|Windows Embedded Compact OSDesign Development]] page.&lt;br /&gt;
=== Managing BSP components with Platform Builder Catalog ===&lt;br /&gt;
You can select the BSP components you want to include in the run-time image by using the Platform Builder Catalog GUI. In case no significant BSP modifications are required, this is the easiest way to configure the image.&lt;br /&gt;
&lt;br /&gt;
Device driver removal from the image is illustrated by the following example:&lt;br /&gt;
# Open catalog view in Platform Builder.&lt;br /&gt;
# Expand CM_T335-&amp;gt;&amp;quot;Third Party&amp;quot;-&amp;gt;BSP-&amp;gt;CM_T335_BSP:ARMV7 in &amp;quot;Catalog Items View&amp;quot;.&lt;br /&gt;
# Clear the component you want to remove. In this example the Keypad driver will not be included in the run-time image&amp;lt;br&amp;gt;[[Image:CM_T35_WinCE_PB_BSP_CustomizationVS2008.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
# Once the components selection is complete, rebuild the BSP (clean build) in order for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
=== Advanced BSP customization using batch files ===&lt;br /&gt;
Each CM_T335_BSP component can be enabled with BSP_&amp;lt;Component Name&amp;gt; environment variables.&lt;br /&gt;
The BSP_&amp;lt;Component Name&amp;gt; variables are set in Platform Builder Catalog and also can be set in {{filename|CM_T335_BSP\CM_T335_BSP.bat}} file. &lt;br /&gt;
&amp;lt;br&amp;gt;For example, in order to include the keypad driver in the BSP, set the BSP_KEYPAD variable (by choosing the Keypad Driver catalog item or set the BSP_KEYPAD variable in the .bat file).&lt;br /&gt;
{{Important| Environment variables defined in {{filename|CM_T335_BSP\CM_T335_BSP.bat}} override the variables defined in Platform Builder project}}&lt;br /&gt;
&lt;br /&gt;
=== RAM-Based Registry support ===&lt;br /&gt;
Default BSP configuration enables HIVE-based registry with lazy flushing.  In order to support a RAM-Based registry, you should:&lt;br /&gt;
* Add the “RAM-based Registry” (SYSGEN_FSREGRAM) component to your project.&lt;br /&gt;
* Add the “RAM and ROM File System” (SYSGEN_FSRAMROM) component to your project.&lt;br /&gt;
* Perform a Clean Sysgen by using {{cmd|Build-&amp;gt;Advanced Build Commands-&amp;gt;Clean Sysgen}}.&lt;br /&gt;
&lt;br /&gt;
=== Platform Debugging over Ethernet ===&lt;br /&gt;
* Choose the following platform options for the debug:&lt;br /&gt;
** Enable kernel debugger.&lt;br /&gt;
** Enable KITL.&lt;br /&gt;
* Ensure that the regular (release) options are selected:&lt;br /&gt;
** Enable Eboot Space in memory.&lt;br /&gt;
* Perform {{cmd|Build-&amp;gt;Advanced Build Commands -&amp;gt;Rebuild Current BSP and Subprojects}}.&lt;br /&gt;
{{Note|Run-time image built with the Kernel debugger and KITL dedicates CM-T335 Ethernet port to debug communication. This port cannot be used for application Ethernet traffic.}}&lt;br /&gt;
* Start the debug session as outlined in [[#Setup Target for CM-T335 Image Evaluation|Setup Target for CM-T335 Image Evaluation]].&lt;br /&gt;
&lt;br /&gt;
=== Kernel Mode vs. Application Debugging ===&lt;br /&gt;
Visual Studio 2008 provides two distinct types of debuggers.&lt;br /&gt;
&lt;br /&gt;
The kernel mode debugger allows debugging of CE device drivers and kernel mode code. The kernel debugger can set breakpoints in the code that is automatically loaded at startup. This debugger utilizes the KITL protocol and supports various types of physical transports (Ethernet, USB and serial).&lt;br /&gt;
The kernel debugger can be used to debug native code applications. It cannot be used to debug .NET managed code applications. &lt;br /&gt;
&lt;br /&gt;
The VS 2008 application debugger allows .NET managed code debugging. This debugger is activated  automatically whenever managed code runs.&lt;br /&gt;
&lt;br /&gt;
The KITL transport and kernel mode debuggers are activated, when VS 2008 is attached to a target platform for kernel mode debugging. This prevents the activation of the application debugger.  In order to run the application debugger while the kernel mode debugger is still active and connected to a target platform, you must load a separate instance of VS 2008. That instance can then connect to the target platform using the configured transport and activate its application debugger.  Break points may be set in both the application and kernel mode debuggers running in separate instances of the VS 2008. However, if a break point hits in the kernel debugger and the CE kernel remains halted for too long, the application debugger might disconnect from the target platform.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
[[WEC7: OSDesign Development | Windows CE OSDesign Development]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:WEC7|OSDesign]]&lt;br /&gt;
[[Category:CM-T335|WEC7: OSDesign Configuration]]&lt;/div&gt;</summary>
		<author><name>Shahal</name></author>
		
	</entry>
</feed>