Icop VDX-6318 Getting Started Manual Download Page 24

 

VDX-6318 Windows Embedded Compact 7 - Getting Started Guide 

Windows Embedded Compact 7 Getting Started Rev 2.00 

Page 24 

 

Part 5 – 

Configure and Customize Compact 7 OS Design

 

At this point, with help from the 

OS Design Wizard

, the initial workspace for the OS design is created 

using the 

Industrial Controller

 design template along with the 

ICOP_VDX6318_70B

 BSP and 

components selected during the 

OS Design Wizard

 steps. 

The following project folder and sub-folders are created for the OS design, under the main Compact 7 
OS design project directory: 

 

C:\WINCE700\OSDesigns\VDX6318\ 

 

This is the folder for the 

VDX6318

 Solution.  VS2008 supports different project types.  A solution 

provides a centralized work space to keep different project types supporting the same solution 
in one location. 

For example, the 

VDX6318

 solution may include the “

VDX6318

 OS design”, “Visual Basic 

managed code application”, “Visual C# managed code application” and “Visual C++ native code 
application”.   

 

C:\WINCE700\OSDesigns\VDX6318\VDX6318\ 
This is the folder for the 

VDX6318

 OS design project. 

The VS2008 IDE should look similar to the screen as shown in Figure 15. 

 

Fig. 15  - 

VS2008 IDE after OS Design Wizard 

Customize the OS Design – Add Additional Components 

The OS design can be further customized with the following: 

 

Add component(s) to the OS design. 

 

Remove component(s) from the OS design. 

Summary of Contents for VDX-6318

Page 1: ...VDX 6318 Windows Embedded Compact 7 Getting Started Guide Samuel Phung Windows Embedded MVP ICOP Technology Inc Screen captured with Snagit ...

Page 2: ... 2 Development Environment Connectivity 13 Ethernet Connectivity 13 Develop Compact 7 OS Run time Image OS Design 13 Develop Compact 7 Applications with Visual Studio 13 Serial Debug Connectivity 13 Development Environment Setup with DHCP 14 Using Wireless Access Point Router 14 Development Environment Setup with Static IP 15 Local Area Network without DHCP Service 15 Direct Connection using Cross...

Page 3: ...AutoLaunch Component 32 Adding Registry Entries to OS Design 33 Static IP Address 33 Other Compact 7 Components 34 Part 6 Build and Generate Compact 7 OS Run time Image 35 The Build Process Starting 35 The Build Process Completed 35 Part 7 Download Compact 7 OS Run time to Target Device 37 Target Device Preparation 37 Create Connectivity Profile for a Target Device 38 Associate VDX 6318 to MyTarge...

Page 4: ...t for Windows Embedded 73 Congratulations You ve completed all the steps 74 Appendix A Development station Setup with DHCP 75 Connecting to Local Area Network with DHCP 75 Using Wireless Access Point Router 75 Capturing Serial Debug Messages 76 Appendix B Development station Setup with Static IP 77 Connecting to Ethernet Hub or Switch without DHCP 77 Direct Connection with Cross Over RJ 45 Etherne...

Page 5: ...J Recover Jump Start Kit s Original Files 102 VDX 6318 MSJK Preconfigured Files 102 Recover Files with DiskPrep 102 Appendix K VDX 6318 System BIOS 104 Appendix L Using Watchdog Timer 106 Using WDT0 106 Using WDT1 108 Watchdog Timer DLL WDT dll 109 Appendix M Using GPIO 110 Using the GPIO 110 Windows Embedded CE Sample Codes 110 Configure GPIO to Output Mode 111 Configure GPIO to Input Mode 112 GP...

Page 6: ...load the application to target device for testing and debugging Using Kernel Independent Transport Layer KITL and Remote Tools to debug Compact 7 OS run time on a target device While it s possible to use a Virtual PC as the target device and work through similar exercises using a real hardware provides a practical environment and helps improve the learning process The VDX 6318 Single Board Compute...

Page 7: ...number of other newly supported protocols and services Combining large pool of production quality BSPs device drivers programming libraries and effective development tools Compact 7 provides an ideal rapid application development environment to help create the next generation of smart media rich connected and service oriented devices For more information about Compact 7 visit http www microsoft co...

Page 8: ...08 IDE provides a centralized development environment to develop broad range of applications such as Windows Form application Win32 ATL and MFC project DLL ActiveX control ASP NET Web service Windows service SQL Server project Console application Class libraries Windows Embedded Compact and Mobile Smart Device application Windows Embedded Compact OS design More Develop Compact 7 Devices Typical De...

Page 9: ...e application runs on the target device Silverlight for Windows Embedded Silverlight is a user interface UI development framework designed to separate the graphical presentation from the programming logic Silverlight enables graphic designer to design the graphical presentation for the application without the need to understanding the programming logic and provides a structured system for the appl...

Page 10: ...started guide Fig 1 ICOP_VDX6318_70B BSP for Compact 7 In addition to the device drivers the following DLLs are included as part of the BSP to help developers access the SBC s GPIOs and Watchdog timers GPIO dll To access the GPIOs WDT dll To access the Watchdog timers When developing an OS design using the ICOP_VDX6318_70B BSP these DLLs are included to the OS design and compile into the OS run ti...

Page 11: ...an be a device driver BSP programming library application utility configuration settings fonts etc The OS design is made up by a group of components Component Catalog The component catalog lists all of the components provided by Platform Builder and installed 3 rd party components The component catalog provides the interface to add components to the OS design project and remove components from the...

