Home

User Manual Windows CE 6.00 BSPfor the TQMa35 - TQ

image

Contents

1. The selected component will now be shown as active in your OS Design View otherwise with a right click and Reasons for Exclusion of Item will show the background of the deselection Often components under Core Os CEBASE are missed i e for the USB device To remove a driver or component from your OS Design deselect the component BSPa35 WinCE UM 201 Page 15 of 58 la components 5 3 OS Design Configuration After we added all desired components and drivers we have to do some configuration settings before we can build our OS design 5 3 1 Debug Port Configuration The item Debug enable includes a control panel applet to enable or disable the debug functionality On default the debug port is enabled Freescale i MxX35 TQS ARMY4I B Device Drivers Audio CAN Bus a Config CalTouch Autostart ONCE eM Debug enable Figure 9 Debug configuration 5 3 2 Touch Calibration To avoid the touch calibration mechanism on every start the Ca Touch Autostart ONCE can used to reduce the calibration uniquely Hint after calibration the tool flushreg should be used to make the calibration data persistent Freescale i Mx35 TQS ARMYV4I E Device Drivers 0 Audio 0 CAN Bus E Config CalTouch Autostart ONCE Debug enable Figure 10 Touch calibration configuration BSPa35 WinCE UM 201 Page 16 of 58
2. tt am pm indicator First Two Letters ttt am pm indicator First Three Letters BSPa35 WinCE UM 201 Page 58 of 58 Hqw9 sjusuodwog O 1 Aq L0zO LOe WN ADUIM SEFdSA
3. I Figure 38 adding file sync to an OS design E Graphics and Multimedia Technologies aj H E International Internet Client Services Security 6 Shell and User Interface E Graphics Windowing and Events Shell 39 User Interface Accessibility ica Common Controls Common Dialog Support Control Panel Applets E eer Controls Option B eee Copa a 4 Customizable UI a Gesture Menu Tool Tip Mouse Network User Interface Overlapping Menus ame Quarter YGA Resources Portrait Mode Silverlight for Windows Embedded Software Input Panel f Touch Screen Stylus H 0 Voice over IP Phone Services H E Windows Embedded CE Error Reporting E Device Drivers B E Third Party 5 0 BSP O Freescale i MX233 EVK PDK1_7 ARMV4I Freescale i MX25 3DS PDK1_7 ARMV4I Freescale i MX27 ADS ARMY4I C Freescale i mx28 EYK PDK1_9 ARMV4I xl H ES WACSICSTCSICS KSICS E KARP A FI rane nent i AUAA annaiar Properties alsolution Explorer Ez class view Catalog Items Figure 39 Adding Network User Interface to an OS design BSPa35 WinCE UM 201 Page 52 of 58 Haw sjuasuodwog O1 Aq 10zO LOe WN ADUIM SEFdSA la components In additional following old components add to the platform bib IF BSP_ASYNC_FILES ConManClient2 exe _WINCEROOT PLATFORM imx35 tqs files async ConManClient2 exe NK N cmaccept EXE _WINCEROOT PLATFORM imx35 tqs files async cmaccept EXE
4. The drivers and utilities that are used for the components as well as the boot loader are subject to the copyright of the respective manufacturer Licensing conditions of the respective manufacturer should be observed Licensing costs for the operating system and applications are not included and must be calculated and stated separately There are no further licensing costs for general drivers or similar items Remarks Since we are dealing with an embedded system no operating system licenses from OEM or office consumer sphere need to be installed 1 5 Registered Trademarks TQ strives to respect the copyrights of graphics used in other publications and texts by using graphics created by themselves or accessing license free graphics and text All brand names and trademarks used in this publication are under circumstance protected by third parties without restriction subject to conditions of the respective valid trademark law and ownership law of the respective owner or proprietor Conclusions cannot be drawn on the basis of their mere mention that brand names and trademarks are not protected by third party rights 2 Introduction The TQM Board Support Package for Windows CE 6 0 contains all necessary software components to allow a simple and fast startup of application development with Windows CE 6 0 on your TQMa35 hardware platform A PC with minimum Windows XP and Microsoft Visual Studio with platform builder plug in is necessary
5. The following steps will guide you through the whole process of creating compiling and testing of a new Windows CE workspace for the TQMa35 hardware module based on the industrial controller design template 5 1 Creating a New Workspace Open Visual Studio and select Project from the File menu Choose the project type Platform Builder 6 0 and choose name for the workspace New Project 2 Lx eo Project types Templates Visual C isual Studio installed templates ATL CLR 05 Design General MFC My Templates Smart Device Win32 Other Languages Other Project Types Platform Builder For CE 6 0 GulSearch Online Templates A project For creating a Windows Embedded CE 6 0 operating system Name MyownName Location c wINcEson osDesions O00000 Browse Solution Name MyownName SS IV Create directory for solution mn Figure 2 Creating a new platform Step 2 The next dialog you should skip and then you can specify one or more BSPs on which your OS design should be based BSPa35 WinCE UM 201 Page 11 of 58 la components Windows Embedded CE 6 0 OS Design Wizard 21x Ey Board Support Packages Available BSPs Aruba Board ARMY4I 4 BSP contains a set of device drivers that are added CEPC x86 to your OS design Device Emulator ARMY4I H4Sample OMAP2420 ARMY4I Freescale i MX233 EYK PDK1_7 ARMV41 Freescale i MX25 3D5 PDK1_7 ARMV4I The BSP for Freescale i MX35 Processo
6. 226 Service ready for new user Benutzer 192 168 2 76 none gt gt anonymous 331 Anonymous access allowed send identity e mail name gt as password Kennwort 236 User logged in proceed ftp gt ls la 266 Command okay 158 File status okay about to open data connection lt DIR gt MMCMemory lt DIR gt Application Data lt DIR gt profiles lt DIR gt Documents and Settings Control Panel ink lt DIR gt My Documents lt DIR gt Program Files lt DIR gt Temp lt DIR gt Windows 226 Closing data connection FTP 459 Bytes empfangen in 4 Sekunden 1 15KB s ftp gt m Figure 43 target connection via FTP i BSPa35 WinCE UM 201 Page 56 of 58 ee ea ee ri Hawg sjuauodwog OL Aq LOZO LOZ WN S0UIM SEedSa la components 9 2 Changing of the Appearance of Windows CE 9 2 1 Changing the Desktop Wallpaper 1 Add the following key to project reg Wallpaper HKEY_CURRENT_USER ControlPanel Desktop wallpaper Windows customer bmp 2 Add the file name and path for the new wallpaper bitmap to project bib windowsce qvgap bmp _FLATRELEASEDIR customer bmp NK S 3 Copy the bitmap file to the directory _WINCEROOT PBWorkspaces _TGTPROJ WINCE500 TQMa31_ARMV4I OAK files 9 2 2 Hiding the Taskbar Add the following keys to project reg Taskbar amp desktop setting HKEY_LOCAL MACHINE Software Microsoft Shell AutoHide Taskbar auto hide 4 HKEY_
7. Hqw9 sjuauodwog O1 Aq L0zO LOe WN ADUIM SEFdSA la components 5 3 3 Build Options To set the build options for your OS design open the Properties dialog from the Project menu in Visual Studio and go to the Build Options tab The most important options are described in table 1 There is also a recommendation given for setting the build options for the Debug and Release configuration of your OS design Build Option Description configuration Debug Release Enable eBoot Space Should be checked if you use the eBoot boot loader normally X X in Memory used for downloading the Image from the Visual Studio Write run time Select between RAM and Flash image An image on SD Card image to flash should be a RAM Image X x memory Enable Kernel Allows connecting the kernel debugger of Visual Studio with the xX Debugger target Enable KITL Enables the Kernel Independent Transport Layer KITL Needed for communication between the development X X workstation and the target device Table 5 1 build options In Release Builds the KITL should always be turned off as it will slow down your platform performance 5 3 4 Language Settings To set the default language of your OS design open the Properties dialog from the Platform menu in Visual Studio and go to the Locale tab Here you can set the locales that your OS design will support The locales include information about currency f
8. I amp a Hear TOOLSSDKDRIVE C TOOLSS DKROOT C WINCE6 too ls public ext USER_SYSGEN_BAT_FILES C Pro jekte TQS TQS Wince66Q iMk35 TQS_ARMU4I OAK MISC TQ j a 4 ia 5 C Zo mo bat WINCECALLED 1 WINCEDRIVE C WINCEOSUER 668 WINCEROOT C WINCE668 6 Pro jekte TQS TQS Re lDirN NFreescale_i _MX35_TDS_ARMU4I_Release gt Figure 13 Viewing environment variables Example If you want to set the environment variable BSP_ASYNC_FILES to include additional active sync components please type Set BSP_ASYNC FILES 1 To delete the variable just type Set BSP_ASYNC FILES or IMGRAM256 to enable the second 128 Mbyte of RAM All changes are only in the current command active Alternatively you can add the environment variable in the Environment tab of the Platform Settings dialog 3 BSPa35 WinCE UM 201 Page 19 of 58 X R la components 5 4 Building the OS Design To build your OS design first choose the desired build configuration Debug or Release from the pull down menu in the Visual Studio IDE get Tools Windo iv amp Freescale i_Mx Platform Builder _TGTCPU A Freescale i_MX35 TDS ARMV4I Debug i MX35 TDS ARMY4I Release Configuration Manager Start Page hwinit c hwinit c usbutils c hwinit c off c Figure 14 Selecting the active configuration Second start the system generation click the choose Sysgen from the Build
9. Name S r n v cName RETAILMSG 1 TEXT Build S r n v cBuild RETAILMSG 1 TEXT Version 0x x r n v ulVersion else RETAILMSG 1 TEXT Versionsinformation kann nicht gelesen werden r n p freq 1000 Tom von 1 Khz p length 1000 Laenge 1 sek DeviceIoControl h IOCTL_BUZ SET amp p sizeof p NULL 0 NULL 0 CloseHandle h To test the buzzer you can use the test application windows testpwm exe The source code is of the test application is located at testappl testpwm Syntax calling in a telnet session testpwm lt frequency Hz gt lt duration msek gt 7 4 LM75 Temperature Sensor The temperature sensor driver adds support for reading the temperature from 2 temperature sensors The sensor 1 is located on the rear side of the TQMa35 CPU module and the sensor 2 is located on the baseboard The driver is done as a stream interface device for each sensor one instance Temperatures are given as 16bit signed values in units of 0 1 C Note Adding the temperature sensor driver also adds the 12C driver to your OS design 7 4 1 Adding the Temperature Sensor Driver to Your OS Design Select the LM75 Temperature Sensor component in the Catalog Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt I2C Devices gt Temp N BSPa35 WinCE UM 201 Page 33 of 58 7 4 2 la components How to Use the Tem
10. The TQMa35 BSP was created with all updates installed including the Rollup 2010 update Please assure that your Platform Builder installation has all these updates installed BSPa35 WinCE UM 201 Page 7 of 58 y la components 3 Contents of the CD Haw sjuasuodwog O1 Aq 10zO tqs_sdk msi CD Stand txt DemoImage 128MByte NK bin 256MByte NK bin DemoProject tqs_src_proj zip eBoot 128MByte EBOOT bin 256MByte EBOOT bin SDK BSPa35 WinCE UM 201 Page 8 of 58 LOe WN ADUIM SEFdSA a la components 4 Installation The following chapters will guide you through the installation of the TQMa35 BSP for Windows CE 6 0 We assume that you have already installed the Microsoft Visual Studio with Platform Builder plug in from the original Microsoft DVD or CD If not please install it before proceeding to the next paragraph The installation drive should be C No newer BSP should be installed 4 1 Installation of the Platform Builder Updates Microsoft delivers updates to the Platform Builder monthly The TQM BSP was created with all updates installed including the Rollup 2010 Update Please assure that your Platform Builder installation has all these Updates installed 4 1 1 Which Updates are already installed You can check for installed updates by looking in the Platform Builder update folder C WINCE600 Updates For each inst
11. Figure 34 try to Connection BSPa35 WinCE UM 201 Page 47 of 58 Afterwards you can start with debugging by clicking on the button Start debugging green arrow File Edit View Project Build Debug Target Tools Window Community Help H G iH s 4 O 9 G B P Debug PocketPC 2003 ARMV4 a log Print A F A Pocket PC 2003 SE Emulator S Ale al ARR S SiOSB age pwel hT Solution E er Test2 2x _ Test cpp Test2 cpp Start Page fa obal scope 9 umain nt argc TOHAR D argv Led Solution Test2 1 project include stdafx h B Brera include lt windows h gt les 3 E stdafx h include lt commctrl h gt o E Resource Files E Source Files E ee 5 2 stdafx cpp Gint _tmain int argc _TCHAR argv C Test2 cpp e t B ReadMe txt MessageBox NULL L World L Hello MB OK return 0 Set a debug break on t Figure 35 start Debugging he line MessageBox and press Run on the toolbar Community Help J F amp leo Pent AFSRHoO Ale ag OR e STOPS aRBAaQz estan Test3 cpp Global Scope Qwmain int argc _TCHAR argv Test3 cpp Defines the entry point for the console application ad include stdafx h include lt windows h gt include lt commctrl h gt int _tmain int argc _TCHAR argv MessageBox NULL L World L Hello MB OK return 0 R Figu
12. Now E Select Ether Device FEC M MMC and SD Utilities G L2CC Active Mode Enable W L2CC Work Mode WriteBack Selection If no output is shown on your terminal please check the serial cable crossed and the power supply f BSPa35 WinCE UM 201 Page 28 of 58 Hqw9 sjuauodwog O1 Aq L0zO LOe WN ADUIM SEFdSA la components Here you can modify settings described in table 2 Option Description IP Address Select IP address for the boot loader Not used if DHCP is enabled Subnet Mask Select subnet mask for the boot loader Not used if DHCP is enabled Boot delay Delay in seconds that the boot loader waits for the SPACE key to enter in the configuration menu before the option selected in Auto boot is executed DHCP Enable disable DHCP for the boot loader Reset to Factory Default Configuration Reset all setting to the factory defaults Auto boot Select the boot option for normal startup if not entered boot configuration You can choose NK from NOR Load run time image from NOR flash NK from SD MMC Load run time image from SDCard Disabled Bootloader will try to download image Set MAC Address FEC Select the MAC address for i MX35 network interface Upper slot of the network connector Set MAC Address SMSC Select the MAC address for the onboard SMSC network interface Lower slot of the network connector Bootloader Shell Some helpe
13. gt USB Host Support gt USB Human Input Device HID Class Driver gt USB HID Keyboard and Mouse 7 1 3 USB Printer Support To have support for USB printers add the components USB Printer Class Driver Catalog Item View gt CoreOS gt CEBASE gt Core OS Service gt USB Host Support and PCL Printer Driver Catalog Item View Catalog gt Device Drivers gt Printer Devices to your OS design 7 2 SD Host Controller The SD Host Controller Driver adds support for SD Card functions of the i MX35 CPU to your OS design 7 2 1 Adding the SD Host Controller Driver to Your OS Design Select the Enhanced SD Host Controller 1 or eMMC Memory at SD3 component in the Catalog Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt SD Controller 7 2 2 SD Host Controller Driver Configuration The device specific parameters i e the name of the directory entries are stored in drivers esdhc esdhc_mx35 reg 7 3 Audio The Audio Driver adds support for the audio functions of the i MX35 CPU to your OS design 7 3 1 Adding the Audio Driver to Your OS Design Select the Audio Buzzer and or SGTL5000 Stereo Audio component in the Catalog Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt Audio 7 3 2 SGTL5000 The SGTL5000 Stereo Audio supports recording and playing audio data The correct handling of the standard interface is
14. on the CD that includes the common part of the i MX35 and should be installed first The second is the TQS specific BSP which is stored as SourceBSP on the CD This archive has to expand under the c wince600 platform directory During the installation the BSP the Visual Studio should be closed 4 3 Installation of the Demo Workspaces The demo workspaces for the TQMa35 BSP are included on the CD as DemoProject The workspaces are a good starting point for a new OS design They include all special drivers the platform options and so on The workspaces are located as an archive on the CD in the directory DemoProject Expand the archive to c wince600 OSDesigns Browse to the c wince600 TQS folder and open the TQS snl as a Project in the Visual Studio 4 3 1 Contents of the TQMa35_SampleWorkspace The demo workspace TQS is based on the Industrial Controller design For detailed information about the included components please have a look into the project file in the folder OsDesign tqs tqs TQS pbxml 4 4 Removal of aDemo wWrkspaces Close the Visual Studio Delete the appropriate demo workspace directory from the OSDesign directory of your Platform Builder installation e g c wince600 osdesignTQS BSPa35 WinCE UM 201 Page 10 of 58 a ee Hawg sjuauodwoy o1 Aq 1 L0zO LOZ WN SDUIM SEedSa la components 5 Creating a New OS Design Based on the TQMa35 BSP
15. to another section figure or table Y BSPa35 WinCE UM 201 Page 5 of 58 la components 1 2 Acronyms and Definitions The following terminology and abbreviations are used Acronym Full Form BSP Board Support Package IDE Integrated Development Environment OS Operating System SDB Software Development Board HW Hardware OAL OEM Adaptation Layer OEM Original Equipment Manufacturer SDK Software Development Kit COM Communication Ports IRQ Interrupt Request BSPa35 WinCE UM 201 Page 6 of 58 Jf ry Hawg sjuauodwoy o1 Aq LOZO LOZ WN SDUIM SEedSa la components 1 3 Liability Disclaimer The TQ Components GmbH does not accept guarantee of any kind about the topics accuracy completeness or quality of information made available in this manual a as well as its further use Claims lodged against TQ Components GmbH related to damages of material or intellectual nature arising out of the use or non use of information contained in this manual or out of the use of incorrect or incomplete information would not be entertained so long as there is no evidence of intentional or negligent fault on the part of TQ Components GmbH The TQ Components GmbH reserves the right to change or supplement the contents of this manual or parts of it without prior indication to this effect 1 4 Copyright and Licensing Costs
16. waits for incoming connection requests You can check this by running a terminal program e g HyperTerminal which is included in Windows XP instead of ActiveSync and set the baud rate to 19200 After clicking the connection symbol on the target device the terminal program should show some CLIENT messages it received Closing the terminal program and running Active Sync will then lead to an established connection 8 4 3 Establish a ActiveSync Connection over USB Include either OTG Pure Client Function or OTG Full OTG Function in your OS Design Include also the Seria USB Function Driver in your OSDesign Catalog gt Device Drivers gt USB Function gt USB Function Client When you plug in a Type B Plug in your device and connect the cable with your host computer running ActiveSync the device will be recognized automatically BSPa35 WinCE UM 201 Page 54 of 58 Hqw9 sjuauodwog O1 Aq 1 L070 LOZ WN ADUIM SEFdSa la components 9 Additional Customizations The following chapters will give you hints for the usage of some Windows CE components and other useful settings regarding the appearance of Windows CE 9 1 Windows CE Components 9 1 1 Telnet Server Telnet allows easy access to your Windows CE device over the network To add the Telnet server to your image Select on the Telnet Server component in the catalog Catalog gt Core OS gt CEBASE gt Communication Services and Networking gt Serv
17. E UM 201 Page 13 of 58 la components Windows Embedded CE 6 0 OS Design Wizard 21x A Ej Networking Communications Local Area Network LAN 4 Telnet server that provides a networked V Wired Local Area Network command line shell For control and administration from a remote location Wireless Local Area Network 802 11 Message Queuing MSMQ OBEX Server Remote Desktop Connection Security Servers v FTP Server Parental Control Telnet Server _ Web Server HTTPD Simple Network Management Protocol SNMP Universal Plug and Play UPnP Wide Area Network WAN gt I lt Previous Next gt L enn Cancel Figure 6 Creating a new platform Step 7 When you click Next a security warning about the FTP and Telnet servers will appear as these components allow network access to our device FTP and Telnet security settings are discussed later on ElmyownProject Tas M31 Phyto Projekta Windows Embede svel entry level to Name of project EI Solution Explorer i Catalog Items View E Class View Output Show output from Windows CE Debug Resource view ogPProperties 32 Toolbox RX E la ra Figure 7 Appearance of Visual Studio after generating a new platform Now
18. F Full On Full On Backlight control default settings for WinCE UseExt dword 0 Enable timeout when on external power UseBattery dword 0 Enable timeout when on battery AdvancedCPL AdvBacklight Enable Advanced Backlight control panel dialog BatteryTimeout dword 1E 30 Seconds ACTimeout dword 78 2 Minutes The timeouts are given in seconds On a running Windows CE the backlight setting can also changed by the display control panel applet File View R x Py 2 i lt Dbg Ay Certificates Date Time Dialing Display EnableDe Input Panel Internet Keyboard Mouse Network and Dial up Co f Gs f a e2 PA Background Backlight a Owner Password PC Power 29 Save battery life by em ersion alume amp Connection D automatically turning deo Aese ttle Aea Options k mds backlight when not ng Settings Turn off backlight when using Adjust back light levels Battery power and device earn for more than n Battery 15 seconds LOW p High v External power and devic i i for more than pees On AC BF Roisplay properties S 12 31 PM E E Figure 22 Backlight Control Hint Don t forget to make the change persistent by calling flushreg c 7 10 RTC The RTC driver adds the real time clock support to your OS design 7 10 1 Adding the RTC driver Select RTC driver on the RTC component in the Catalog Item View gt Third party gt BSPs g
19. For technology in Quality User Manual Windows CE 6 00 BSP for the TQMa35 module BSPa35 WinCE UM 201 29 07 2011 Date Name Designation Prepared 10 03 2011 H Boerner Project BSPa35 WinCE Checked 29 03 2011 Loschelders Document no BSPa35 WinCE UM 201 29 05 2011 M Fischer Company Release status Reviewed Ip Customer TQC Page 1 of 58 File BSPa35 WinCE UM 201 doc C TQ Components GmbH All information contained in these documents has to be treated confidentially Distribution of presentation and information to third party requires written consent of TQ Components GmbH la components Table of Contents garam 2 010 0 Bg 8 Manual E ee rr RR eae eee ee eee ere eee erreur nee 5 1 1 derms andi Conventions enen ae aa ey eraser preter et pater orp avers ener ene titers eNpNar rents tetrccres 5 1 2 Acronyms and DetinitionS cedar cere excoreevaveeeperecose Vase E E E ERE E 6 1 3 hiabilityiBisclaimer e eee pee rae A ae er A eee ee eee 7 1 4 COPY Mai and Licensing GO S16 meira nei R E E E E RE ERE 7 1 5 RegisteredilirademarkS n nna oe e ere E er Cer ener ere ee err eee eae re ee ere oe 7 Boe UAT NG TSS sac ee eae ase E ass ee aca A ees E E ae eee E ee 7 3 Contents ot the CDi recreen vee ences verve nee weaned E E EE E RE ER 8 A l EOL e e E ee E 9 4 1 Installation of the Platform Builder Updates cccccccceeeeeeeeeeeeeneeeeeeeeeeeeeensaeeeeeeeeetenenaa 9 4 1 1 Whi
20. Handle Close the current instance DeviceIOControl IOCTL_XXX_GETVERSIONINFO defined at bsp_verion h returns the driver version at the structure DRV_VERSION_INFORMATION Example HANDLE h CreateFile L EPR1 GENERIC READ GENERIC WRITE 0 NULL OPEN EXISTING 0 NULL printf EEPROM Size d r n SetFilePointer h 0 0 FILE_END lese Eprom Groesse SetFilePointer h 0 0 FILE BEGIN Lese Scheibzeiger auf Pos 0 BOOL bRet ReadFile h test 1024 amp dwRead NULL Lese 1024 Bytes CloseHandle h Schliesse Handle The source of a test program can be found under testappl testeeprom BSPa35 WinCE UM 201 Page 40 of 58 Jp 4 ee ee EE Hawg sjuauodwoy o1 Aq LOZO LOZ WN SDUIM SEedSa a la components 7 14 SPI Bus Driver The SPI module provides the generic functionality of a standard SPI slave and master The SPI module is designed to be compatible with the standard SPI bus protocol 7 14 1 Adding the SPI Bus Driver Select one or both of the CSPI bus lt x gt component in the Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt CSPI Bus 7 14 2 CSPI Bus Driver Configuration There is nothing to configure for this driver 8 Developing Applications The following steps guide you through the creation of an SDK for your OS design and shows you how to use Visual Studio 2005 to develop debug and download applications 8 1 Creati
21. LOCAL MACHINE Software Microsoft Shell OnTop 1 taskbar always visible on top taskbar can be covered by other windows 9 2 3 Changing the Folder Name of Storage Devices Example for modifying project reg USB stick folder name HKEY_LOCAL MACHINE System StorageManager Profiles USBHDProfile Folder USB Stick CFCard folder name HKEY_ LOCAL MACHINE System StorageManager Profiles PCMCIA Folder CFCard SDCard folder name HKEY_LOCAL MACHINE System StorageManager Profiles SDMemory Bolder SDCard N BSPa35 WinCE UM 201 Page 57 of 58 la components 9 2 4 Setting up the Time Zone to GMT Add the following registry entries to project reg x e k k Date Time Settings Time zone default settings HKEY_LOCAL MACHINE Time Zones Default GMT Standard Time Clock Format HKEY_LOCAL MACHINE n1ls overrides STime STFmt H mm STime STRING Time Separator STFmt STRING h mm ss tt Time Format String S1159 STRING am 2359 STRING pm Time Format String h Hours 12 Hour Clock with No Leading Zero hh Hours 12 Hour Clock with Leading Zero H Hours 24 Hour Clock with No Leading Zero HH Hours 24 Hour Clock with Leading Zero m Minutes with No Leading Zero mm Minutes with Leading Zero S Seconds with No Leading Zero Ss Seconds with Leading Zero t am pm indicator First Letter Only
22. MI panel or a programmable logic controller PLC im lt Previous m inish Cancel lt Previous m inish Cancel im I D Figure 4 Creating a new platform Step 4 amp 5 j BSPa35 WinCE UM 201 Page 12 of 58 LOZ WN ADUIM SEFdSA la components We chose the ndustrial Device and Industrial Controller as a base configuration for our OS design as this configuration includes already TCP IP networking GUI support and most of the programming APIs With the following steps various components such as applications can be added to the OS design You will be able to modify this configuration later on however it will be more detailed and you will have to deal with dependencies of the modules The figures below show a configuration example Windows Embedded CE 6 0 OS Design Wizard 21x RI Applications Media Windows Embedded CE Error Reporting 4 device driver that displays the window For NET Compact Framework 2 0 the console shell Console Wi ow lt lt _Onsol DCOM Internet Browser V Network User Interface Waveform Audio Windows Internet Services OKK lt Previous Lnet gt Einish Cancel Figure 5 Creating a new platform Step 6 We deselect the NET Compact Framework component and include the Console Window the Network User Interface and the Waveform Audio On the next tab we add the FTP and Telnet server components BSPa35 WinC
23. N gt 2 Certificates Date Time Dialing Display EnableDe Input Panel Internet Keyboard Mouse Network and Options Dial up Co f G EJ 2 a Y 5 Owner Password PC System Version Volume amp Connection Sounds _Enable serial debug port Disable serial debug port 7 Enable Debug BL 12 09 PM e a Figure 21 Enable or disable debug port The source code of the CPL can be found under testappl dbgena BSPa35 WinCE UM 201 Page 35 of 58 la components 7 6 Touch Panel Support The BSP includes a driver for the i MX35 integrated 4 wire resistive touch controller 7 6 1 Adding the Touch Panel Driver Select touch panel driver on the Touch Driver component in the Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt Touch 7 6 2 Touch Panel Driver Configuration The configuration is done by calling caltouch or caltouchauto By default the caltouch is replaced by caltouchauto and run on system start if no calibration data stored in registry The source code of both applications can be found under testappl caltouch 7 7 12C Bus Driver The Inter Integrated Circuit I2C module provides the generic functionality of a standard 12C slave and _ master The l2C module is designed to be compatible with the standard Phillips 12C bus protocol 7 7 1 Adding the I2C Bus Driver Select one or both of the I2C bus lt x gt component in the Catalog Item View gt Thir
24. NK N ClientShutdown exe _WINCEROOT PLATFORM imx35 tqs files async ClientShutdown exe NK N eDbgTL dll _WINCEROOT PLATFORM imx35 tqs files async eDbgTL dll NK N TcepConnectionA d1ll _WINCEROOT PLATFORM imx35 tqs files async TcpConnectionA dll NK N cemgrc exe _WINCEROOT PLATFORM imx35 tqs files async cemgrc exe NK N tcpipce dll _WINCEROOT PLATFORM imx35 tqs files async tcpipc dll NK N cetlstub dll _WINCEROOT PLATFORM imx35 tqs files async cetlstub dll NK N ENDIF BSP ASYNC_FILES Set the environment variable BSP_ASYNC_FILES to 1 build the OS design create a run time image and download it to your device 8 4 2 Establish a Active Sync Connection Over Serial Port Disable the debug port as COM1 Menu gt Settings gt Control Panel gt Enable Debug File View R x 0 b A amp A RF De De Certificates Date Time Dialing Display EnableDe Input Panel Internet Keyboard Mouse Network and Options Dial up Co 2a 92 BY Owner Password PC Power Regional Storage Stylus System Version Volume amp Connection Enable Debug Sounds Enable serial debug port Disable serial debug port rma Enable Debug lt ger 1 33 Pm B Figure 40 Disable debug port Call flushreg w on an command prompt or terminal to make the registry persistent After rebooting the device the last messages on the terminal should be OEMIn
25. Those files are compressed and available via the file system BSPa35 WinCE UM 201 Page 49 of 58 la components The major difference between the FILES section and the MODULES section is this If a dynamic link library dll file is placed in the FILES section as opposed to the MODULES section it is loaded into every slot location instead of process slot 1 only which decreases the virtual address space available to the process You can also rename files via the BIB file entries As you can see in the example above the bitmap file called PIC1 BMP will show up as SPLASH BMP in the Windows CE file system If you want to learn more about how the Windows CE image is built up and about the different settings for memory types please refer to the Visual Studio help system for MODULES Section respectively FILES Section 8 3 2 Auto Start up of Windows CE applications After the Windows CE boot process has finished your application must be started To accomplish this you have to insert appropriate entries into the HKEY_LOCAL_MACHINE init registry key This can be done using the project reg file of your workspace To create a registry entry for starting an application under the Windows CE add the following statements to the HKEY_LOCAL_MACHINE init section of your project reg file HKEY LOCAL MACHINE init launchxx exe_ name dependxXX hex YY 00 BSPa35 WinCE UM 201 Page 50 of 58 a a ee eee Hawg sjuauo
26. To finally build the SDK select Build All SDKs from the Build menu Abbrechen Ubemehmen Your SDK will be created as an MSI file located at _ PBWORKSPACEROOT SDK It is self installable by double clicking it and it is removable using Add Remove Programs from the Windows XP Control Panel 8 2 Developing with Visual Studio 2005 To develop and debug programs written in C C and Visual Basic to run with Windows CE you can use Microsoft Visual Studio 2005 8 2 1 Installation Additionally to the installation DVD of Microsoft Visual Studio 2005 the following software components must be on hand or installed Microsoft NET Framework 1 1 Microsoft NET Framework 2 0 Service Pack 1 for Microsoft Visual Studio 2005 Microsoft NET Compact Framework 2 0 Service Pack 1 for Microsoft NET Compact Framework 2 0 Service Pack 2 for Microsoft NET Compact Framework 2 0 i MX35 TQS SDK Microsoft Windows Mobile Device Center or Active Sync BSPa35 WinCE UM 201 F Page 42 of 58 r a ee ee ee EE Hqw9 sjuauodwog O1 Aq L0zO LOe WN ADUIM SEFdSA la components Steps for installation Note If one or more of the following software components are already installed please skip the appropriate installation 1 Microsoft NET Framework 1 1 Microsoft _NET Framework 2 0 Microsoft Visual Studio 2005 Service Pack 1 for Microsoft Visual Studio 2005 Microsoft _NET Compact Framework 2 0 Service Pack 1 f
27. al media CFCard USB stick you have to add the path to this media to the system path variable Example HKEY_ LOCAL MACHINE init Launch80 test exe Depend80 hex 14 00 le 00 32 00 HKEY_LOCAL MACHINE Loader SystemPath multi_sz Release cfcard test N BSPa35 WinCE UM 201 Page 51 of 58 la components 8 4 ActiveSync 8 4 1 Required Components The following components of the catalog must be added to your OS design 1 Core OS Windows CE devices Applications End User File Sync EE Fiter A lt Search gt E BSP B Core os 5 0 CEBASE B Applications End User HL ActiveSync CAB File Installer Or i Games i v Help i Remote Desktop Connection Terminal Emulator Windows Messenger v WordPad H A Applications and Services Development m Communication Services and Networking H 0 Core OS Services 6 Device Management H 0 File Systems and Data Store H Fonts 1 9 Graphics and Multimedia Technologies H International H Internet Client Services H 0 Security 0 Shell and User Interface H 0 Voice over IP Phone Services 0 Windows Embedded CE Error Reporting Gj Device Drivers S E Third Party i BSP Fj Freescale i Mx233 EVK PDK1_7 ARMV4I Freescale i MX25 3D5 PDK1_7 ARMV4I LMX27 ADS ARMV4I zl FI renarna i MAA HIE RIE ARAL Properties ylSolution Explorer FZ Class View Catalog Items
28. alled update there should be file in HTML and Rich Text format with detailed information about the update A Updates of x Datei Bearbeiten Ansicht Favoriten Extras ay Q arik Q wi Suchen jy Ordner fz Adresse E C WINCE600 Updates gt Wechseln zu Ordner x Name SK aj Backup SUPPORT a 5 SUPPORT PDK1 7 WinCEPB60_090131_2009M01_License rtf SUPPORT_PDK1_9 Ei WinCEPB60_101231_2010_Product_Update_License rtf So Updates i ja El WinCEPB60_R3_2009_License rtf E Backup Windows Embedded CE 6 0_Product_Update_Rollup_2008 htm m 081231 2008 A Windows Embedded CE 6 0_Product_Update_Rollup_2010 htm 090131 2009M01 Windows Embedded CE 6 0_R3_2009_Update_Rollup htm 101231 2010 Windows Embedded CE 6 0_Update_090131_2009M01 htm E C R3UpdateRollup_2009 winpows aa 2 Figure 1 Rollup updates Of amp amp amp H a amp 4 1 2 How to install missing updates All updates released by Microsoft until December 2010 may found on the Microsoft Download center page Please search for Windows Embedded CE 6 0 Cumulative Product Update Rollup Package through 12 31 2010 and install them BSPa35 WinCE UM 201 Page 9 of 58 la components 4 2 Installation of the BSP The BSP consists of 2 parts One is the original BSP of Freescale found on Free Scale BSP
29. ch Updates are already installed 00 2c0cccccccescsesertneeeneneeeseneceneereeneunesnnacuerneneners 9 4 1 2 Howitoinstalimissingupdates se a ce a E a E 9 4 2 Installation On te BSP nieee aa R ER E E E EE 10 4 3 Installation of the Demo Workspaces ices ias Secececececxew aie secure eaxevenresserneseexaundtenveecreremununs 10 4 3 1 Contents of the TQMa35 _SampleWorkspace ccccceesessscceeeeeeeeeseeeeeeeeeeenenees 10 4 4 Removal of a Demo WWIK SPACES rc ciecathe orev ati Ce eee ean 10 5 Creating a New OS Design Based on the TQMa35 BSP ccccccceeeeeeeseseceeeeeeeeeeeeeenseaeeeeeeeees 11 5 1 CTS ANIC IN WE Workspace as cea ie eee eae sees aah E ears 11 5 2 How to Add Drivers and OS Components cago sac ccpatetecsscieeccnererccceersavecnccereraneperesdeecerecuness 15 5 3 OS Design Contiguration essaiera EE E E EE EE 16 5 3 1 Deb g Port Ss EVE CHM ANGI occ eee eae ee a ee eee 16 5 3 2 Voucmealibratio rm eaa nee Pere rete tien eee een E ene re eee 16 5 3 3 Build Options a a reer ee err eer aie te re ree etre Am terre Mere eae te reerrere eee ears ream eter err eee 17 5 3 4 Language settings r aar eee ec een eee ner ne eae re eee ee eee 17 5 3 5 Environment Variables errereen n E EE E RE E 18 5 4 Buildi ngthe OS Designee eu ene e a a a he terme a a N 20 5 5 Downloading the Run Time Image via Ethernet cceccecccceeeeeeeeeeceeeeeeeeeteseesnaeeeeeeees 20 5 5 1 Coe ea eee een eee eee re ee 21 5 5 2 Configuring Ethernet C
30. connect to At the moment the Active Devices list will be empty Now start your TQMa35 module When the Startup menu appears just press Space and D to choose the download option EBOOT sends a broadcast message to the Visual Studio and your device will show up in the Active Devices list as MX35XXXXX where XXXXX is a number depending on your network card s MAC address If your device does not show up in the list of active devices precede to chapter Debugging the download connection and Configuration Options of the EBOOT It is possible that the option auto boot is not set to Disabled Select the device and click OK Now your device is selected for both Downloading and Debugging H Ethernet Download Settings e Target Device Connectivity Options licik Target device boot name Device Configuration s04 Add Device aa X IP address 192 168 2 76 Delete Device Boot loader 1 0 Download Service Configuration Ethemet fc Kernel Service Map Core Service Settings Transport Serice Status Ethemet z Settings ti Debugger ira KdStub hd Settings Prompt On Error TFTP block size in bytes 512 Restore Target Device has been added hi Figure 18 Selecting an active target device Click Apply and then close the dialog Now you can select Attach from the Target menu in the Visual Studio IDE A new dialog will appear and the download of the run time image will start If not then reboot the TQMa35 module an
31. d as GPI1 CreateFile open a handle to the device CloseHandle close the handle DevicelOControl access to the driver e lIOCTL_XXX_GETVERSIONINFO defined at bsp_verion h returns the driver version as a structure DRV_VERSION_INFORMATION e JIOCTL_GET_LEVEL read one pin structure GPIO_LEVEL defined at bsp_gpio h e JOCTL_SET_LEVEL write one pin structure GPIO_LEVEL defined at bsp_gpio h Example GPIO_ LEVEL gpio DWORD dummy HANDLE h CreateFile L GPI1 GENERIC READ GENERIC WRITE 0 NULL OPEN EXISTING 0 NULL if DeviceIoControl h IOCTL_XXX_GETVERSIONINFO NULL 0 amp v sizeof v amp dummy 0 RETAILMSG 1 TEXT Versionsinformation r n RETAILMSG 1 TEXT Name S r n v cName RETAILMSG 1 TEXT Build S r n v cBuild RETAILMSG 1 TEXT Version 0x x r n v ulVersion else RETAILMSG 1 TEXT Versionsinformation kann nicht gelesen werden r n Schalte USER LED1 ein gpio pin USER_LED1 pin 12 gpio level 1 an DevicelIoControl h IOCTL_ SET LEVEL amp gpio sizeof gpio NULL 0 NULL 0 Lese Pegel von IN1 gpio pin GPI1 IC2 PIN 0 DevicelIoControl h IOCTL_GET LEVEL amp gpio sizeof gpio amp gpio sizeof gpio amp dummy 0 RETAILMSG 1 TEXT Pegel Ox x r n gpio level CloseHandle h The source of a test program can be found under testa
32. d party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt I2C Bus 7 7 2 12C Bus Driver Configuration There is nothing to configure for this driver 7 8 GPT driver The general purpose timer is a multipurpose module used to measure intervals or generate periodic output 7 8 1 Adding the GPT Driver Select the GPT component in the Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt GPT 7 8 2 GPT Driver Configuration There is nothing to configure for this driver J BSPa35 WinCE UM 201 Page 36 of 58 ee ee ee E eee Hawg sjuauodwoy o1 Aq 1 L0zO LOZ WN SADUIM SEedSa la components 7 9 Smart Backlight Control The backlight driver interfaces with the Windows CE Power Manager to provide timed control over the display backlight A timeout interval controls the length of time that the backlight stays on 7 9 1 Adding Smart Backlight Control Select the IPU Backlight Control Support on the appropriate driver component in the Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt IPU Backlight 7 9 2 IPU Backlight Driver Configuration The following registry keys are required to properly load backlight driver HKEY_ CURRENT _USER ControlPanel Backlight BattBacklightLevel dword FF Backlight level settings OxFF ACBacklightLevel dword FF Backlight level settings OxF
33. d wait for the download to begin BSPa35 WinCE UM 201 Page 23 of 58 la components Downloaded 10 of Runtime Image to TDS oN LZ a al Downloading C Projekte TQS TOS RelDir Freescale_i_M35_TDS_ ea Estimated time left 49 sec 2 8 MB of 28 0 MB copied Download through Ethernet Transfer rate 524 KB sec Tl Close this dialog box when download completes Close Cancel Figure 19 Downloading the Runtime Image After the download is finished Windows CE should start up on your target device For subsequent downloads just select again Attach from the Target menu you don t need to configure the remote connection again unless you change targets 5 5 3 Building and Downloading a Run Time Image into SDRAM Using EBOOT To build and download a run time image into the SDRAM of the target follow these steps 1 Open the desired workspace within Visual Studio 2 Deselect Project Properties Configuration Properties Build Options Write Run time Image to Flash Memory 3 Build the run time image following the steps provided in Building the OS Design 4 Reset the TQMa35 module to launch EBOOT on the target 5 If a target device connection has not been created within Visual Studio follow the steps in Configuring Ethernet Connection to establish a connection 6 From the Visual Studio Target menu select Attach Device to begin the download BSPa35 WinCE UM 201 Page 24 of 58 Hq
34. described at the WinCE help To support the different audio formats enable the codecs at Catalog Item View gt CoreOS gt CEBASE gt Core OS Service gt Graphics and Multimedia Technologies To test the SGTL5000 Stereo Audio may the used the application testwavein exe located at windows directory of the device The application records 8 seconds from the line in into the file test wav Subsequently the file is played J BSPa35 WinCE UM 201 Page 32 of 58 a ee ee eee E ae Hawg sjuauodwoy o1 Aq 1 L0zO LOZ WN SDUIM SEedSa la components 7 3 3 Buzzer The Audio Buzzer is a simple PWM generator without any volume control The driver is implemented as a stream interface device called BUZ1 CreateFile open a handle to the device CloseHandle close the handle DevicelOControl access to the driver e lIOCTL_XXX_GETVERSIONINFO defined at bsp_verion h returns the driver version as a structure DRV_VERSION_INFORMATION e lOCTL_BUZ_SET starts a tone generation the frequency and duration defined at the structure DRV_BUZZER The caller of this O Controls is blocked until the tone generation is stopped Example HANDLE h CreateFile L BUZ1 GENERIC READ GENERIC WRITE 0 NULL OPEN EXISTING 0 NULL if DeviceIoControl h IOCTL_XXX_GETVERSIONINFO NULL 0 amp v sizeof v amp dummy 0 RETAILMSG 1 TEXT Versionsinformation r n RETAILMSG 1 TEXT
35. dwoy o1 Aq 1 L0zO LOZ WN SDUIM SEedSa la components Name Values Description launchXX Name of the XX represents a number in decimal from 00 to 99 application to start Only launch numbers from 80 to 89 are valid All others are reserved dependXX hex xx yy Describes a dependency of the launched application If some other application must be started before the application defined by the launch key can be successfully launched then this entry should be used to identify that other application XX YY represents the launch number in hexadecimal of the application that must be loaded first YY is the most significant byte and therefore always 00 One or more dependent applications can be specified per dependXX value The dependXX entry is optional if there is no dependency you don t need to use it Table 8 1 Application auto start registry settings The following code example shows a typical Init registry entry using dependencies HKEY_LOCAL_MACHINE Init Launch10 shell exe Launch20 device exe Launch30 gwes exe Depend30 hex 14 00 Launch50 taskman exe Depend50 hex 14 00 1e 00 Note The application that must be started first must call the function SignalStarted to inform Windows CE when it is ready The dependent application cannot run until after the function on which it depends on has issued the SignalStarted function Note If your application is located on a extern
36. e R RE EE E EE E 32 7 2 1 Adding the SD Host Controller Driver to Your OS DeSiQn eceeeeeeeeeeeeeeeeees 32 7 2 2 SD Host Controller Driver Configuration 2 2 2 2 eccececcccceeeeeeeeeeeeeeeeeeeeeeeeeenensaeeeeeeeees 32 oA aaa a 6 0 ek ene een reer er eet pee ee eee eee ee eer eee eee eee re ere ee 32 7 3 1 Adding the Audio Driver to Your OS Design cesccccceeeeeeeeeeeeeneeeeeeeeeeeeeseeenaaeaes 32 7 3 2 SS NO cca acct EE R E EE E A EE ERRE 32 7 3 3 Buzze oiee E E E E E EE E E E 33 7 4 LMZ5 Temperature Sensor ene ocen a E E E cates 33 7 4 1 Adding the Temperature Sensor Driver to Your OS DeSIQN ceeeeeeeeeeeeeeteees 33 7 4 2 How to Use the Temperature Sensor Driver eeecccecceeeeeeeeeeeeeeeeeeeeeeeeeeeeenaeees 34 7 5 senal POns VARTS re a E a e ere ee ee EE 35 7 5 1 Adding Serial Drivers to Your OS Design se secccececes cee erase ereceedcuemaveescnpermenraees 35 7 5 2 Serial Driver CGontig ratio Ma eree a e REE E EE EER 35 7 6 Foucm Panel Support e a E E E a E N eee 36 7 6 1 Adding the Touch Panel Driver ca crecereceee uae cceretcmcenmig ar opecaneiaiebae ernie mec pacecmene 36 7 6 2 Touch Panel Driver Configuration eemereem rer erm nere am eer rem errs amr eeererurrnr rae e cere errr cere 36 7 7 2C BUS IDNIVE i n e a a ee E E E error re eer re 36 7 7 1 Adding the 26 Bus DrVerrereer ecen E E EE EE 36 7 1 2 120 Bus Driver Contig ration carene ee ete entre a E a teeter penne mtr erererne
37. ee ee eee emer 41 PVN Adding the SPLBUS Drivers ee eee ee es a ee e ea eae 41 Palace GSP Bue Driver Gontig ration serae E RE E 41 N BSPa35 WinCE UM 201 Page 3 of 58 SS E 8 9 la components Table of Contents Developing Applications aa nra rer mre ter Ue cer E E E E E E eer eres 41 8 1 Creating an SDK trom Yo r OS DeSigMa sere eea EE E E ERR 41 8 2 Developing with Visual Studio 2005 snnsennneoooeennnnrnreeereeerrnnnrrerererennnnnreeeeeenennnnneeeeeenne 42 8 2 1 metalation e cers E N A E A N A E 42 8 2 2 Generate a Simple GO SC lice erisir irene E RARE AREE EAEE TERR 43 8 2 3 Establish a Connection between VS 2005 and the CE Device ssssseeeeeeserrrreeee 45 8 2 3 1 Startup over Active Sync Transport over Ethernet ccccccceeeeeeeeeeeeeeeeeeeeeeees 45 8 3 Application Deployment cerere ccrene Ra E EE E E ERE EEE 49 8 3 1 Adding Applications and Files to Your OS Design cccceeeeeeeeeeeteeeeeeeeeeeteeeneaeees 49 8 3 2 Auto Start up of Windows CE applications ccccsccccceeeeeeeeeseeeeeeeeeeeesensneneeeeenees 50 8 4 AGU VN per cee ieee Gree ae ete ere ere eee a eee 52 8 4 1 ReguirediGomponents es aaae aaa Sa cae re oad ro 52 8 4 2 Establish a Active Sync Connection Over Serial Port s ssssssssessessseeeeeeees 53 8 4 3 Establish a ActiveSync Connection over USB 0 ceeeeeceeeceeeeeeeeeeeneeeeeeeeeeeeeeenaaaees 54 Additional Customizations
38. en Release Directory in Build Window Microsoft isual Studio Project Build Debug Target Tools Window Community d g Build Solution F7 Rebuild Solution Ctrl Alt F7 Iml Clean Solution Build TQS lution TOS Rebuild TQS c hy Clean TQS ie Advanced Build Commands gt mediaapps netcfy2 netcFy35 parE Build All SDKs it rdp script Copy Files to Release Directory solvers Make Run Time Image shell shellsdk E Open Release Directory in Build Window speech Global Build Settings gt SOLCE sqlcompact Targeted Build Settings gt vor Batch Build wceappsfe mT Figure 12 Open Release Directory Use the set command to get a list of currently set environment variables for your OS design BSPa35 WinCE UM 201 Page 18 of 58 Hqw9 sjusuodwog O Aq L0zO LOe WN ADUIM SEFdSA TQ components TQS Freescale i_MX35 TDS ARM 4I Release PROJECT ROOT C Pro jekte TQS TQS Wince666 iMk35 TQS_ARMU PROJECTS DKROOT C Pro jekte TQS TQS Wince6QG iMK35 TQS _ ARMUAI sdk PROJPUBLICROOT C Pro jekte TQS TQS WINCE666 PUBLIC PUBLICROOT C WINCE6 public SDKDRIVE C S DKROOT C WINCE6 sdk TARGET PLAT ROOT C WINCE6G plat f orm iMk35 TQs RN S w pn iz oS za c m I 4 Q 4 oO a D Zz 4 c A TGTCPUFAMI LY ARM TGTHWREU 2 E TGTPLAT iMX35 TQS ee TETIT 44 ozo At ioc C trj m gt
39. ers To enable the Telnet server you have to add additional registry keys e g In your project reg file as shown below HKEY LOCAL MACHINE COMM TELNETD TsEnabled dword 1 set to 0 to disable the telnet server UseAuthentication dword 0 anonymous access allowed Note The settings above will allow anonymous access to your system There is no password required as long as the UseAuthentication Key is set to 0 If you wish to protect the integrity of your system by adding a degree of security however you may enable the password feature in Telnet To do this set the UseAuthentication key to one The Telnet server will then ask for a login and password before establishing a connection To connect via Telnet simply open a Command Prompt in Windows XP and do a Telnet to the IP address of your target system e g telnet 192 168 2 76 You can close the connection by simply typing exit at the command prompt gli Telnet 192 168 2 76 Welcome to the Windows CE Telnet Service on WindowsCE Pocket CMD v 6 08 gt dir Directory of 61 61 98 lt DIR gt MMCMemory 61 61 68 lt DIR gt Application Data 61 61 68 lt DIR gt profiles 61 61 68 lt DIR gt Documents and Settings 61 61 06 Control Panel ink 61 61 68 lt DIR gt My Documents 61 61 68 lt DIR gt Program Files 01701700 lt DIR gt Temp 61 61 68 lt DIR gt Windows Found 9 file lt s gt Total size 23 bytes 1 Dirts gt 22757376 bytes free Fig
40. es 36 7 8 IER ht 2 ene a a a e ere a E a een eee 36 7 8 1 Adding the GRIT Driver oe eee a reer eee E eer ee eee E eee reer 36 7 8 2 OP Bis ge eel Coniguratione e anae a E E eee cee nee eee 36 7 9 Smat Backighi Control a aena e E E e re OE a eer a reer 37 7 9 1 Adding Smart Backlight Controler se cccuedeasscecceceewncce canvas E EE 37 7 9 2 IPU Backlight Driver Configuration sssseeeessesenerrnrressrerenrrnnrrsstrrrerrnnnrssrrrnnrnnneneeet 37 AOO ce eee ee re re eer ere eee 37 PAO gt sOOinOine rR UG Arver aee aee a E E score arate mee E A 37 hae OP Ss CAVE configuration ra senses cer eaten ee ats hana ee ae aes e toa 38 TAI OPIO e ecco er cr rrr eee reer E ere ere eee cree ree 38 711 1 Adding TNE GP IOV Gl coreene eteecercs veneer E E EEE 38 7 11 2 GPIO driver default Corian Seseren eset eee eter cee eee 38 711 3 How to use the GPIO OTIVST cecinoniseeren E ORR E REER 39 she ORGANI EI coe a a E ase A a ve eyo oe E E E a 39 7 12 1 Adding the MCP2515 CAN Driver to Your OS Design ceeeeeseeeceeeeeeeeeeeneneeeees 39 7 12 2 Freescale CAN Driver Configuration and USage ccceeeeeeeeeseeceeeeeeeeeeesenaneees 39 Ee EDN Me cee eee eee Pe a 40 7 13 1 Adding the EE Driver to Your OS Designs ccc secee cctv ceese Gases censecaraceh sess sectenerasevaeesseceers 40 713 2 EEPROM Driver Configuration and Usage s ucciccccciccuinscccececesmeisientecersneinvanetinceeeneane 40 Cas meg dU 1 og gh ence ee ee eR ee Ce
41. f 58 la components 5 5 2 Configuring Ethernet Connection for Downloading and Debuggin To configure an Ethernet connection that can be used for downloading and debugging images follow these steps 1 From the Visual Studio Target menu select Connectivity Options Then select Add Device and choose a name for your target device In our example we choose TDS as target device name Target Device Connectivity Options Enix Add Device New target device name TDS Associated OS Design SDK Optional Service Configuration none Kernel Service Map Core Service Settings Service Status Figure 16 Add a new target device name After you clicked Add the Kernel Service Map tab will be opened automatically Target Device Connectivity Options Device Configuration Add Device Target Device gt Tos z Delete Device Download Service Configuration Ethemet Settinas Kernel Service Map oreo Transport Service Status Ethernet X Settings ia Debugger KdStub hd Settings Prompt On Error Soe ue Target Device has been added Figure 17 Target download settings BSPa35 WinCE UM 201 Page 22 of 58 a a G Hqw9 sjuauodwog O1 Aq L0zO LOe WN ADUIM SEFdSA la components Make sure that Ethernet is selected for both Download and Transport Click the Settings button of the Download option A new dialog will appear where you can choose the device to
42. gelesen werden r n t reg 0 Temperatur lesen if DeviceIoControl h IOCTL_GET TEMP amp t sizeof t amp t sizeof t amp dummy 0 RETAILMSG 1 TEXT Temp d 10 C r n t value else RETAILMSG 1 TEXT Fehler r n CloseHandle h A demo program testtemp exe is included in the BSP To execute the demo please open a telnet window and type testtemp exe The program will display the temperature values read from the LM75 temperature sensors The source code of this demo program can be found under testappl testtemp BSPa35 WinCE UM 201 rd ri Page 34 of 58 Hawg sjuauodwog OL Aq LOZO LOZ WN S0UIM SEedSa la components 7 5 Serial Ports UARTs Serial ports one RS232 one RS485 are used e g for debug or to connect external devices 7 5 1 Adding Serial Drivers to Your OS Design You can add up to three serial ports through the Visual Studio IDE Select UART1 and or UART2 component in the catalog Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt Serial 7 5 2 Serial Driver Configuration Because the serial UART1 is also used as debug interface a control panel applet dbgena cpl is included in the BSP After enable disable the debug interface the registry should make persistent flushreg File View kh x O A 2 EDS De a AD tS A w i B gt EN E
43. he following messages INFO Flashing sequence complete Reboot the device manually SpinForever Do you want to reset Y N Warning DO NOT SWITCH OFF THE POWER SUPPLY DURING FLASH UPDATE 11 Close the Visual Studio workspace for EBOOT nb0 It is not necessary to save any workspace changes 12 Reset the target hardware If you see new EBOOT messages appear on the terminal EBOOT has been properly programmed into NOR flash BSPa35 WinCE UM 201 Page 30 of 58 a 2 ee ene E EE ae Hawg sjuauodwoy o1 Aq LOZO LOZ WN S0UIM SEedSa la components 7 Device Drivers This chapter describes the individual settings for the included device drivers of the BSP Note If you want to create more than one workspace with different driver settings e g one with DHCP and another one with static IP Address you will have to relocate the driver registry settings from the BSP platform reg to your workspace project reg 7 1 USB 7 1 1 USB OTG Drivers The USB OTG driver provides high speed USB 2 0 host and device support for the USB On The Go OTG port of the TQMa35 module The OTG driver will automatically select either Host master or Device slave functionality for high speed at any given time depending on the USB OTG Pin configuration This is achieved by the set of three drivers USB OTG host controller driver USB client driver and or USB transceiver controller Fu
44. it L2 cache is enabled AUXCR 0x3001b OEMGet Ext ensionDRAM OALPmicInit Trying to init PMIC I2C Interface OALI2cGenerateStop Bus not cleared for 1000 cycles INFO OALPerRegRead Registry read start INFO OALPerRegRead Registry read start INFO OALPerRegRead Registry read done 0 Debug configure debug port Debug REGISTRY HKLM DEBUG dword dbgSerial 0 BSPa35 WinCE UM 201 Page 53 of 58 la components On the target device open the start menu select Settings and then Network and Dial up Connections Programs gt Sg Favorites gt Documents gt E Settings A 3 Control Panel S Network and Dial up Connections 2 Taskbar and Start Menu Figure 41 Network and Dial up Connections A new window opens with an icon named Make New Connection Make a double click on this icon in the new dialog type a name for the connection select type Direct Connection and hit Next gt The next dialog prompts for selecting a device i MX35 COM1 Unimodem After you hit Finish a new connection symbol with the name you chose appears in the Network Connection window Open the control panel and double click on PC connection Click on the change button and select the connection you have just created By double clicking this symbol the system tries to establish a connection to the host PC If no host PC running ActiveSync is available the device tries to connect a few times then it
45. ll Function driver which performs the host function client switching The USB host driver can be configured for class support for mass storage HID printer and RNDIS peripherals The device client portion can be configured to provide one of mass storage serial or RNDIS function Note The USB OTG port can only be configured in one of the 3 possible device roles mass storage serial or RNDIS The role is set with DefaultClientDriver value under the HKEY_LOCAL_MACHINE Drivers USB FunctionDrivers key The Full Function OTG transceiver driver automatically selects between the host or client driver The host or client can also be configured as the only mode for the OTG port using the Pure Host or Pure Client catalog item All the OTG catalog items are exclusive 7 1 1 1 Adding the USB OTG Drivers Depending on the desired functionality select one of the entries Full OTG Function Pure Client Function or Pure Host Function in the Catalog Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt USB Devices gt USB High Speed OTG Device 7 1 1 2 USB OTG Drivers Configuration There is nothing to configure for this driver BSPa35 WinCE UM 201 Page 31 of 58 y la components 7 1 2 USB Mouse and Keyboard Support To have support for USB keyboards and mice add the USB HID Keyboard and Mouse component to your OS design Catalog Item View gt Core OS Service
46. meee een er Pe ee eer Pere rae ey ee ier see estar ere eer eee eee reer 55 9 1 Windows GE SGGM GO MGS cone e eena a A traits tion ete ae ae 55 9 1 1 Felnet Server cere a a E a a A E AA A ER A a E a orate 55 9 1 2 EU tO Gs isos cea a ea cara tec Ne E E E E 56 9 2 Changing of the Appearance of Windows CE ccceeeeeeeeececeeeeeeeeeeeeeeseaeeeeeeeeeeteneas 57 9 2 1 Changing the Desktop Wallpaper ici cesc cinceccivevresussmceresvhacorasecurerepenees deere renwenreiane 57 9 2 2 Hidingitheslaskbars r Meese a a a a A ee ere 57 9 2 3 Changing the Folder Name of Storage Devices sesssseesnenesseerrrrnerrrrrrrnrreserrrnne 57 9 2 4 Setting p the Time Zone to GM Meroe eter siii eare ree rer Ee EEE ee 58 BSPa35 WinCE UM 201 Page 4 of 58 a a eee Hawg sjuauodwoy o1 Aq 1 L0zO LOZ WN SDUIM SEedSa la components Revision History Rev Date Name Pos Modification 0 01 01 03 2011 Boerner Initial draft 1 About This Manual 1 1 Terms and Conventions Symbol Tag Description This symbol represents important details or aspects for working with the BSP Warning Note Helpful information for working with the BSP This specification is used to state the complete file name with its Filename ext l corresponding extension Examples of applications E g Instructions e Specifying memory partitions Examples e Processing a script Reference Cross reference
47. menu The build process can take more than 5 minutes to build the run time image depending on the number of included components and the host CPU After a successful build the Windows CE run time image a file called NK BIN respectively NK nbO can be found in the release directory i e for the sample workspace TQS and the release configuration _ would be _WINCEROOT OSDesign TQS TQS Re Dir Freescale_i_MX35_TDS_ARM4I_Debug NK BIN 5 5 Downloading the Run Time Image via Ethernet The Ethernet boot loader EBOOT is used to download and execute OS images EBOOT is typically written into NOR flash memory on the TQMa35 module and executes immediately out of reset Initially the target hardware will have EBOOT resident in the NOR flash memory In addition the target hardware has non volatile storage for the EBOOT network configuration DHCP static MAC address etc that must be initialized before using the boot loader with Visual Studio This section will describe the procedure for updating and configuring EBOOT on the target hardware BSPa35 WinCE UM 201 Page 20 of 58 4 a es ee Hawg sjuauodwoy o1 Aq LOZO LOZ WN SDUIM SEedSa components 5 5 1 Connect the target To connect the target at a minimum following connections should exist Ii So RS232 Power 12V 115200 8 1 Figure 15 Connect a target Please examine whether after switching on the Network LED turns on X BSPa35 WinCE UM 201 Page 21 o
48. ng an SDK from Your OS Design Note Before building the SDK please do a Sysgen of a Release Run Time Image of your OS Design Start the Visual Studio IDE open your workspace and select Add New SDK from the Project menu TQS Running Microsoft isual Studio File Edit View Project Build Debug Target Tools Window J a Add New Subproject Elp ld il Add New SDK Device TDS Add Existing Subproject Add Existing SDK Solution Explorer Sol RN BEJ h FEN X Delete Del i a Gay PRN a a PUB Project Dependencies H a H Ga Project Build Order H a TQS Properties Alt F7 H yj ran Fin daaah Figure 23 Create a new SDK BSPa35 WinCE UM 201 Page 41 of 58 la components Choose a unique name for the SDK enter the name of your company and hit Ok SDK2 Property Pages 2 1 Ee Pages General SDK Name Genera MSI Folder Path Company Name TOS Company Website www tq group com Install Test_imx35 Install C Projekte TQS TOS SDKs SDK2 MSI License Terms License Terms Readme Product Name Readme MSI File Name CPU Families Im35 SDK CPU Families SDK2 msi Development Languages Development Languages Additional Folders Product Version Additional Folders Locale Emulation Major fT Minor 0 Build 0 Emulation Jus Engish z Abbrechen bemehmen Figure 24 Setting up the SDK properties
49. onnection for Downloading and Debugging eee 22 55 3 Building and Downloading a Run Time Image into SDRAM Using EBOOT 24 5 5 4 Build and Downloading a Run Time Image into NOR Flash Using EBOOT 25 5 5 9 Running a Run Time Image from NOR Flash Using EBOOT eeeeeeteeeteeees 25 5 5 6 Debugging the download CONNMECTION ccceeeeeeeeeeeeeeeeeeeeeeeeeenenaaeeeeeeeeeeeeeenaaaes 26 6JFEBOOIBOOI Loader eaa a A ee R A a E en 27 6 1 Configuration Options of the EBOOT Boot Loader 3 c 2 c ccseesgscctcesadeneeesseeadeeesesevcdeasis 27 6 2 Updating the EBOOTDoot loader e ssnocerees i E 30 BSPa35 WinCE UM 201 Page 2 of 58 Fi a A ee ee ee Hawg sjuauodwoy o1 Aq LOZO LOZ WN SADUIM SEedSa BSPa35 WinCE UM 201 2011 by TQ Components GmbH la components Table of Contents ZA DEVICE Dg 2 got EE a re ree rete Per ne re ne oe reer ee cree ee er cere eee eer an 31 7 1 Sy ere ee eee rr or eer reer ee res eres Ergin E er erate ey tere rer her enor rer ete eerie 31 7 1 1 USB OC aD ee eee ee E E E R RER E E EERE E 31 Ti 11 Adding the USB O TG Drivers nni eee e een etree eee eee 31 7 1 1 2 USB OTG Drivers Configuration secescuccevae ceerncosncess ceenme reise cretmerere mee oecoaee 31 Pe USB Mouse and Keyboard SUPOOMssiiie vei ete teres ees cecteeteeniee Gee cseeetiveiesteecie 32 1413 USS eB Printer sStpporl Ana ea o E a a E es Rn E E E 32 7 2 SD Host Controllers ceecee r
50. ontrol Test Container i C Test cpp ReadMe txt 4 Create GUID Dotfuscator Community Edition Error Lookup ATL MFC Trace Tool ILDasm Spy Visual Studio 2005 Command Prompt External Tools GP Device Emulator Manager Import and Export Settings Customize Figure 30 Device Options BSPa35 WinCE UM 201 Page 45 of 58 Hqw9 sjusuodwon oO1 Aq 1 10zO Figure 31 selection platform device Configure the IP address of the target depends from the network infrastructure Properties gt Configure TQS iMX35 ARMV4I Device Properties Configure TCP IP Transport Figure 32 configure the IP address of the target LOZ WN AOUIM SEFdSE BSPa35 WinCE UM 201 Page 46 of 58 File Edit View Project Build Debug Target Tools Window Community Help H o s5BB 9 C Platform Builder for CE 6 0 5k Attach to Process ios Fa Be 3 Solution Test 1 project 5 GA Test E Header Files _ n stdafx h S E Source Files os 64 stdafx cpp i bis c Test cpp i E ReadMe txt ActiveX Control Test Container Create GUID Dotfuscator Community Edition Error Lookup ATI MFC Trace Tool Figure 33 connect to Device Hint Not ever the iMX35 TQS is selected as default The Connecting message box appears and reports the connection status Connecting 2 x
51. or Microsoft NET Compact Framework 2 0 Service Pack 2 for Microsoft NET Compact Framework 2 0 i MX35 TQS SDK Microsoft Windows Mobile Device Center or Active Sync oO AON Oar oO DN 8 2 2 Generate a Simple Project Run the visual studio and select a new project File Edit View Project Build Debug Target Tools Window Comm Open Add gt O Eile Ctrl N Project From Existing Code a _ Close s m Alaca Cahitian Figure 25 Generate a new project ew project e BS a Project types Visual C ATL Visual Studio installed templates CLR gl ATL Smart Device Project a8 MFC Smart Device ActiveX Control Ganra SI MFC Smart Device Application ali MFC Smart Device DLL MFC Win32 Smart Device Project Smart Device Win32 My Templates G2 Other Languages search Online Templates Other Project Types Platform Builder for CE 6 0 A Win32 or Console project for Windows Mobile and other Windows CE based devices Name Test2 Location C Users Boerner Documents Visual Studio 2005 Projects X Browse Solution create new Solution gt IV Create directory for solution Solution Name Test2 ce JE Figure 26 project type BSPa35 WinCE UM 201 Page 43 of 58 Hqw9 sjusuodwon o1 Aq 1 10zO e ece LL Figure 28 application type Select the platform as a Console Application The Visual Studio generates a simple Applica
52. ormats date and time formats etc specific to each country MyOwnProject Property Pages fa Eg Configuration Active Freescale i_Mx35 Platform N A v Configuration Manager E Common Properties E Configuration Properties General Locale Build Options Environment Custom Build Actions Locales M Afrikaans O Albanisch Clear All O Arabisch Agypten O Arabisch Algerie C Arabisch Bahrain x Subproject Image Settings Defauk locale Englisch USA X Codepages E 437 OEM United States O 708 Arabic ASMO 708 720 Arabic Transparent ASMO O 737 OEM Greek 437G O 775 OEM Baltic IV Localize the build J Strict localization checking in the build Abbrechen bernehmen Figure 11 Locale settings N BSPa35 WinCE UM 201 Page 17 of 58 la components The default language specifies the language of the Windows CE user interface buttons menus windows etc To set the default keyboard layout which is independent from the default language please refer to chapter Setting the Default Keyboard Layout 5 3 5 Environment Variables The build process of an OS design is controlled by environment variables In the tab Build in Open Release Directory in Build Window you can set additional environment variables for your workspace To check which environment variables are set open the release directory Build gt Op
53. perature Sensor Driver The LM75 temperature sensor driver supports the Windows CE standard stream driver interface TMP 1 and TMP2 CreateFile open a handle to the device CloseHandle close the handle DevicelOControl access to the driver lIOCTL_XXX_GETVERSIONINFO defined at bsp_verion h returns the driver version as a structure DRV_VERSION_INFORMATION IOCTL_GET_TEMP read one value from the temperature IC structure TEMP_STRUCT IOCTL_SET_TEMP write one value from the temperature IC structure TEMP_STRUCT reg R W Value Bezeichnung 0 R temperature 10 C value 550 corresponds 55 0 C Temperature 1 R W Zu schreibender Registerwert Config 2 R W temperature 10 C value 550 corresponds 55 0 C THYST 3 R W temperature 10 C value 550 corresponds 55 0 C TOS Table 7 1 LM75 Register Example HANDLE h DWORD dummy DRV_VERSION INFORMATION v TEMP _ STRUCT t h CreateFile L TMP1 GENERIC READ GENERIC WRITE 0 NULL OPEN EXISTING 0O NULL if DeviceIoControl h IOCTL_ XXX _GETVERSIONINFO NULL 0 amp v sizeof v amp dummy 0 RETAILMSG 1 TEXT Versionsinformation r n RETAILMSG 1 TEXT Name S r n v cName RETAILMSG 1 TEXT Build S r n v cBuild RETAILMSG 1 TEXT Version 0x x r n v ulVersion else RETAILMSG 1 TEXT Versionsinformation kann nicht
54. ppl testgpio 7 12 CAN Driver The CAN driver adds support to your OS design for the Freescale CAN controller located on the TQMa35 CPU module 7 12 1 Adding the MCP2515 CAN Driver to Your OS Design Select one or both CAN interfaces in the catalog Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt CAN 7 12 2 Freescale CAN Driver Configuration and Usage There is nothing to configure for this driver For a detailed description of the CAN interface please look on the Freescale homepage BSPa35 WinCE UM 201 Page 39 of 58 TQ components 7 13 EEPROM Driver The TQMa35 EEPROM driver adds support for access the EEPROM as a standard file 7 13 1 Adding the EE Driver to Your OS Design Select the EEPROM driver component in the catalog Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt 12C Devices 7 13 2 EEPROM Driver Configuration and Usage There is nothing to configure for this driver All functions concerning the EEPROM are controlled via the stream interface at EPR1 CreateFile Open a handle to the device up to 10 instances may open Seek Move the read write pointer FILE_END FILE_CURRENT FILE_BEGIN for the next command and returns the current file position WriteFile Write the buffer into the EEPROM A wrap around is blocked by the driver ReadFile Read a number of bytes into the buffer Close
55. r TQS Board Freescale i Mx27 ADS ARMV4I Freescale i MxX28 EYK PDK1_9 ARMV4I Freescale i MX31 3D5 ARMY4I Freescale i Mx31 ADS ARMV4I Freescale i MX32 ADS ARMV4I1 Freescale i MX35 3D5 PDK1_7 ARMY4I Freescale i Mx35 TQS ARMV4I Freescale i Mx51 EYK PDK1_7 ARMV4I MainstonelII PX427 ARMV41 Select one or more BSPs for your OS design Hawg sjuauodwo9 01 Aq LOZO Note Only BSPs supported by installed CPUs are displayed in the list lt Previous u gt Finish Cancel Figure 3 Creating a new platform Step 3 Please choose the FreeScale i MX35 TQS BSP as base for your new OS design The next step is to choose a predefined design template of the OS design being created You should select the configuration which has the best conformity to the OS design you need Windows Embedded CE 6 0 0S Design Wizard 2 x Windows Embedded CE 6 0 OS Design Wizard 21 x RI Design Templates Ry Design Template Yariants Available design templates Variants Consumer Media Device 4 design template is a set of predefined Industrial Controller Custom Device catalog items Internet Appliance Gateway Choose the design template that is most closely aligned with the purpose of your Small Footprint Device target device Thin Client Provides the starting point for an industrial automation device such as a human machine interface H
56. r functions to modify similar memory addresses KITL Work Mode If KITL is active the network adapter may be used as a polled or interrupt interface KITL Enable Mode Enable Disable KITL KITL Passive Mode Switch between active and passive KITL Active KITL will try to connect a Visual Studio to establish a debug connection via Ethernet Passive KITL will just print out the debug messages to UART1 Save configuration Saves the current configuration to NOR flash Download image now Immediately starts a download connection to load a run time image from Visual Studio Launch Existing Flash Resident Image Now Launch the run time image stored already in NOR flash Select Ether Device Select the Ethernet device for eBoot FES or SMSC MMC and SD Utilities Some utilities to write format to the eMMC Flash and SD Card L2CC Active Mode Enable Disable L2 Cache L2CC Work Mode L2 write strategy write back write trough Table 6 1 Bootloader options BSPa35 WinCE UM 201 Page 29 of 58 y la components 6 2 Updating the EBOOT boot loader WARNING Updating the EBOOT is dangerous If the updated process does not finish successful the EBOOT will not start anymore and you will have to reprogram it again via JTAG debugger Please contact TQ for more information Follow these steps to update the EBOOT image on the TQMa35 module 1 2 10 U
57. re 36 signaling an active breakpoint BSPa35 WinCE UM 201 Page 48 of 58 Hqw9 sj u auodwog OL Aq 1 10zO LOd WN SOUIM SEedSa la components Press F10 step over and on the target you will see a small message window with Hello World Figure 37 target Window 8 3 Application Deployment This chapter shows how to include applications and associated files e g DLLs in your image Further you will learn how to start your applications automatically when Windows CE has booted 8 3 1 Adding Applications and Files to Your OS Design You can include your applications and additional files e g DLLs in your Windows CE image by adding an entry in the MODULES FILES section of your project bib file E g Include an application named myapp exe with an additional DLL named myapp dll and a bitmap file In this example all files are located in a directory called _ WINCEROOT S MYAPP Add the following lines to your project bib file MODULES Name Path Memory Type MYAPP EXE _Winceroot MYAPP MYAPP EXE NK SH MYAPP DLL _Winceroot MYAPP MYAPP DLL NK SH FILES Name Path Memory Type PLASH BMP _Winceroot MYAPP PIC1 BMP NK SH MODULES is reserved for executables and DLLs Any file in the MODULES area will be fixed up to execute in place XIP Those files won t be available via the file system This is recommended especially for DLLs All files loaded by applications should be placed in the FILES section
58. se the File menu of Visual Studio and choose Open Workspace Select the appropriate EBOOT NBO file you received from TQ Note The selection of the EBOOT nb0 file see folder EBOOT on the DVD depends on the display see Direct Draw display driver RAM and NOR Flash configuration see also Memory configuration Follow the steps in Configuring Ethernet Connection for Downloading and Debugging to establish an Ethernet connection between the target and Visual Studio From the Target menu select Attach Device Select D ownload on the terminal and confirm the destination as 1 NOR INFO OEMMultiBINNotify dwNumRegions 1 dwRegionStart 0x0 Specify destination for EBOOT SBOOT NBO 1 NOR 2 NAND 3 SD MMC The eBoot should be loaded into the RAM confirm to write into the Flash Memory with Y Completed file s 0 Address 0x90000000 lLength 0x40000 Name EBOOT nbO Target FLASH WARNING Flash update requested Do you want to continue y n After the download is complete from the Target menu select Detach Device Switch over your terminal emulation application At this point EBOOT has downloaded the image temporarily into SDRAM and is ready to begin the flash programming procedure In the terminal emulation application hit the y key to begin programming the flash EBOOT will program the image into flash and provide status using serial debug messages Once the programming is complete you will see t
59. ssages INFO Flashing sequence complete Reboot the device manually Spin Forever 9 To boot the programmed image automatically follow the Instructions given in Chapter Running an OS Image from NOR Flash using EBOOT 5 5 5 Running a Run Time Image from NOR Flash Using EBOOT To execute an OS image from NOR flash that has been previously programmed using the procedure described in Downloading an OS Image into NOR Flash using EBOOT follow these steps Reset the TQMa35 module to launch EBOOT on the target Quickly switch over to your terminal emulation application and wait for the debug message Press ENTER to download now or SPACE to cancel to appear Hit the space bar to bring up the EBOOT configuration menu Continue selecting the auto boot option of the EBOOT menu until NK from NOR is selected Specify the desired boot delay using the Boot Delay menu option Save the configuration using the EBOOT menu Reset the TQMa35 module to launch EBOOT again EBOOT will automatically jump to the run time image in NOR flash after the specified boot delay NO PO Oi BSPa35 WinCE UM 201 Page 25 of 58 y la components 5 5 6 Debugging the download connection If you have problems with connecting your device through Visual Studio you can observe through a serial connection if the initiation of the network card by the boot loader works well In order to do so connect the UART1 port of your TQMa35 module
60. t Freescale i MX35 TQS ARMV4I gt Device Drivers gt RTC N BSPa35 WinCE UM 201 Page 37 of 58 la components 7 10 2 RTC driver configuration There is nothing to configure for this driver 7 11 GPIO The GPIO driver drives the buzzer pin of the TQMa35 module 7 11 1 Adding the GPIO driver Select the GPIO on the appropriate driver component in the Catalog Item View gt Third party gt BSPs gt Freescale i MX35 TQS ARMV4I gt Device Drivers gt Buzzer 7 11 2 GPIO driver default configuration The GPIO driver uses a standard Windows CE stream driver interface To access to the driver use the 1O Control interface The configuration of the similar pins is done by the software By default following states are active Pin name Value IC PIN Initial value I O GPOUT1 0 D24 P0 0 O GPOUT2 1 D24 P1 0 O GPOUT3 2 D24 P2 0 O GPOUT4 3 D24 P3 0 O GPOUT5 4 D24 P4 0 O GPOUT6 5 D24 P5 0 O GPOUT7 6 D24 P6 0 O GPOUT8 7 D24 P7 0 O GPIi 8 D24 PO0 X I GPI2 9 D26 P1 X I GPI3 10 D26 P2 X I GPI4 11 D26 P3 X I USER_LED1 12 D26 P4 0 O USER_LED2 13 D26 P5 0 0 LD_BKL_ON 14 D26 P6 0 O LCD_LVDS_ENA 15 D26 P7 0 O OVERTEMP 16 GPIO1_12 X I Table 7 2 Default states Fi BSPa35 WinCE UM 201 Page 38 of 58 a ee ee ee Hawg sjuauodwoy o1 Aq LOZO LOZ WN SDUIM SEedSa la components 7 11 3 How to use the GPIO driver The GPIO driver is include
61. tion to see something on the target add MessageBox NULL L World L Hello MB OK LOZ WN AOUIM SEFdSE to the source code BSPa35 WinCE UM 201 Page 44 of 58 la components G Test2 cpp Defines the entry point for the console if include stdafx h include lt windows h gt include lt commctri h gt Hint tmain int argc _TCHAR argv MessageBox NULL L World L Hello MB_OK return 0 Figure 29 first Application 8 2 3 Establish a Connection between VS 2005 and the CE Device 8 2 3 1 Startup over Active Sync Transport over Ethernet Note Before you start with the following steps be sure that the run time image on the target device did built in the active sync support see chapter Establish a ActiveSync Connection over USB Click on Tools Options on the main menu File Edit View Project Build Debug Target Tools Window Community Help H o l s aBl 9 CY Platform Builder for CE 6 0 gt 5h Attach to Process Ctrl alt P Device gt Fa 2o E a Connect to Device Solution Explorer Test 4ix T Connect to Database i E El u Connect to Server eq Solution Test 1 project 1 ALG Code Snippets Manager Ctrl K Ctrl 8 bint for EA Test A E Header Files Choose Toolbox Items n stdafx h es Add in Manager Resource Files 4 F E Source Files Macros gt C stdafx cpp gd ActiveX C
62. ure 42 target connection via Telnet BSPa35 WinCE UM 201 Page 55 of 58 R la components 9 1 2 FTP Server FTP allows you to transfer files to and from your target system via the File Transfer Protocol without the need of using ActiveSync To add the FTP server to your image right click on the FTP Server component in the Catalog Catalog gt Core OS gt Windows CE devices gt Communication Services and Networking gt Servers and choose Add to OS Design To enable the FTP server you have to add additional registry keys e g In your project reg file as shown below HKEY LOCAL MACHINE COMM FTPD TsEnabled dword 1 UseAuthentication dword 1 Al lowAnonymous dword 1 Al lLowAnonymousUpload dword 1 DefaultDir Note The registry settings shown above allow anonymous access to your target system This should be disabled before you deploy your OS design You should set the A lowAnonymous registry key to 0 and add a list of allowed users to the registry Search the Visual Studio Help System for FTP server User List for more information To connect via FTP simply open a Command Prompt in Windows XP and do an ftp command to the IP address of your target system e g ftp 192 168 2 76 You can close the connection by simply typing bye at the command prompt The default user ID is anonymous on password you can write as you well EN c Windows system32 ftp exe E Verbindung mit 192 168 2 76 wurde hergestellt
63. w9 sjuauodwog O1 Aq L070 LOZ WN ADUIM SEFdSA la components 5 5 4 Build and Downloading a Run Time Image into NOR Flash Using EBOOT To download a run time image into the NOR Flash of the target follow these steps 1 Open the desired workspace within Visual Studio 7 Select Deselect Project Properties Configuration Properties Build Options Write Run time Image to Flash Memory 2 Build the run time image following the steps provided in Chapter Building the OS Design 3 Reset the TQMa31 module to launch EBOOT on the target 4 Ifa target device connection has not been created within Visual Studio follow the steps in Configuring Ethernet Connection for Downloading and Debugging to establish a connection 5 From the Visual Studio Target menu select Attach Device to begin the download 6 After the download is complete switch over to your terminal emulation application At this point EBOOT has downloaded the image NK nb0 temporarily into SDRAM and is ready to begin the flash programming procedure 7 Inthe terminal emulation application hit the y key to begin programming the flash INFO Downloading NK NOR image WARNING Flash update requested Do you want to continue y n Warning A DO NOT SWITCH OFF THE POWER SUPPLY DURING FLASH UPDATE 8 EBOOT will program the image into flash and provide status using serial debug messages Once the programming is complete you will see the following me
64. with a serial port of your host computer by means of a null modem cable Use the program C WINCE600 PUBLIC COMMOMOAK BIN I386 ceterm exe or HyperTerminal to open a connection at 115200 8 N 1 INFO OALLogSetZones dpCurSettings ulZoneMask Oxb OEM Init Done Microsoft Windows CE Bootloader Common Library Version 1 4 Built Mar 17 2011 12 16 46 Microsoft Windows CE Ethernet Bootloader 1 0 for MX35 3DS Mar 17 2011 12 37 16 INFO Bootloader launched from NOR OALBspArgsInit configFlags 0x00000009 BSP System Configuration L2 CACHE ENABLED MCU PLL 532000000 Hz PER P 300000000 Hz ARM CLOCK 532000000 Hz AHB CLOCK 133000000 Hz IPU CLOCK 133000000 Hz MLB CLOCK 266000000 Hz IPG CLOCK 66500000 Hz PER CLOCK 66500000 Hz SSI1 CLOCK 100000000 Hz SSI2 CLOCK 100000000 Hz CSI CLOCK 100000000 Hz ESDHC1 CLOCK ESDHC2 CLOCK 100000000 Hz ESDHC3 CLOCK 100000000 Hz SPDIF CLOCK 100000000 Hz USB CLOCK 60000000 Hz UART CLOCK 100000000 Hz NFC CLOCK 22166666 Hz no sd card present WARNING OEMPlatformInit Failed to initialize SDHC device INFO Reading boot configuaration in NOR flash addr 0xB1FE0000 size 0x5C System ready Preparing for download 100000000 Hz Press ENTER to launch image stored in NOR flash or SPACE to cancel Initiating image launch in 3 seconds 2 seconds 1 seconds 0 seconds Launching flash image BSPa35 WinCE UM 201 Page 26 of 58 Hqw9 sjuauod
65. wog O1 Aq L0zO LOC WN ADUIM SEFdSA TQ components 6 EBOOT Boot Loader 6 1 Configuration Options of the EBOOT Boot Loader First you have to configure one COM port of your development computer with following parameters 115200 8 N 1 as shown Tera Term Serial port setup Port Baud rate 115200 Data 8 bit Cancel Stop 1 bit Help z Parity none gt E Elow control none v Transmit delay 0 msec char 0 msecjline Figure 20 COM port configuration for EBOOT boot loader BSPa35 WinCE UM 201 Page 27 of 58 TQ components After that when the device is powered up and you have connected UART1 port of your TQMa35 module with a serial port of your development computer by means of a null modem cable you can enter the configuration menu by hitting the SPACE key in your terminal program when you see the following message Press ENTER to download now or SPACE to cancel Hitting SPACE will bring up the boot loader configuration menu 0 IP Address 0 0 0 0 1 Set IP Mask 0 0 0 0 2 Boot Delay 3 3 DHCP Enabled 4 Reset to Factory Default Configuration 5 Select Boot Device NK from NOR 6 Set MAC Address FEC 0 13 45 12 33 12 7 Set MAC Address SMSC 4 3 2 1 30 82 9 Bootloader Shell I KITL Work Mode Interrupt K KITL Enable Mode Disable P KITL Passive Mode Disable S Save Settings D Download Image Now L Launch Existing Flash Resident Image
66. you have a basic OS design configuration which is ready for building and creating a run time image but still lacks the OS design specific hardware drivers BSPa35 WinCE UM 201 Page 14 of 58 Hqwy sjuauodwo9 O1 Aq LOZO LOZ WN ADUIM SEFdSA la components 5 2 How to Add Drivers and OS Components Drivers can be added to your OS design by selecting the component in the Platform Builder s Catalog Item View Catalog Items View A xXx E Fiter 2 lt Search gt gt E Freescale i Mx35 TQS ARMY4I a 3 Device Drivers Audio Audio Buzzer E 5GTL5000 Stereo Audio CAN Bus E Config CalTouch Autostart ONCE C Debug enable 3 CSPI Bus CSPI Bus 1 CSPI Bus 2 Display CHUNGHWA CLAAO7OVCO1L W 39 FEC m FEC E GPT E Pu 2c Bus I2C Bus 1 12C Bus 2 3 0 12C Devices 1 D A E EEPROM GPIO RTC TEMP MLB gO MLB E SD Controller H 0 SERIAL UART1 UART2 Smart Backlight Control E smsc SMSC By TOUCH ADS7846 USB Devices Ethernet Bootloader eboot H a Skarane Drivers of 4 b Sy Solution Explorer Catalog Items View F Class View Figure 8 Adding drivers and OS components F

Download Pdf Manuals

image

Related Search

Related Contents

RAID EzAssist™ Configuration Utility  Dakota Japan  Mode d`emploi Balances de précision/ compactes et  Fluke serie 80-5    Manual de Instruções  Course Navigation - Staffing/McState  Musica Manual - Nuova Simonelli  Manual del usuario  8 - The eBook Reader Blog  

Copyright © All rights reserved.
Failed to retrieve file