Flash Programmer Window. freescale IDE 5.7
Anuncio
Anuncio
22
Working with Hardware
Tools
This chapter explains the CodeWarrior™ IDE hardware tools. Use these tools for board bring-up, test, and analysis.
NOTE
Not all products support all the IDE features this chapter describes, such as the
Flash programmer window, hardware diagnostic window, and logic analyzer.
Some screen captures in this chapter were taken on a Windows PC; their actual appearance varies slightly on other host platforms.
This chapter consists of these sections:
•
•
•
•
•
•
•
Flash Programmer Window
The Flash Programmer window lists global options for the flash programmer hardware tool. These preferences apply to every open project file.
shows the Flash Programmer window. Table 22.1
explains the items in the window.
To open the Flash Programmer window, click Tools > Flash Programmer.
The Flash Programmer window contains these panels:
•
•
•
IDE 5.7 User’s Guide 261
Working with Hardware Tools
Flash Programmer Window
•
•
Figure 22.1 Flash Programmer Window
Table 22.1 Flash Programmer Window Items
Item
Flash
Programmer pane
Show Log
Explanation
Shows a list of panel names. Click a panel name to display that panel.
Load Settings
Save Settings
Click to display a text file that logs flash programmer actions. Check the Enable Logging checkbox in the Options group to enable this button.
Click to restore previously saved settings for the current panel.
Click to save settings for the current panel to a file.
262 IDE 5.7 User’s Guide
Working with Hardware Tools
Flash Programmer Window
Table 22.1 Flash Programmer Window Items ( continued)
Item
OK
Cancel
Explanation
Click to save changes to all panels and close the window.
Click to discard changes to all panels and close the window.
Target Configuration
The Target Configuration panel configures general flash programmer settings.
shows the Target Configuration panel.
Figure 22.2 Target Configuration Panel
IDE 5.7 User’s Guide 263
Working with Hardware Tools
Flash Programmer Window
Table 22.2 Target Configuration Panel Items
Item
Default Project
Default Target
Use Custom
Settings checkbox.
Explanation
Shows the current default project in the IDE.
Shows the default build target. Clear the Use Custom Settings checkbox to have the IDE use connection settings from the build target for connecting to the hardware.
Check to specify the connection information that you want to use for connecting to the hardware. In this case, the IDE can connect to the hardware without using settings from a project.
Clear to use the connection information stored in the default project for connecting to the hardware. You cannot clear the checkbox if you do not have an active default project or default target.
Connection information includes the information that you specify in the Target Processor list box, the Connection list box, and the Use Target Initialization text box.
Use to specify the hardware processor.
Target Processor text/list box
Connection list box
Use Target
Initialization checkbox and text box
Target Memory
Buffer Address text box
Use to specify the method that the IDE uses to connect to the hardware.
Check to specify an initialization file for the hardware connection.
Enter the initialization file path in the text box, or click the Browse button to open a dialog box that you can use to specify the initialization file path.
Clear if you do not want to use an initialization file for the hardware connection.
Specify the starting address of an area in RAM that the flash programmer can use as a scratch area. The flash programmer must be able to access this starting address through the remote connection (after the hardware initializes).
The flash programmer should not modify any memory location other than the target memory buffer and flash memory.
For example, the flash programmer uses the target memory buffer to download and execute the flash device driver.
264 IDE 5.7 User’s Guide
Working with Hardware Tools
Flash Programmer Window
Table 22.2 Target Configuration Panel Items ( continued)
Item
Target Memory
Buffer Size text box
Enable Logging checkbox
Verify Target
Memory Writes checkbox
Explanation
Specify the size of an area in RAM that the flash programmer can use as a scratch area, starting at the address you specify in the
Target Memory Buffer Address text box.
The flash programmer should not modify any memory location other than the target memory buffer and flash memory.
Check to have the IDE generate detailed status information during flash operations. Checking this checkbox enables the
Show Log button.
Clear to disable logging of detailed status information during flash operations. Clearing this checkbox disables the
Show Log button.
Click the Show Log button to view the status information.
Check to have the IDE verify all write operations to the hardware
RAM by reading the result of each write operation.
Clear to have the IDE perform write operations without verifying them.
Flash Configuration
The Flash Configuration panel configures settings for the flash device on the hardware
shows the Flash Configuration panel.
explains the items in the panel.
IDE 5.7 User’s Guide 265
Working with Hardware Tools
Flash Programmer Window
Figure 22.3 Flash Configuration Panel
Table 22.3 Flash Configuration Panel Items
Item
Flash Memory
Base Address text box
Device pane
Explanation
Enter the base address of the beginning of flash memory on the hardware device. Enter the address based on the perspective of the hardware device.
Shows an alphabetical list of supported flash device types. Select a device type from this pane. Your selection determines the contents of the Organization and Sector Address Map panes.
266 IDE 5.7 User’s Guide
Working with Hardware Tools
Flash Programmer Window
Table 22.3 Flash Configuration Panel Items ( continued)
Item
Organization pane
Sector Address
Map pane
Explanation
Shows a list of supported layouts of flash memory in the hardware design, based on your selection in the Device pane. Each list item is of the form
ChipCapacity x
DataBusWidth x
NumberOfChipsInLayout
. Select an organization from this pane. Your selection determines the contents of the Sector Address Map pane.
For example, 2048Kx8x2 indicates a chip capacity of 2048 kilobytes, a byte-wide interface to the data bus, and a 2-chip hardware layout.
For hardware layouts of 2 or more chips, assume an interleaved organization. For example, for a 2048Kx16x2 organization, there are 2 chips on a 32-bit bus, and each chip provides 16 bits of data.
Shows a map of sector addresses that reflects your selections in the Device and Organization panes and your entry in the Flash
Memory Base Address text box. This map is for informational purposes only.
Program / Verify
The Program / Verify panel lets you program an image into flash memory and verify the programming operation.
shows the Program / Verify panel.
explains the items in the panel.
IDE 5.7 User’s Guide 267
Working with Hardware Tools
Flash Programmer Window
Figure 22.4 Program / Verify Panel
Table 22.4 Program / Verify Panel Items
Item
Use Selected
File
File Type
Explanation
Check to specify a file to program into flash memory. Enter the file path in the text box, or click the Browse button to locate the file path.
Clear to have the IDE program flash memory with the file that the default build target determines.
The file determines the address to which the IDE programs flash memory. If you specify a file that does not contain address information, such as a binary file, the IDE programs flash memory at address zero. Check the Apply Address Offset checkbox to specify an address offset from zero.
Select the file type. Options are: Auto Detect, Binary/Raw Format,
Elf Format, or Motorola S-Record Format.
268 IDE 5.7 User’s Guide
Working with Hardware Tools
Flash Programmer Window
Table 22.4 Program / Verify Panel Items ( continued)
Item
Restrict Address
Range
Start text box
End text box
Apply Address
Offset checkbox
Offset text box
Flash Base
Address
Flash Base +
Offset
Explanation
Check to use the Start and End text boxes to specify the address range in which you want the IDE to program flash data. If you use a binary file to program flash data, the flash programmer ignores data outside the address range that you specify.
Clear to have the IDE determine the address range in which to program flash data.
Enter the starting address of the range that you want the flash programmer to use for programming flash data.
Check the Restrict Address Range checkbox to enable this text box.
Enter the ending address of the range that you want the flash programmer to use for programming flash data.
Check the Restrict Address Range checkbox to enable this text box.
Check to specify an offset at which to program flash data. The IDE adds this offset to the starting address that the file specifies. The flash programmer begins programming flash data at the starting address plus the offset.
Clear to have the flash programmer begin programming flash data at the starting address that the file specifies. In this case, the IDE does not add an offset to the starting address.
Enter the offset to add to the starting address that the file specifies.
The flash programmer begins programming flash data at the resulting address.
Check the Apply Address Offset checkbox to enable this text box.
Shows the base address of the beginning of flash memory on the hardware device. This address is the same address that you specify in the Flash Memory Base Address text box of the Flash
Configuration panel.
Shows the resulting address of adding the offset value that you specify in the Offset text box to the Flash Base Address value.
The flash programmer begins programming flash data at this resulting address.
IDE 5.7 User’s Guide 269
Working with Hardware Tools
Flash Programmer Window
Table 22.4 Program / Verify Panel Items ( continued)
Item
Status
Program button
Verify button
Explanation
Shows flash programmer progress information. Click the Details button to show more thorough progress information.
Click to have the flash programmer program flash data into the hardware device. The Status reflects flash programmer progress.
The flash programmer does not check for blank flash memory before it begins programming the flash data.
Click to have the IDE verify the data that the flash programmer programmed into the hardware device. The verify operation reads the flash data from the hardware device and compares that data against the image file on disk. The Status reflects flash programmer progress.
Erase / Blank Check
The Erase / Blank Check panel lets you erase an image from flash memory and check for
shows the Erase / Blank Check panel. Table 22.5
explains items in the panel.
270 IDE 5.7 User’s Guide
Figure 22.5 Erase / Blank Check Panel
Working with Hardware Tools
Flash Programmer Window
Table 22.5 Erase / Blank Check Panel Items
Item
All Sectors checkbox and list
Erase Sectors
Individually checkbox
Status
Explanation
Check to apply the erase or blank check operation to the entire flash memory.
Clear to specify sectors that you want to erase or check for blanks. Select sectors in the list below the checkbox.
Check to have the flash programmer ignore chip erase commands and erase each individual sector instead.
Clear to have the flash programmer obey chip erase commands and erase all sectors at once.
Check the All Sectors checkbox to enable this checkbox.
Shows flash programmer progress information. Click the Details button to show more thorough progress information.
IDE 5.7 User’s Guide 271
Working with Hardware Tools
Flash Programmer Window
Table 22.5 Erase / Blank Check Panel Items ( continued)
Item
Erase button
Blank Check button
Explanation
Click to have the flash programmer erase the sectors that you specified. The Status reflects flash programmer progress.
Click to have the flash programmer perform these tasks:
• upload the sectors that you specified to the hardware device
• compare the uploaded sectors against 0xff
• report the values that do not match 0xff.
The Status reflects flash programmer progress.
Checksum
The Checksum panel lets you calculate checksum values. Figure 22.6
shows the
Checksum panel.
explains items in the panel.
Figure 22.6 Checksum Panel
272 IDE 5.7 User’s Guide
Working with Hardware Tools
Flash Programmer Window
Table 22.6 Checksum Panel Items
Item
File on Target
File on Host
Memory
Range on
Target
Entire Flash
Start text box
Size text box
Status
Calculate
Checksum
Explanation
Select to have the flash programmer read the file that you specified in the Use Selected File text box of the Program / Verify panel. The flash programmer reads this file to determine the required memory regions of the flash device for the checksum operation.
The Restrict Address Range and Apply Address Offset information that you specify in the Program / Verify panel also apply to this option button.
Select to have the flash programmer read the file on the host computer. The flash programmer reads this file to determine the required memory regions of the flash device for the checksum operation.
The Restrict Address Range and Apply Address Offset information that you specify in the Program / Verify panel also apply to this option button.
Select to have the flash programmer read the range that you specify in the Start and Size values in the Address Range group. The flash programmer uses this memory range for the checksum operation.
Select to have the flash programmer read the entire contents of flash memory. The flash programmer uses this data for the checksum operation.
Enter the starting address of the range that you want the flash programmer to use for the checksum operation.
Select Memory Range on Target option to enable this text box.
Enter the size of the address range that you want the flash programmer to use for the checksum operation. This size is relative to the starting address that you specify in the Start text box.
Select Memory Range on Target option to enable this text box.
Shows flash programmer progress information. Click the Details button to show more thorough progress information.
Click to have the flash programmer calculate the checksum according to your specifications. At the end of the checksum operation, the
Status shows the calculated checksum.
IDE 5.7 User’s Guide 273
Descargar
Anuncio