Page 12: ...FORM The above table lists a small sampling of variables used in the Compact 7 development environment For more information about these environment variables visit the following URLs About Environment Variables http msdn microsoft com en us library gg154986 aspx BSP Environment Variables http msdn microsoft com en us library ee478674 aspx IMG Environment Variables http msdn microsoft com en us lib...

Page 13: ... While it s possible to use the serial port and other connectivity Ethernet connection is efficient and provides the bandwidth to download Compact 7 OS run time image quickly Comparing to a serial connection where the transfer rate is in the hundred kilo byte KB range Ethernet connection s transfer rate is in the mega byte MB range Develop Compact 7 Applications with Visual Studio The VS2008 IDE s...

Page 14: ...may require the target device s MAC address to be added to the authorized device list to be serviced by the DHCP server Using Wireless Access Point Router When using a wireless access point router with multiple Ethernet ports connecting both the development station and target device directly to the Ethernet port on the wireless access point router may be problematic with certain model of access po...

Page 15: ...k without DHCP Direct Connection using Cross Over RJ 45 Ethernet Cable Connectivity can be established by attaching the target device to the development station directly using a cross over RJ 45 Ethernet cable as shown in Figure 4 Development Workstation Null RS 232 Serial Modem Cable Cross over RJ 45 Ethernet cable Target Device Fig 4 Direct connection with cross over RJ 45 Ethernet cable Static ...

Page 16: ...e is available for download from Microsoft at the following URL http www microsoft com windowsembedded en us downloads download windows embedded compact ce aspx Visual Studio 2008 update for Windows Embedded Compact 7 VS2008 update for Compact 7 is available for download from Microsoft at the following URL http www microsoft com download en details aspx id 11935 ICOP_VDX6318_70B_BSP msi This BSP i...

Page 17: ... components used for the exercises in this guide assume all software components are installed to the default directory When the software components are installed to a different directory these 3 rd party components may not function as expected Board Support Package Installation VS2008 and Compact 7 must be installed prior to installing the Board Support Package BSP The ICOP_VDX6318_70B BSP is prov...

Page 18: ..._v300_Compact7 under the Third Party Embedded101 folder CoreCon Connectivity Component In the previous version of the jump start kit the CoreCon component was provided as a separate component For the exercise in this getting started guide the CoreCon component is a sub component to the AutoLaunch component AutoLaunch_v300_Compact7 Autolaunch CoreCon Note Files for the CoreCon component are install...

Page 19: ...t Platform Builder is one of the available project types to develop Compact 7 OS design project To begin launch VS2008 From the VS2008 menu select File New Project to bring up the new project screen as shown in Figure 7 Fig 7 VS2008 New Project Platform Builder 2008 OS design From the New Project screen s left pane click to highlight the Platform Builder option From the right pane click to highlig...

Page 20: ...selection step the OS Design Wizard provides the options to select one or more BSP for the new project from the list of available BSPs All of the installed BSPs including BSPs from Microsoft and third party companies are listed on the Create an OS Design Board Support Packages screen as shown in Figure 9 Fig 9 OS design Wizard Select BSP From the Select one or more BSPs pane select the ICOP_VDX631...

Page 21: ... Wizard Design Templates Expand the Enterprise Device node and select the Industrial Controller template Click Next to continue and bring up the Create an OS Design Application Media screen OS Design Wizard Applications Media In the applications media selection step the OS Design Wizard provides the options to select and include the NET Compact Framework Internet Explorer Network User Interface an...

Page 22: ...g Communication screen OS Design Wizard Networking Communications In the networking communication selection step the OS Design Wizard provides the options to select communication networking and security components as shown in Figure 12 Fig 12 OS Design Wizard Networking Communications For the networking communication selection step keep the default selection Click Next to continue and bring up the...

Page 23: ...n Wizard step the Catalog Item Notification screen is raised with security warning to warn one or more of the components included in the OS design may pose security risk as shown in Figure 14 Fig 14 Catalog Item Notification Security Warning Click Acknowledge to acknowledge the warning and close the warning screen At the completion of the OS Design wizard step the initial project workspace for the...

Page 24: ...318 This is the folder for the VDX6318 Solution VS2008 supports different project types A solution provides a centralized work space to keep different project types supporting the same solution in one location For example the VDX6318 solution may include the VDX6318 OS design Visual Basic managed code application Visual C managed code application and Visual C native code application C WINCE700 OSD...

Page 25: ... the Catalog Items View window expand the component nodes and review the components selected during OS Design Wizard steps o Component with a green check mark to the left indicates it was selected during the OS Design Wizard steps or manually added after the OS Design Wizard steps o Component with a solid green square to the left indicates the component is included to the OS design as the result o...

Page 26: ...e The Hive based registry component is needed to save registry settings to non volatile flash storage between power reset Z9s XGI Display driver Note Device driver to support the Z9s display controller VGA 1024x768x16 60Hz Note The display setting is selected arbitrary for this HOL guide You can select a different display setting supported by the display monitor you are working with R6040 Ethernet...

Page 27: ...efault the SBC s 2nd serial port is configured as follow COM2 IRQ3 2F8h 3rd Serial Port Note This component set the BSP_SERIAL3 environment variable to include serial port driver to the OS run time to support COM3 the third serial port By default the SBC s 3rd serial port is configured as follow COM3 IRQ10 3E8h 4th Serial Port Note This component set the BSP_SERIAL4 environment variable to include...

Page 28: ...ndows Embedded Compact Communication Services and Networking Servers node select and include the FTP server component to the OS design FTP Server Note The FTP server provides a convenience mechanism to upload file s to the target device and download file s from the target device using an FTP client In the later section the following registry entries will be added to the project to enable the FTP s...

