Flash File to Target. NXP CodeWarrior Development Studio
Reklamë
Reklamë
Chapter 10 Working with Hardware Tools
Figure 10-7. Flash File To Target Dialog Box
The flash programmer writes the uboot image file to the target.
NOTE
If you cannot connect to the board anymore, you can write the new RCW by following these steps:
1. Note and save the current configuration of SW2 and SW3.
2. Modify the switches to boot from hard-coded RCW: a. SW3 -> 0100_0011 b. SW2 -> 0111_0100 c. SW2: SRC8 (b1) set to 0 and RES_REQ(b5) set to 0.
3. Connect to the board and write the new RCW using the instructions listed above.
4. Set the switches back to the saved configuration.
10.2 Flash File to Target
You can use the Flash File to Target feature to perform flash operations such as erasing a flash device or programming a file.
CodeWarrior Development Studio for StarCore 3900FP DSP Architectures Targeting Manual, Rev. 10.9.0,
11/2015
Freescale Semiconductor, Inc.
291
Flash File to Target
You do not need any project for using Flash File to Target feature, only a valid Remote
System is required.
To open the Flash File to Target dialog, click the Flash Programmer button on the IDE toolbar.
• Connection pop-up menu- Lists all run configurations defined in Eclipse. If a connection to the target has already been made the control becomes inactive and contains the text Active Debug Configuration.
• Flash Configuration File pop-up menu - Lists predefined target tasks for the processor selected in the Launch Configuration and tasks added by user with the
Browse button. The items in this pop-up menu are updated based on the processor selected in the launch configuration. For more information on launch configurations, see product's Targeting Manual.
• Unprotect flash memory before erase checkbox - Select to unprotect flash memory before erasing the flash device. This feature allows you to unprotect the flash memory from Flash File To Target dialog.
• File to Flash group - Allows selecting the file to be programmed on the flash device and the location.
• File textbox - Used for specifying the filename. You can use the Workspace,
File System, or Variables buttons to select the desired file.
• Offset:0x textbox - Used for specifying offset location for a file. If no offset is specified the default value of zero is used. The offset is always added to the start address of the file. If the file does not contain address information then zero is considered as start address.
• Save as Target Task - Select to enable Task Name textbox.
• Task Name textbox - Lets you to save the specified settings as a Flash target task. Use the testbox to specify the name of the target task.
• Erase Whole Device button - Erases the flash device. In case you have multiple flash blocks on the device, all blocks are erased. If you want to selectively erase or program blocks, use the
feature.
• Erase and Program button - Erases the sectors that are occupied with data and then programs the file. If the flash device can not be accessed at sector level then the flash device is completely erased.
This feature helps you perform these basic flash operations:
•
•
CodeWarrior Development Studio for StarCore 3900FP DSP Architectures Targeting Manual, Rev. 10.9.0,
11/2015
292 Freescale Semiconductor, Inc.
Chapter 10 Working with Hardware Tools
10.2.1 Erasing flash device
To erase a flash device, follow these steps:
1. Click the Flash Programmer button on the IDE toolbar.
The Flash File to Target dialog appears.
2. Choose a connection from the Connection pop-up menu.
NOTE
If a connection is already established with the target, this control is disabled.
The Flash Configuration File pop-up menu is updated with the supported configurations for the processor from the launch configuration.
3. Choose a flash configuration from the Flash Configuration File pop-up menu.
4. Select the Unprotect flash memory before erase checkbox to unprotect flash memory before erasing the flash device.
5. Click the Erase Whole Device button.
10.2.2 Programming a file
1. Click the Flash Programmer button on the IDE toolbar.
The Flash File to Target dialog appears.
2. Choose a connection from the Connection pop-up menu.
NOTE
If a connection is already established with the target, this control is disabled.
The Flash Configuration File pop-up menu is updated with the supported configurations for the processor from the launch configuration.
3. Choose a flash configuration from the Flash Configuration File pop-up menu.
4. Select the Unprotect flash memory before erase checkbox to unprotect flash memory before erasing the flash device.
5. Type the file name in the File textbox. You can use the Workspace, File System, or
Variables buttons to select the desired file.
6. Type the offset location in the Offset textbox.
7. Click the Erase and Program button.
CodeWarrior Development Studio for StarCore 3900FP DSP Architectures Targeting Manual, Rev. 10.9.0,
11/2015
Freescale Semiconductor, Inc.
293
Shkarko
Reklamë