The text of a manual · part 11 of 18
MC1000 with Windows CE 4.2 Integrator Guide: Creating/Loading Hex Images, pages 59 to 68
Pages 59 to 68 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 59
Chapter 6 Creating/Loading Hex Images Introduction Terminal Configuration Manager (TCM) is an application used to customize flash file system partitions for the mobile computer. The most common use is to create an application partition hex file that contains the customer's application. TCM can also be used to load hex files to the flash memory of the mobile computer. The program resident on the mobile computer that receives the hex file and burns it to the flash memory is called Initial Program Loader (IPL). TCM scripts control the customization of partitions. The scripts contain all of the necessary information for building an image. The script is a list of copy commands specifying the files to copy from the development computer to the partition. TCM works with a pair of directory windows, one displaying the script and the other displaying the source files resident on the development computer. Use standard drag and drop operations to add and delete from the script window. The DCP includes scripts used by Symbol Technologies to build the standard factory installed Platform and Application partitions provided on the mobile computer. The standard Platform partition contains drivers while the Application partition contains demo applications and optional components. The standard TCM scripts can be found in the following folder: C:\Program Files\Symbol Windows CE SMDK (MC1000)\SymbolPlatforms \MC1000\TCMScripts. NOTE
Before creating a script to build a hex image, identify the files required (system files, drivers, applications, etc.) and locate the files’ source directories to make the script building process easier.
The required processes for building a hex image in TCM include:
• • • • • • •
Starting TCM Defining script properties Creating the script for the hex image Building the image Sending the hex image Creating a splash screen Flash storage.
Page 60
6-2
MC1000 with Windows CE 4.2 Integrator Guide
Starting Terminal Configuration Manager Click the Windows start menu TCM icon (Symbol Windows CE SMDK for Series 1000) to start TCM. The TCM window appears displaying two child windows: Script1 and File Explorer. The Script1 window contains a newly created script and the File Explorer window contains a file explorer view used for selecting files to place in the script.
Figure 6-1 TCM Startup Window
The following table lists the components of the TCM window. Table 6-1 TCM Components
Icon
Component
Function
Script window
Displays the files to use in the creation of the partition(s).
File Explorer window
Used to select the files to add to the script.
Create button
Create a new script file.
Open button
Open an existing script file.
Save button
Save the current script file.
Page 61
Creating/Loading Hex Images
Table 6-1 TCM Components (Continued)
Icon
Component
Function
Large icons button
View the current script items as large icon.
Small icons button
View the current script items as small icon.
List button
View the current script items as a list.
Details button
View the current script items with more details.
About button
Display version information for TCM.
Properties button
View/change the current script properties.
Build button
Build the current script into a set of hex files.
Check button
Check the script for errors (files not found).
Send button
Download the hex image to the mobile computer.
Tile button
Arrange the sub-windows in a tiled orientation.
Build and Send
Build the current script into a set of hex images and send the hex images to the mobile computer.
Preferences button
View/change the global TCM options.
6-3
Page 62
6-4
MC1000 with Windows CE 4.2 Integrator Guide
Defining Script Properties Define script properties before creating a script This defines the type of mobile computer, flash type, number of disks being created, and the memory configuration of each disk partition. To define the script properties: 1.
Select the Script window to make it active.
2.
Click the Properties button. The Script Properties window - Partition Data tab appears.
Figure 6-2 Script Properties Window - Partition Data Tab 3.
In the Terminal drop-down list, ensure the MC1000w v1.0 64M entry is selected.
4.
Use the default Flash Type.
5.
In the Disks drop-down list, select the number of disk partitions to create.
6.
Select the (memory) Size for each partition. Note that adding space to one disk partition subtracts it from another.
7.
In the Access drop-down list for each disk partition, determine and select the Read/Write access option.
8.
Click the Options tab.
Figure 6-3 Script Properties Window - Options Tab
Page 63
Creating/Loading Hex Images
9.
6-5
Set the paths for the Script File, Flash File, and Hex File Build.
10. Click OK.
Creating the Script for the Hex Image On start-up, TCM displays the TCM window with the Script1 window and File Explorer window pointing to the following directory: \Program Files\Symbol Device Configuration Packages\MC1000w\v0.1\TCMScripts\ The Script1 window directory pane displays two partitions: Platform and Application. Depending on the type of flash chip, the number of partitions may change. Files can be added to each of the partitions. TCM functionality includes:
• Opening a new or existing script file • Copying components to the script window • Saving the script file.
Opening a New or Existing Script A script file can be created from scratch or based on an existing script file. Click Create to create a new script or click Open to open an existing script (for example, a script provided in the MC1000 DCP). If changes are made to an existing script saving the changes overwrites the original script. To avoid this use the Save As function to save the script using a different file name.
Updating TCM 1.X Scripts To upgrade script files created with older versions of TCM to TCM 2.0 scripts click Open to open the existing script. The Conversion window appears.
Figure 6-4 Conversion Window - Upgrading to TCM 2.0
In the Select a Version field, select a version and then click OK.
Copying Components to the Script Script contents are managed using standard file operations such as New Folder, Delete, and Rename. To add items to the script files and folders in the File Explorer window and drag them to the Script window. The File Explorer window supports standard windows; to select multiple files click while holding the SHIFT or CTRL keys.
Page 64
6-6
MC1000 with Windows CE 4.2 Integrator Guide
Saving the Script To save modifications to a script file use the Save or the Save As function. Saving changes to an existing script over writes the original script. To use a Symbol-supplied standard script as a base and save the changes in a new script, use the Save As function.
Building the Image After creating the script, build the hex image defined by the script. As part of the build, TCM performs a check on the script which verifies that all files referenced in the script exist. This check is important for previously created scripts to ensure that files referenced in the script are still in the designated locations. To build scripts: 1.
Click Build on the TCM toolbar. The Configure Build window appears.
Figure 6-5 Configure Build Window 2.
Select the items (partitions) to build using the check box(es) to the left of each named partition.
3.
Specify the Build Path to define where to store all built partitions.
4.
Select the hex image check box to reduce the size and speed up the download.
5.
Click OK and follow the on-screen instructions. If building the splash screen partitions, a prompt appears requesting both the source bitmap file and the destination hex file.
6.
TCM perform a check and if there are no errors, creates the partition hex files.
If the build fails, TCM does not create the hex files and displays an error message. Two of the most common reasons for a build failure are:
• Files defined in the script can not be found. This error can occur when the files referenced by the script are no longer stored on the development computer or the folders where they are stored were renamed.
• The total amount of flash memory space required by the script exceeds the image size. To correct this, reduce the number of files in the partition or increase the size of the partition. See Defining Script Properties on page 6-4 for more information about setting the image size appropriately.
Page 65
Creating/Loading Hex Images
6-7
Downloading the Hex Image Once the hex file is built, download it to the mobile computer.
Using a Serial or USB Connection To load the hex files on to the mobile computer: 1.
For downloads using either a serial or a USB connection, connect the mobile computer to the development computer using the Single Slot Serial/USB cradle or MC1000 Communication/Charge cables. Ensure that power is applied to the mobile computer. To ensure a successful download, do not remove power from the mobile computer while in IPL mode.
CAUTION
2.
Press and hold a yellow Scan button and the Power button simultaneously until the mobile computer resets into IPL.
3.
When the Initial Program Loader menu appears, release the scan button and Power button. Table 6-1. Initial Program Loader Platform Application Windows CE Monitor Splash Screen Power Micro Partition Table Command File System Reset Auto Select
Figure 6-6 Initial Program Loader Menu 4.
Choose Auto Select or use the up and down scroll buttons to select the partition to download, then press ENT.
Table 6-2 IPL Menu Partitions
Partition Name
Description
Platform
Contains the files in the Platform folder.
Application
Contains the files in the Application folder.
Config Block
Contains information to correctly configure the operating system for the mobile computer. This information is loaded by the manufacturer. Note: Ensure that a correct config block is loaded in the mobile computer. Loading an incorrect config block prevents the correct operation of the mobile computer.
Windows CE
Contains the operating system for the mobile computer.
Monitor
Contains the Monitor and IPL programs.
Page 66
6-8
MC1000 with Windows CE 4.2 Integrator Guide
Table 6-2 IPL Menu Partitions (Continued)
Partition Name
Description
Splash Screen
Contains the splash screen that displays while booting the mobile computer. Note: Splash screens are generated from .bmp images. See Splash Screen Format on page 6-17. For mono displays, the bmp image must be 8 bits per pixel (bpp).
Power Micro
The Power Micro is a small computer contained within the mobile computer that controls several system resources. In the unlikely event that the Power Micro firmware needs updating, select this item to program the device.
Partition Table
Contains the partition information for all other partitions. Note: The partition table should never need changing unless the sizes of the platform and application images are changed within TCM. If this is done, load the new partition table first, followed by both platform and application in any order.
Command File
Displays the Select Transport menu, USB or ActiveSync Uart - Serial selection.
System Reset
Exits IPL and cold boots the operating system.
Auto Select
Allows downloading one or more files without manually selecting the destination. (The content of the downloaded files directs the file to the correct destination.) For technical reasons, Auto Select can not be used to download Monitor, Power Micro, or Partition Table. These items must be specifically selected.
NOTE
5.
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-7 Select Transport Menu 6.
Use the up and down scroll keys to select either the ActiveSync Uart - Serial transport method or the USB transport method, then press ENT.
Page 67
Creating/Loading Hex Images
7.
6-9
If the ActiveSync Uart - Serial transport method is selected, the Select Baud Rate menu appears. Select Baud Rate 115200 57600 38400 19200 9600 Previous Top
Figure 6-8 Select Baud Rate Menu 8.
Use the up and down scroll keys to select the appropriate baud rate, then press ENT.
9.
Before the download starts, if ActiveSync Uart - Serial was selected in the Select Transport menu, Waiting for Data appears in the Device Status field.
10. If USB was selected in the Select Transport menu, the Waiting for Download message appears.
Downloading . . . . Auto Select via USB standard waiting for input . . . .
Figure 6-9 Waiting for Download 11. On the development computer, click Load on the TCM toolbar. The Load Terminal window - Serial tab appears.
Page 68
6 - 10 MC1000 with Windows CE 4.2 Integrator Guide
Figure 6-10 Load Terminal Window - Serial Tab 12. Select the Image Files To Load. NOTE
The USB: Symbol Device option does not appear on the Comm Port drop-down list until after the Waiting for Download message has completed.
13. Select either Serial or USB: Symbol Device from the Comm Port drop-down list. 14. For serial connections, select the Baud Rate from the Baud Rate drop-down list. 15. Click Download to begin the download process. The Downloading screen on mobile computer displays the
Device Status and a progress bar. 16. 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-11 Downloading Complete Screen 17. Press ENT to return to the IPL menu to select the next partition to download. 18. To exit IPL, select the System Reset item from the IPL menu.
Using a SD/MMC Card To load the hex files on to the mobile computer: 1.
Copy the hex image files from the development computer to the root directory of an SD/MMC card. CAUTION
Ensure that power is applied to the mobile computer. To ensure a successful download, do not remove power from the mobile computer while in IPL mode.