Page 29: ...isplay application to the OS design and include the following registry entries to launch the Remote Display application during startup HKEY_LOCAL_MACHINE Startup Process1 cerdisp c Process1Delay dword 00002710 Customize the OS Design Locate Component by Search The VS2008 IDE provides the search function to locate Compact 7 component from the catalog by searching the catalog using key word or parti...

Page 30: ... not able to output DEBUGMSG An image built in debug mode is not optimized and include additional resource to support debugging However a debug mode image without optimization can be difficult to debug certain type of timing and performance related problems An image built in Checked mode Checked mode is new to Compact 7 a hybrid between the debug and release modes is built with compiler optimizati...

Page 31: ... in checked debug and release modes Customize the OS Design Build Options The OS design can be further customized by editing the project s build options From the VS2008 menu select Project VDX6318 Properties to bring up the VDX6318 Property Pages screen as shown in Figure 21 Fig 21 OS design Property Build Options From the left pane expand the Configuration Properties node and select Build Options...

Page 32: ...word 1 AllowAnonymousUpload dword 1 AllowAnonymousVroots dword 1 DefaultDir Registry Entries for the Telnet Server Component By default the Telnet server is not configured to launch during startup For the exercise in this guide the following registry entries are added to configure the Telnet server to launch during startup and allow anonymous login HKEY_LOCAL_MACHINE COMM TELNETD IsEnabled dword 1...

Page 33: ... on Source to view the OSDesign reg registry file in source code format Scroll to the end of the file and add the following entries to OSDesign reg Registry entries for the FTP server component HKEY_LOCAL_MACHINE COMM FTPD IsEnabled dword 1 UseAuthentication dword 0 UserList AllowAnonymous dword 1 AllowAnonymousUpload dword 1 AllowAnonymousVroots dword 1 DefaultDir Registry entries for the Telnet ...

Page 34: ...oad and download services The RAS Server PPTP Server Incoming component can be added to provide inbound dialup network connection via the serial port The following table lists the SBC s I O peripherals and their associated Compact 7 device drivers and support components SBC Peripherals Compact 7 Drivers Support Components Z9s display Display driver Driver included with BSP USB Audio Audio driver D...

Page 35: ...m the VS2008 menu with the VDX6318 OS design project active select Build Advanced Build Commands Sysgen blddemo q to build and generate an OS run time image from the OS design Fig 22 VS2008 IDE showing the OS design being built Depending on the development station s processor speed and available system resources the build process may take anywhere from 10 to well over 30 minutes During the build p...

Page 36: ...m With a successful build a Compact 7 OS run time image file NK BIN is generated in the following build release directories For OS design configured to generate an image in checked mode WINCE700 OSDesigns VDX6318 VDX6318 RelDir ICOP_VDX6318_70B_x86_Checked For OS design configured to generate an image in debug mode WINCE700 OSDesigns VDX6318 VDX6318 RelDir ICOP_VDX6318_70B_x86_Debug For OS design ...

Page 37: ...e static IP addresses Note Refer to appendix A and B for more information about connectivity for downloading OS run time image from the development station to target device The exercises in this guide are created with both the development station and target device connected to the same LAN with DHCP service to provide IP addresses dynamically Target Device Preparation The target device needs to be...

Page 38: ...te the profile to the target device in use In this section you will work through the steps to create a target device connectivity profile and associate this profile with the SBC as the target device for the exercise in this guide Note The exercise in this section is applicable to development environment using dynamic IP addresses with DHCP and development environment using static IP addresses Cont...

Page 39: ...s the new device profile MyTargetDevice as shown in Figure 26 Fig 26 Target Device Connectivity Options MyTargetDevice created Select Ethernet for the Download option Select Ethernet for the Transport option Select KdStub for the Debugger option Click Apply to continue and save the settings Associate VDX 6318 to MyTargetDevice Connectivity Profile In this section you will work through the steps to...

Page 40: ...BOOTME messages from the target device s Ethernet bootloader EBOOT BIN Work through the following steps to associate the SBC to this device profile Apply power to the target device AS the target device power up and display the Windows Embedded Compact 7 splash screen press 1 to launch the Ethernet bootloader EBOOT BIN As the EBOOT BIN Ethernet bootloader is launched it broadcasts a series of BOOTM...

Page 41: ... network segment booting up and send bootme requests at about the same time multiple device IDs will be listed in the Active Devices windows To identify the target device you are working with make sure it s the only target device booting and sending the bootme request After the device ID is detected and accepted in the Active target devices step the same device ID is now shown on the Target Device...

Page 42: ... initiate the download process and bring up the Device Status screen as shown in Figure 31 Fig 31 Waiting for bootme request from target device Power on or reset power the target device As the Compact 7 splash screen is showing press 1 to launch the Ethernet bootloader EBOOT BIN before the 10 seconds delay is timed out As the EBOOT BIN launches it sends a series of BOOTME messages to the developme...

Page 43: ...edded Compact 7 desktop from the target device Deploy Compact 7 OS Run time Image to Target Device In the previous step when the Compact 7 OS image is downloaded and launched on the target device the image is placed directly to the device s memory RAM and is not saved to the device s local storage After going through power reset the downloaded image will be lost To deploy a Compact 7 OS run time i...

Page 44: ...ete the boot process There are multiple methods to deploy the NK bin OS run time image file to the target device s local storage To deploy a Compact 7 OS run time image to the target device s local storage the OS design must be configured with the following Generate OS run time image in release mode Disable the KITL build option and other build option configured to support debugging Refer to appen...

