The text of a manual · part 12 of 18
MC1000 with Windows CE 4.2 Integrator Guide: Creating/Loading Hex Images, pages 69 to 78
Pages 69 to 78 of 128, from MC1000 with Windows CE 4.2 Integrator Guide
The original document is the PDF (4.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Symbol MC1000
Page 69
Creating/Loading Hex Images 6 - 11
2.
Install the SD/MMC card into the mobile computer. See SD Memory Card on page 1-9 for SD card installation instructions.
3.
Press and hold a yellow Scan button and the Power button simultaneously until the mobile computer resets into IPL.
4.
When the Initial Program Loader menu appears, release the scan button and Power button. Initial Program Loader Platform Application Windows CE Monitor Splash Screen Power Micro Partition Table Command File System Reset Auto Select
Figure 6-12 Initial Program Loader Menu 5.
Choose Auto Select or use the up and down scroll buttons to select the partition to download, then press ENT. See Table 6-2 on page 6-7 for IPL Menu partition descriptions. NOTE
6.
If the platform or application partition size changes, download a new partition table first.
IPL displays the Select Transport menu which lists the available methods of downloading the file. Select Transport
USB
SD/MMC ActiveSync Uart - Serial Previous Top
Figure 6-13 Select Transport Menu 7.
Use the up and down scroll keys to select SD/MMC transport method, then press ENT.
Page 70
6 - 12 MC1000 with Windows CE 4.2 Integrator Guide
Select File Name
10XXC42SPL002.hex
10XXC42XMON1.0.hex 1000-KH0LAXU00.hex 10XXC42APP470006.hex 10XXC42ENOS010006.hex 10XXC42PLAT470006.hex 10XXC42PM1524.hex 10XXC42PTBL470006.hex Previous Top
Figure 6-14 Select File Name Menu 8.
Use the up and down scroll keys to select the file to download.
Download File? Download
Cancel Show Parrms Previous Top
Figure 6-15 Download File Menu 9.
Use the up and down scroll keys to select Download.
10. Before the download starts, if ActiveSync Uart - Serial was selected in the Select Transport menu, Waiting for
Data appears in the Device Status field. 11. If USB was selected in the Select Transport menu, the Waiting for Download message appears.
Page 71
Creating/Loading Hex Images 6 - 13
Downloading . . . . Application via SD/MMC 10XXC42APP470006.hex
##____________________ 10%
Figure 6-16 Downloading Screen 12. When complete, Device Status displays Result was: Success!, or in the case of an error, the cause of the error.
Downloading: “Partition Name” via “Device Parameters” Result was: Success! Press any key to continue
Figure 6-17 Downloading Complete Screen 13. Press ENT to return to the IPL menu to select the next partition to download. 14. To exit IPL, select the System Reset item from the IPL menu.
Page 72
6 - 14 MC1000 with Windows CE 4.2 Integrator Guide
TCM Error Messages TCM validates the cells in the partition table when the Execute button is clicked. Cells highlighted in red contain an error. Partition loading is disabled until all errors are corrected. Table 6-3 TCM Error Messages
Error
Description/Solution
Failed to build images: flash file system DLL not loaded!
TCM could not load the DLL required to build images for the targeting flash file system. Reinstall TCM or recover the DLL.
Failure finding directory xxx
Building process failed because directory xxx was not found.
Failure creating volume
Building process failed because TCM could not create a certain disk volume.
Failure adding system file to image
Build process failed because TCM failed to add a certain system file to the disk image.
INVALID PATH
The path for the image file to build is not valid.
Nothing Selected To Build
In the Config Build window, no item is selected to build.
Illegal ESS ID
In the Build ESSID Partition window, no ESS ID was entered or the ESS ID entered was illegal.
Disk Full
TCM failed to create Hex image file at the selected path. Check available disk space.
Target Disk Full
Build process failed because TCM failed to add file to the image of a disk volume. Remove some files or increase the disk size.
Hex file is READ ONLY
The Hex image file to be created exists and is read-only. Delete the existing file or change its attribute.
Error opening the file xxx with write access
TCM could not open file xxx with write access. Check if file is in use.
Failure creating binary file
TCM failed to open/create an intermediate binary file.
Hex File To load is missing or invalid
In Load Terminal window, the file selected to load has invalid status.
Could not locate terminal name in TCM.ini file
While loading the Script Properties window, TCM could not find the TCM.ini section corresponding to the mobile computer type specified by the current opening script. Either TCM.ini or the script file is invalid.
Incorrect disk sizes in TCM.ini file
The total disk size specified in the script does not match the total disk size defined in the corresponding TCM.ini section. Check if the script is corrupt or the TCM.ini has changed after the script was created.
INVALID DIRECTORY
In Script Properties window, the selected System File Path is not a valid directory.
One of the disk sizes is one sector in size
In Script Properties window, one of the disks is too small (one sector in size). This may cause problem while building images, especially when cushion is enabled. Increase the disk size.
INVALID VOLUME NAME
In Script Properties window, one of the volume labels is not valid.
Page 73
Creating/Loading Hex Images 6 - 15
Table 6-3 TCM Error Messages (Continued)
Error
Description/Solution
Corrupt TCM.INI file! (Invalid value of VolumeDivisor)
The VolumeDivisor entry is missing or invalid in the TCM.ini. Reinstall TCM or recover TCM.ini.
Invalid version of TCM script file
The TCM script was not created by this version of TCM.
Corrupt or missing TCM.ini file
TCM could not find TCM.ini file.
FAILED CONNECTION TO COM PORT (Could not get status)
While downloading images to mobile computer, TCM failed to connect to the selected COM port. Check if the COM port is free and is properly configured.
FAILED CONNECTION TO TERMINAL (Terminal Not Connected Properly/Terminal Not Ready to Receive)
While downloading images, TCM failed to connect to the mobile computer. Check if the correct flow control protocol is selected and the mobile computer is properly connected and is in a listening state.
IPL Error Detection While receiving data, IPL performs many checks on the data to ensure that the data is received correctly. If an error is detected, IPL immediately aborts the download, and reports the error on an error screen. Error screens vary depending on the action performed. A sample error screen may look like the screen pictured below:
Downloading: Platform via Serial Port 115200 Error # -2 : Messages: Cancelled by user
Press any key to continue
Figure 6-18 IPL Error Screen
This error message screen displays until a key is pressed. Once the screen is acknowledged, IPL returns to the Initial Program Loader main menu to wait for a new selection.
Page 74
6 - 16 MC1000 with Windows CE 4.2 Integrator Guide
To find the probable cause of the error, use the error number and/or the error text displayed on the screen to look up the error in Table 6-4. Table 6-4 IPL Errors
Error Number
Error Text
Probable Cause
Unknown error
-1
A general error occurred. Retry the download. If the failure persists, it is most likely due to a hardware failure; the mobile computer requires servicing.
Cancelled by user
-2
The user cancelled the download.
Can't open the source
-7
An error occurred opening the source device (either radio card or serial port). Check source device connectivity and retry.
Can't open the destination
-8
An error occurred opening the destination device (either flash ROM or Power Micro). Retry the download. If the failure persists, it is most likely due to a hardware failure; the mobile computer requires servicing.
Can't read from the source device
-9
The source device (either radio card or serial port) could not be read from. Check source device connectivity and retry.
Can't write to the destination device
-10
The destination device (either flash ROM or Power Micro) could not be written to. Retry the download. If the failure persists, it is most likely due to a hardware failure; the mobile computer requires servicing.
Transmission checksum error
-11
An error occurred during transmission from the source device (either radio card or serial port) and the checksum check failed. Check source device connectivity and retry.
Readback checksum error
-12
A checksum, generated from reading back data that was written to the destination device, was incorrect. An error during transmission or a write error to the destination device could cause this.
There is no more heap space available
-14
There is no more heap space available for the download procedure. Restart IPL and retry the download. If the failure persists, contact service with details of what is being downloaded.
Insufficient data available to complete record
-21
A Symbol hex file download was attempted but the hex file is invalid. Ensure the file is in Symbol hex file format.
Invalid Symbol HEX file
-23
A Symbol hex file download was attempted but the hex file is invalid. Ensure the file is in Symbol hex file format.
Unrecognized or unsupported HEX record
-24
The Symbol hex file being downloaded contains an invalid or unrecognized hex record. Ensure the file is in proper Symbol hex file format.
Invalid data in HEX file
-25
The Symbol hex file being downloaded contains invalid data. Ensure the file is in proper Symbol hex file format with valid hex data.
Exceeded max size
-26
The download file is too large to fit into the space allocated for it. Either make the file smaller or increase the space allocated for it by altering the partition table.
Page 75
Creating/Loading Hex Images 6 - 17
Table 6-4 IPL Errors (Continued)
Error Number
Error Text
Probable Cause
Partition is not valid on this device
-27
The downloaded file specifies a partition entry that does not exist on the device. Only download files that are valid for this device, or change the partition table so that the new file is valid on the device.
Wrong destination code
-28
A specific partition was chosen from the Main Menu (not Auto Select) but the file selected for download was for another partition. Ensure that the partition selected from the Main Menu matches the file selected for download.
File type does not support IPL Auto Select
-29
Monitor, Power Micro and Partition Table cannot be loaded with Auto Select. Select the appropriate area, and try again.
Non-contiguous record found
-30
A Symbol hex file download was attempted but the hex file is invalid. Ensure the file is in Symbol hex file format.
Timed Out - No data
-31
IPL was waiting for data from the source device but timed out before receiving any. Check the source device connectivity and retry.
Fail: Buffer Overrun
-32
The serial port device could not keep up with incoming data. Retry the serial download with a lower baud rate.
Partition Table not Valid
-33
The size of flash memory is different than that described in the partition table. Retry the download with the correct partition table file.
Invalid file format
-34
The file format is invalid. IPL only supports Symbol hex files.
Creating a Splash Screen The MC1000 CDCP includes source bitmap files used to create the default splash screens for the mobile computer. Modify these files using any of the standard windows image editors to allow customization. To create a custom splash screen: 1.
Use the image editor to open the Splashmono.bmp file supplied with the Series 1000 DCP.
2.
Modify the bitmap file and save.
3.
Create a splash partition using the steps shown in Building the Image on page 6-6.
Splash Screen Format If the default files are not used to create the new splash screens, be sure to preserve the image format. The formats are as follows: Table 6-5 Splash Screen Format
Screen Type Monochrome
Dimensions 216 x 240
Color Format 8 bits per pixel
See Downloading the Hex Image on page 6-7 for information about loading the splash screen using TCM and IPL.
Page 76
6 - 18 MC1000 with Windows CE 4.2 Integrator Guide
Flash Storage In addition to the RAM-based storage standard on Windows CE mobile computers, the mobile computer is also equipped with a non-volatile Flash-based storage area which can store data (partitions) that can not be corrupted by a cold boot. This Flash area is divided into two categories: Flash File System (FFS) Partitions and Non-FFS Partitions.
FFS Partitions The mobile computer includes two FFS partitions. These partitions appear to the mobile computer as a hard drive that the OS file system can write files to and read files from. Data is retained even if power is removed. The two FFS partitions appear as two separate folders in the Windows CE file system and are as follows:
• Platform: The Platform FFS partition contains Symbol-supplied programs and Dynamic Link Libraries (DLLs). This FFS is configured to include DLLs that control system operation. Since these drivers are required for basic mobile computer operation, only experienced users should modify the content of this partition.
• Application: The Application FFS partition is used to store application programs needed to operate the mobile computer.
Working with FFS Partitions Because the FFS partitions appear as folders under the Windows CE file system, they can be written to and read like any other folder. For example, an application program can write data to a file located in the Application folder just as it would to the Windows folder. However, the file in the Application folder is in non-volatile storage and is not lost on a cold boot (e.g., when power is removed for a long period of time). Use standard tools such as ActiveSync to copy files to and from the FFS partitions. They appear as the “Application” and “Platform” folders to the ActiveSync explorer. This is useful when installing applications on the mobile computer. Applications stored in the Application folder are retained even when the mobile computer is cold booted, just as the Demo 1000 program is retained in memory. There are two device drivers included in the Windows CE image to assist developers in configuring the mobile computer following a cold boot: RegMerge and CopyFiles.
RegMerge.dll RegMerge.dll is a built-in driver that allows modify the Windows CE Registry. Regmerge.dll runs very early in the boot process and looks for registry files (.reg files) in certain Flash File System folders during a cold boot. It then merges the registry changes into the system registry located in RAM. Since the registry is re-created on every cold boot from the default ROM image, the RegMerge driver is necessary to make registry modifications persistent over cold boots. RegMerge is configured to look in the root of two specific folders for .reg files in the following order: \Platform \Application Regmerge continues to look for .reg files in these folders until all folders are checked. This allows folders later in the list to override folders earlier in the list. This way, it is possible to override Registry changes made by the
Page 77
Creating/Loading Hex Images 6 - 19
Platforms partitions folders. Take care when using Regmerge to make Registry changes. The MC1000 DCP contains examples of .reg files. NOTE
Regmerge only merges the .reg files on cold boots. A warm boot skips the merge process.
Typically, do not make modifications to registry values for drivers loaded before RegMerge. However, these values may require modification during software development. Since these early loading drivers read these keys before RegMerge gets a chance to change them, the mobile computer must be cold booted. The warm boot does not re-initialize the registry and the early loading driver reads the new registry values. Do not use Regmerge to modify built-in driver registry values, or merge the same Registry value to two files in the same folder, as the results are undefined.
CopyFiles Windows CE expects certain files to be in the Windows folder, residing in volatile storage. Windows CE maintains the System Registry in volatile storage. CopyFiles copies files from one folder to another on a cold boot. A cold boot copies files from a non-volatile partition (Application or Platform) to the Windows or other volatile partition during a cold boot. During a cold boot CopyFiles looks for files with a .CPY extension in the root of the Platform and Application FFS partitions (Platform first and then Application). These files are text files containing the source and destination for the desired files to be copied separated by “>”. The following example from the file application.cpy is contained on the demo application partition included in the MC1000 DCP. Also obtain this from the Support Central web site at http://www.symbol.com/support. Files are copied to the Windows folder from the Flash File System using copy files (*.cpy) in the following order: \Platform \Application Example: \Application\ScanSamp2.exe>\Windows\ScanSamp2.exe This line directs CopyFiles to copy the ScanSamp2.exe application from the \Application folder to the \Windows folder.
Non-FFS Partitions Non-FFS Partitions include additional software and data pre-loaded on the mobile computer that can be upgraded. Unlike FFS Partitions, these partitions are not visible when the operating system is running. They also contain system information. Non-FFS partitions include the following:
• Windows CE: The complete Windows CE operating system is stored on Flash devices. If necessary, download the entire OS image to the mobile computer using files provided by Symbol. The current OS partition on the mobile computer is included as part of the TCM installation package. Obtain any upgrades from Symbol. This partition is mandatory for the mobile computer.
• Splash Screen: a bitmap smaller than 16 Kb (and limited to 8 bits per pixel) appears as the mobile computer cold boots. To download a customized screen to display, see Creating a Splash Screen on page 6-17. NOTE
8 bits per pixel only applies to splash screen images. Once Windows CE is running, the color density is 16 bits per pixel.
• IPL: This program interfaces with the host computer and allows downloading via cradle or serial cable any or all of the partitions listed above, as well as updated versions of IPL. Use caution downloading updated IPL
Page 78
6 - 20 MC1000 with Windows CE 4.2 Integrator Guide versions; incorrect downloading of an IPL causes permanent damage to the mobile computer. IPL is mandatory for the mobile computer.
• Partition Table: Identifies where each partition is loaded in the mobile computer.
Downloading Partitions to the Mobile Computer Use TCM to specify a hex destination file for each partition and download each file to the mobile computer. This download requires a program loader stored on the mobile computer. The mobile computer comes with a program loading utility, Initial Program Loader (IPL), stored in the mobile computer's write-protected flash.
IPL IPL allows the user to upgrade the mobile computer with software updates and/or feature enhancements.
Partition Update vs. File Update There are two types of updates supported by the mobile computer: partitions and files. The MC1000 uses the same file system as the file system used on a desktop computer. A file is a unit of data that can be accessed using a file name and a location in the file system. Replacing a file erases the contents of the previous file. The operating system must be running for a file to be updated, so the IPL cannot perform individual file updates as it is a stand-alone program that does not require the operating system to be running. A typical partition is a group of files combined into a single “partition” that represents a specific area of storage. Examples of partitions are the flash file systems such as Platform or Application. (Using the desktop computer comparison, these partitions are roughly equivalent to a C: or D: hard disk drive.) In addition to the “hard disk” partitions, some partitions are used for single items such as the operating system, monitor, or splash screen. (Again using a desktop computer comparison, these partitions are roughly the equivalent of the BIOS or special hidden system files.) Updating a partition erases all data previously in its storage region - i.e., it is not a merge but rather a replacement operation. Typically, the operating system is not running when partitions are updated, so IPL can perform partition updates. Use TCM to create partition images for selected partitions. All partition images suitable for use by IPL are in hex file format for transfer by TCM from the development computer to the mobile computer.
Upgrade Requirements • The hex files to be downloaded (on development computer) • A connection from the host computer and the mobile computer (either serial or wireless) • TCM (on development computer) to download the files. After satisfying these requirements, invoke IPL and navigate the menu to upgrade the MC1000. See Downloading the Hex Image on page 6-7 for procedures on downloading a hex file to the mobile computer.