Page 45: ...te and Configure Compact 7 SDK With the VDX6318 OS design project active from the VS2008 menu select Project Add New SDK to bring up the SDK Property Pages screen as shown in Figure 34 Fig 34 New SDK Property Page Enter Vortex86DX_SDK_Compact7 as SDK name Enter Windows Embedded Compact 7 SDK for Vortex86DX Hardware as product name Fill in the company name and company website information From the l...

Page 46: ...and enable support for both the Native and Managed development as shown in Figure 36 Fig 36 SDK Property Page Click Apply follow by OK to complete configuring the new SDK To make changes to the SDK before compiling from the VS2008 IDE s Solution Explorer tab expand the SDKs folder right click on Vortex86DX_SDK_Compact7 and select Properties to bring up the SDK Properties Pages as shown in Figure 3...

Page 47: ...s requires library files generated during the OS design build process From VS2008 menu select Build Build All SDKs to build and generate the installation package for the SDK After the build process is completed the Vortex86DX_SDK_Compact7 msi installation package is generated in the following folder WINCE700 OSDesigns VDX6318 VDX6318 SDKs SDK1 MSI After the Vortex86DX_SDK_Compact7 msi installation...

Page 48: ... earlier exercise installed to the development station Create a New Native Code Application Project From the VS2008 menu select File New Project to bring up the New Project screen as shown in Figure 38 Fig 38 New project wizard On the New Project screen s left pane expand the Visual C node and select Smart Device as the project type On the right pane select Win32 Smart Device Project Enter VS2008_...

Page 49: ...on step as shown in Figure 40 Fig 40 Win32 smart device project wizard SDK selection From the Selected SDKs pane on the right click to highlight the Windows Mobile 5 0 Pocket PC SDK entry Click the single left pointing arrow located to the left of the Selected SDKs pane to remove the Windows Mobile 5 0 Pocket PC SDK entry From the Installed SDKs pane on the left click to highlight the Vortex86DX_S...

Page 50: ...lected SDKs pane as shown in Figure 41 Fig 41 Win32 smart device project wizard SDK selection After the Vortex86DX_SDK_Compact7 SDK is added to the Selected SDKs pane click Next to continue and bring up the Project Settings step as shown in Figure 42 Fig 42 Win32 smart device project wizard Project settings Keep the default selection to create a Windows application Click Finish to complete the wiz...

Page 51: ... in Figure 43 Fig 43 VS2008 IDE with VS2008_Win32_HelloWorld project active Work through the following steps to add codes to the VS2008_Win32_HelloWorld project From the VS2008 IDE s Solution Explorer tab double click on the VS2008_Win32_HelloWorld cpp file in the Source Files folder to view and edit the code in the code editor window Replace the codes in the case WM_PAINT statement section with t...

Page 52: ... 0 Target wce400 There are multiple sub folders with names corresponding to the CPU architectures under the above directory Each of these folders contains CoreCon component files to support the corresponding CPU family These CoreCon files are installed to the development station during the Visual Studio 2008 installation process Note The SBC is built with x86 CPU architecture The CoreCon files nee...

Page 53: ... to find out the IP address With Compact 7 running on the target device from the Compact 7 desktop click on Start Run and launch the CMD command to launch the command console window as shown in Figure 45 Fig 45 Compact 7 desktop on target device Click OK to continue and launch the command console window From the command console window launch the IPConfig command to retrieve the target device s IP ...

Page 54: ...pact 7 target device you need to configure the device connectivity settings for the VS2008 development station with the target device s IP address Work through the following steps to configure the device connectivity settings From the VS2008 menu select Tools Options to bring up the Options screen as shown in Figure 48 Fig 48 VS2008 Options Expand the Device Tools node on the left pane and click t...

Page 55: ...lick Properties to bring up the Vortex86DX_SDK_Compact7 x86 Device Properties screen as shown in Figure 50 Fig 50 Vortex86DX_SDK_Compact7 x86 Device Properties From the Vortex86DX_SDK_Compact7 x86 Device Properties screen click Configure to bring up the Configure TCP IP Transport screen as shown in Figure 51 Fig 51 Configure TCP IP Transport ...

Page 56: ... continue and close the Options screen Establish Connectivity to Compact 7 Target Device To initiate connectivity to the target device select Tools Connect to Device from the VS2008 menu to bring up the Connect to Device screen as shown in Figure 52 Fig 52 Connect to Device If it s not already selected select Vortex86DX_SDK_Compact7 from the Platform selection Click Connect to establish connectivi...

Page 57: ...et device From the VS2008 menu select Debug Start Debugging to initiate the process to download the application to the device As the VS2008_Win32_HelloWorld application is downloaded and launched on the target device the application screen is shown on the target device s desktop as shown in Figure 54 Fig 54 VS2008_Win32_HelloWorld running on the target device This concludes the exercise to create ...

Page 58: ... On the left pane expand the Other Languages Visual C node and select Smart Device as the project type On the right pane select Smart Device Project Enter VS2008_CSharp_HelloWorld as the project name Enter C Lab as the location for the project Note You can choose a different folder for the project other than C Lab Click OK to continue and bring up the Add New Smart Device Project screen From the A...

Page 59: ... step to create a new smart device project After the new project wizard step is completed the initial VS2008_CSharp_HelloWorld project workspace is created in the following folder C Lab VS2008_CSharp_HelloWorld The initial application project is created with a blank form Form1 cs and a blank module Program cs as shown in Figure 57 Fig 57 Visual Studio 2008 IDE with new project ...

Page 60: ...Add a button control to Form1 change the name to buttonHelloWorld change the caption to Hello World and place buttonHelloWorld to the center of Form1 just below textHelloWorld Double click on buttonHelloWorld Hello World button to bring up the source code window showing the buttonHelloWorld_Click event handler Add the following codes to the buttonHelloWorld_Click event handler private void buttonH...

Page 61: ... from the previous VS2008 native code exercise using the same instance of Compact 7 device the device connectivity settings are already configured Establish Connectivity to Compact 7 Target Device To initiate connectivity to the target device from the VS2008 menu select Tools Connect to Device to bring up the Connect to Device screen as shown in Figure 59 Fig 59 Connect to Device If it s not alrea...

Page 62: ...n Figure 61 Fig 61 Deploy the VS2008_CSharp_HelloWorld application From the Deploy VS2008_CSharp_HelloWorld screen select Vortex86DX_SDK_Compact7 x86 Device and click Deploy to download the application to the target device As you click Deploy to download the application the Microsoft Visual Studio screen is raised to indicate there are deployment errors as shown in Figure 62 Fig 62 Application dep...

Page 63: ... an error message during the process to download the application to the target device as shown in Figure 62 Work through the following steps to change the VS2008_CSharp_HelloWorld project s configuration to eliminate this error message From the VS2008 menu select Project VS2008_CSharp_HelloWorld Properties to bring up the VS2008_CSharp_HelloWorld properties screen as shown in Figure 64 Fig 64 VS20...

Page 64: ...ion executes on the target device There are two options to download and launch the application to the target device From the VS2008 menu select Debug Start Debugging From the VS2008 menu select Debug Start Without Debugging To work through the exercise in this section the application must be downloaded to the target device by selecting the Debug Start Debugging option With the VS2008_CSharp_HelloW...

Page 65: ...andler As the code in the event buttonHelloWorld_Click executes it halt at the breakpoint you set in the earlier step On the development station s VS2008 IDE the breakpoint highlight color changed from Red to yellow indicating the program is halt at this line of code as shown in Figure 66 Fig 66 Program execution halt at the breakpoint The application running on the target device is halt on the fo...

Page 66: ...ge on the VS2008_CSharp_HelloWorld application is changed to 2nd Hello World as shown in Figure 68 Fig 68 Compact 7 application halt at the breakpoint The F11 key is used to step through the code one line at a time To continue the code execution press the F5 key from the VS2008 IDE From the VS2008_CSharp_HelloWorld application screen clicking on the Hello World button again will execute the code a...

Page 67: ...screen From the VDX6318 Property Pages screen s left pane expand the Configuration Properties node and click on the Build Options node to bring up the Build options selection window on right as shown in Figure 69 Fig 69 VDX6318 Property Pages Build options On the right pane double click on the Enable KITL option to enable this build option set to Yes Click Apply follow by OK to save the setting an...

Page 68: ...itional information is useful for debugging and can help identify potential problems Debug output message can be copied to a text file to be analyze in detail Refer to Compact 7 documentation for more information about various debug and troubleshooting resources available In the following section you will work through a series of exercise using remote tools from the VS2008 IDE to access the Compac...

Page 69: ...ce to connect to the remote tool Using the Remote Process Viewer you can view all of the running processes and each process associated threads and modules on the target device You can use the Remote Process Viewer to terminate running process Try the following exercise Launch Control Panel from the target device s Compact 7 desktop From the Remote Process Viewer remote tools running on the develop...

Page 70: ...tool to view registry entries and check whether the registry entries for device drivers and applications included to the OS design are compiled as part of the OS run time image as intended Continuing from the previous section with the KITL enabled OS image downloaded to the target device work through the following steps to launch the Remote Registry Editor From the VS2008 menu select Tools Remote ...

Page 71: ...ng the following System summary o OS information o Processor information o System time and time zone o Etc Memory Storage Drivers Owner Info Etc Continuing from the previous section with the KITL enabled OS image downloaded to the target device work through the following steps to launch the Remote System Information tool From the VS2008 menu select Tools Remote Tools System Information to launch t...

Page 72: ...Windows Embedded Compact 7 Getting Started Guide Windows Embedded Compact 7 Getting Started Rev 2 00 Page 72 Fig 76 System Information remote tool You can use similar process to check out the other remote tools ...

Page 73: ...rm Builder Subproject wizard This wizard is provided to convert Expression Blend 3 XAML code into a Compact 7 application subproject o Update Silverlight for Windows Embedded Project wizard This wizard is provided to update the codes in a Compact 7 application subproject initially converted from a SWE Expression Blend 3 XAML code project when the source project the Expression Blend XAML code proje...

Page 74: ...e are advance subjects not covered in this guide which you need to pursue to further your knowledge Every embedded development project involves different hardware and application scenario When starting an embedded development project it s important to select the appropriate hardware platform to establish an effective and efficient development environment with all of the needed components Here are ...

Page 75: ... to your development station s firewall or security policy configured for your company s LAN Using Wireless Access Point Router When using a wireless access point router with multiple Ethernet ports connecting both the development station and target device directly to the Ethernet port on the wireless access point router may be problematic with certain model of the wireless access point and preven...

Page 76: ...rial port With a null RS 232 serial modem cable connected serial debug messages from the target device can be viewed using a terminal emulation program such as Hyper Terminal or similar program configured to 38400 8 N 1 Note If you are using Windows Vista or Windows 7 workstations Hyper Terminal is no longer available as part of the OS The Hyper Terminal application available as part of the Window...

Page 77: ...hernet Hub Switch without DHCP Direct Connection with Cross Over RJ 45 Ethernet Cable In this scenario the target device is attached directly to the development station using a cross over RJ 45 Ethernet cable and require proper static IP addresses configuration to establish connectivity Development Workstation Null RS 232 Serial Modem Cable Cross over RJ 45 Ethernet cable Target Device Fig B2 Dire...

Page 78: ...evice a null RS 232 serial modem cable is connected between the target device s COM1 and an available serial port on the development station Note The target device s COM1 is used by default to send out serial debug messages It s possible to configure the target device to send serial debug messages using a different serial port With a null RS 232 serial modem cable connected serial debug messages f...

Page 79: ... Compact 7 CoreCon for Windows Embedded Compact CE http corecon4ce codeplex com The project provides a Platform Builder component to include the necessary CoreCon files needed to establish connectivity between the target device and Visual Studio development station to deploy application to the target device for testing and debugging Components for CE 6 0 and Compact 7 are available for download Wi...

Page 80: ... from NET code Open SSH for Windows CE http cessh codeplex com This shared source project provides the resources needed to remotely access a Windows CE device in a secure manner using the SSH protocol It helps execute remote commands on the device It also supports tunneling forwarding arbitrary TCP ports and it can transfer files using the associated SFTP or SCP protocols Windows CE Wifi Driver fo...

Page 81: ... http blogs msdn com b obloch http blogs msdn com b ce_base Hardware Reference Information http www embeddedpc net VDX6318MSJK The VDX 6318 SBC is designed with an 800 MHz Vortex86DX System On Chip built with 256MB DDR2 system memory and other common computer interfaces http www vortex86dx com Vortex86DX System On Chip information site http www icoptech com Other embedded hardware from ICOP ...

Page 82: ... connectivity to broad range of external devices and systems with endless application possibility The VDX 6318 SBC supports multiple boot options and able to boot from the following resources IDE storage device including IDE flash and hard disk USB floppy USB storage USB CD DVD ROM Onboard SPI flash Boot from Network via PXE Board Support Package is available to support Windows Embedded CE 5 0 6 0...

Page 83: ...VDX 6318 Windows Embedded Compact 7 Getting Started Guide Windows Embedded Compact 7 Getting Started Rev 2 00 Page 83 VDX 6318 Dimension VDX 6318 SBC I O connectors ...

Page 84: ...e 3 x RS 232 1 x RS 232 422 485 32 bit GPIO USB 4 x USB 2 0 host interfaces USB 3 is used by the onboard USB audio Display Chipset XGI Z9s Display Memory 32MB DDR2 memory Display Resolution Up to 1600 x 1200 Support VGA and LCD Storage Support IDE Hard Disk and bootable flash Onboard 4MB SPI flash Audio Chipset CM119 Audio Interface Mic in Line out Ethernet Chipset 10 100M R6040 integrated in Vort...

Page 85: ...2 54mm pitch 5 pins J11 COM1 TTL GPIO P4 PWMx8 5 x 2 Box Header 2 0mm pitch 10 pins J12 COM2 RS 232 422 485 5 x 2 Box Header 2 0mm pitch 10 pins J13 GPIO Port 0 1 PWMx16 10 x 2 Box Header 2 0mm pitch 20 pins J16 Reset 2 x 1 Header 2 54mm pitch 2 pins J17 Power Connector 2 x 1 Terminal Block 5 0mm pitch 2 pins J18 COM3 5 x 2 Box Header 2 0mm pitch 10 pins J19 COM4 5 x 2 Box Header 2 0mm pitch 10 pi...

Page 86: ... occupied by the onboard USB audio J5 JTAG Pin Signal Name Pin Signal Name 1 VCC 2 GND 3 TCK 4 TDO 5 TDI 6 TMS J8 PS 2 Keyboard Pin Signal Name Pin Signal Name 1 KBCLK 2 KBDAT 3 NC 4 GND 5 VCC J9 Buzzer Pin Signal Name Pin Signal Name 1 Buzzer 2 VCC J10 PS 2 Mouse Pin Signal Name Pin Signal Name 1 MSCLK 2 MSDATA 3 NC 4 GND 5 VCC J11 COM1 Pin Signal Name Pin Signal Name 1 DCD1 2 RXD1 3 TXD1 4 DTR1 ...

Page 87: ... GP20 4 SPICS GP30 5 GP21 6 SPICLK GP31 7 GP22 8 SPID0 GP32 9 GP23 10 SPIDI GP33 11 GP24 12 GP34 13 232 GP25 14 GP35 15 422 GP26 16 GP36 17 485 GP27 18 GP37 19 VCC 20 GND J24 LCD Connector Pin Signal Name Pin Signal Name 1 3 3V 2 3 3V 3 LG2 4 LG3 5 LG4 6 LG5 7 NC 8 NC 9 LR0 10 LR1 11 LR2 12 LR3 13 LR4 14 LR5 15 GND 16 NC 17 NC 18 NC 19 NC 20 GND 21 NC 22 NC 23 LB0 24 LB1 25 LB2 26 LB3 27 LB4 28 LB...

Page 88: ...ss you are certain about the BIOS settings function do not change the system BIOS configuration Improper BIOS configuration can cause the system fails to boot or function as expected VDX 6318 Memory I O and IRQ Mapping Memory Mapping Address Description 0000 0000 9000 FFFF System RAM A000 0000 A000 FFFF EGA VGA Video Memory B000 0000 B000 7FFF MDA RAM Hercules graphics display RAM B000 8000 B000 F...

Page 89: ...8 bit data port 0067h WatchDog1 reload counter 0068h 006Dh WatchDog1 control register 006Eh 006Fh Not use 0070h 0071h CMOS RAM port 0072h 0075h MTBF counter 0076h 0077h Not use 0078h 007Ch GPIO port 0 1 2 3 4 default setup 007Dh 007Fh Not use 0080h 008Fh DMA Page Registers 0090h 0091h Not use 0092h System control register 0093h 0097h Not use 0098h 009Ch GPIO direction control 00A0h 00A1h PIC 8259 ...

Page 90: ...Fh Serial Port 1 IRQ 4 0480h 048Fh DMA High page register 0490h 0499h Instruction counter register 04D0h 04D1h 8259 Edge Level control register 0CF8h 0CFFh PCI configuration port D400h D4FFh On board LAN FC00h FC05h SPI Flash BIOS control register FC08h FC0DH External SPI Bus control register output pin configurable GPIO3 0 3 IRQ Mapping IRQ Device IRQ0 System Timer IRQ1 Keyboard Controller IRQ2 C...

Page 91: ...flash storage to boot to DOS Note USB flash devices from different manufacture are built with different components Not all USB flash can be configured as bootable device Refer to the USB flash manufacture s technical document for information Insert the bootable USB flash storage to one of the SBC s USB ports before applying power to the SBC Apply power to the SBC Press the DEL key multiple times i...

Page 92: ...Boot ini configuration file Primary BIN File The primary BIN file parameter configures the BIOSLoader to launch a designated Compact 7 OS run time image or Ethernet bootloader The following primary BIN file entry configures the BIOSLoader to launch NK BIN a Windows Embedded Compact OS run time image file Primary BIN file name BinFile NK BIN The following primary BIN file entry configures the BIOSL...

Page 93: ...nch with a preconfigured static IP address add the following registry entries to the OSDesign reg file for the OS design HKEY_LOCAL_MACHINE Comm PCI R60401 Parms TcpIp EnableDHCP dword 0 DefaultGateway multi_sz 192 168 2 1 UseZeroBroadcast dword 0 IpAddress multi_sz 192 168 2 232 Subnetmask multi_sz 255 255 255 0 The following parameter configures the BIOSLoader to launch with serial debug enabled...

Page 94: ... to boot the alternative image BinFile1 eboot bin BinFile2 NK2 bin Video Setting Video on Physical screen width Must be DisplayWidth PhysicalWidth 640 Physical screen height Must be DisplayHeight PhysicalHeight 480 Display Depth Possible values are 8 15 16 24 32 DisplayDepth 16 Display width DisplayWidth 640 Display height DisplayHeight 480 Debug IP address DbgIP 192 168 2 232 COM Port to pass in ...

Page 95: ...part of the jump start kit is built with DHCP enabled and will request IP address from an available DHCP service dynamically at boot time Configure Static IP for Prebuilt Compact 7 OS Run time Work through the following steps to configure a static IP address for the preconfigured Compact 7 OS run time image From Compact 7 desktop select Start Settings Network and Dial up Connections to bring up th...

Page 96: ... Solution Explorer window from the VS2008 IDE Expand the Parameter Files node and double click on OSDesign reg to open this file in the code editor window From the code editor window add the following registry entries to the end of the OSDesign reg file HKEY_LOCAL_MACHINE Comm PCI R60401 Parms TcpIp EnableDHCP dword 0 DefaultGateway multi_sz 192 168 2 1 UseZeroBroadcast dword 0 IpAddress multi_sz ...

Page 97: ...run time image after 10 seconds delay with the following options Before the 10 seconds delay expired press 1 to launch EBOOT BIN an Ethernet bootloader Before the 10 seconds delay expired press 2 to launch NK2 BIN the secondary OS run time image To configure the flash storage using DiskPrep you need to have the following To configure a Compact Flash storage card you need a USB to Compact Flash ada...

Page 98: ... exe executable from the C MyOSImage directory and bring up the DiskPrep program screen as shown in Figure H1 Fig H1 DiskPrep utility The DiskPrep utility detected the flash storage s present and listed the detected flash storage in the Disk Selection drop down list box The DiskPrep utility can prepare the flash storage with FAT FAT32 or exFAT file system For this exercise select FAT It s possible...

Page 99: ...K BIN OS run time image on to the flash storage select the Load specific image file copied from option click the Browse button to bring up the file selection dialog box navigate to the C MyOSImage directory and select the NK BIN file At this point the DiskPrep utility screen should look similar to the following as shown in Figure H2 Fig H2 DiskPrep utility Click OK to format and configure the flas...

Page 100: ... device the appropriate CoreCon files need to be launched on the target device when Compact 7 starts In order to use these CoreCon files they must be included to the Compact 7 OS run time image copied to the target device s local storage or make available to the target device via Network share or external storage attached to the target device To help simplify the process to include the required Co...

Page 101: ...nents are included in the OS design the following registry entries are added to the OS design HKEY_LOCAL_MACHINE Init Depend99 hex 14 00 1e 00 32 00 Launch99 AutoLaunch exe HKEY_LOCAL_MACHINE System CoreConOverrideSecurity dword 1 HKEY_LOCAL_MACHINE Startup Process0 ConmanClient2 exe Process0Delay dword 00001388 With the above registry CoreConOverrideSecurity added to disable security the CMaccept...

Page 102: ...the CD ROM that comes with the jump start kit in the following directory MSJK_Files Recover Files with DiskPrep DiskPrep is a Windows CE power toy available for download from the following URL http code msdn microsoft com DiskPrep The DiskPrep utility and the necessary files to configure the SBC s flash storage are provided on the jump start CD that comes with the kit in the following directory Di...

Page 103: ...iskPrep utility program screen click on the OK button to format and configured the Compact Flash After the DiskPrep utility completed the task copy the BOOT INI file from the C MSJK directory to the flash storage s root directory overwritten the existing BOOT INI file Copy the EBOOT BIN and NK2 BIN files from the C MSJK directory to the Compact Flash s root directory The flash storage is configure...

Page 104: ...how similar to Figure K1 Fig K1 Main BIOS configuration menu IMPORTANT Incorrect BIOS settings may cause the system fail to function as expected And may prevent the system from completing the boot process Default BIOS Settings When the system fails to function due to incorrect BIOS settings go through the following steps to configure the BIOS with the default settings Enter BIOS configuration mode...

Page 105: ...de setting from the IDE Configuration menu need to be configured to Native Mode In addition to the above check to make sure the 1 st Boot Device from the Boot Settings menu is configured to boot from the intended storage device Here are the steps to configure the OnBoard IDE Operate Mode Enter BIOS configuration mode Press the Del key during power on After entering BIOS configuration use the Left ...

Page 106: ...t happen 1 Read only Watchdog timer time out event happens Bit 6 Write 1 to reset Watchdog timer Index Port 38h Bit 7 4 0000 Reserved 0101 IRQ 7 1011 IRQ 15 0001 IRQ 3 0110 IRQ 9 1100 NMI 0010 IRQ 4 0111 IRQ 10 1101 System reset 0011 IRQ 5 1001 IRQ 12 1110 Reserved 0100 IRQ 6 1010 IRQ 14 1111 Reserved Bit 3 0 Reserved Index 3Bh 3Ah 39h Counter 3Bh 3Ah 39h D7 D0 D7 D0 D7 D0 Counter Most Significant...

Page 107: ...WDT0 to trigger IRQ5 Change to 0x40 to configure WDT0 to trigger IRQ6 Change to 0x50 to configure WDT0 to trigger IRQ7 Change to 0x60 to configure WDT0 to trigger IRQ9 Change to 0x70 to configure WDT0 to trigger IRQ10 Change to 0x90 to configure WDT0 to trigger IRQ12 Change to 0xa0 to configure WDT0 to trigger IRQ14 Change to 0xb0 to configure WDT0 to trigger IRQ15 Change to 0xc0 to configure WDT0...

Page 108: ...IRQ 9 1100 NMI 0010 IRQ 4 0111 IRQ 10 1101 System reset 0011 IRQ 5 1001 IRQ 12 1110 Reserved 0100 IRQ 6 1010 IRQ 14 1111 Reserved Bit 3 0 Reserved WDT1 Control 2 Register Port 6Ch 6Bh 6Ah D7 D0 D7 D0 D7 D0 Counter Most Significant Bit Least Significant Bit WDT1 Status Register Port 6Dh Bit 7 0 WDT1 timeout event does not happen 1 WDT1 timeout event happens write 1 to clear this flag Bit 6 0 Reserv...

Page 109: ...RQ14 outp 0x69 0xb0 to trigger IRQ15 outp 0x69 0xc0 to trigger NMI outp 0x69 0xd0 to trigger system reset Enable WDT1 watchdog timer c inp 0x68 c 0x40 outp 0x68 c printf Press any key to stop trigger timer n while kbhit outp 0x67 0x00 printf System will reboot after 5 seconds n Watchdog Timer DLL WDT dll The WDT DLL is provided as part of the BSP and include in resulting Compact 7 OS run time imag...

Page 110: ...3 and J23 headers The 32 GPIOs are extended from the Vortex86DX SoC s GPIO Port 0 Port 1 Port 2 and Port 3 with 8 bits link to each port Here are the configuration and data register for the GPIO Port 0 Port 1 Port 2 Port 3 Description Data Register 78H 79H 7AH 7BH Direction Register 98H 99H 9AH 9BH 0 Set GPIO pin to input mode 1 Set GPIO pin to output mode Using the GPIO In this section sample cod...

Page 111: ...utportb 0x99 0x0f To configure bit 4 bit 5 bit 6 and bit 7 on Port 0 to output mode Outportb 0x98 0xf0 To configure bit 4 bit 5 bit 6 and bit 7 on Port 1 to output mode Outportb 0x99 0xf0 To configure bit 0 and bit 3 on Port 0 to output mode Outportb 0x98 0x05 To configure bit 0 and bit 3 on Port 1 to output mode Outportb 0x99 0x05 After the GPIO port is configured to output mode each GPIO bit can...

Page 112: ...value to the direction register at 98H for Port 0 and 99H for Port 1 as follow To configure all 8 bits on Port 0 to output mode Outportb 0x98 0x00 To configure all 8 bits on Port 1 to output mode Outportb 0x99 0x00 Note There is one configuration bit to configure the GPIO bit to either input or output mode If the GPIO bit is not configured to input mode it s in output mode When configured to outpu...

Page 113: ... to input or output mode SetPort2Dir byte dbDirection Function to set GPIO Port 2 to input or output mode SetPort3Dir byte dbDirection Function to set GPIO Port 3 to input or output mode GetPort0Dir Function to retrieve setting for GPIO Port 0 GetPort1Dir Function to retrieve setting for GPIO Port 1 GetPort2Dir Function to retrieve setting for GPIO Port 2 GetPort3Dir Function to retrieve setting f...

Page 114: ...t 7 Getting Started Rev 2 00 Page 114 Function to write to the data register for GPIO Port 2 WritePort3 byte dbValue Function to write to the data register for GPIO Port 3 Sample codes showing how to use the GPIO DLL is provided on the jump start CD under the SampleCodes GPIO folder ...

Reviews: