| |||
| Home > Working with Editors > Scatter file editor > Example of a scatter-loading description file | |||
To create a scatter-loading description file:
Use an existing project or create a new project. See Chapter 3 Working with Projects for more information.
Create a new project and add a new empty text file
with the extension .scat. for example scatter.scat.
See Creating a new RealView project and Adding a file to your project for more information.
Using the Outline view, click on the toolbar icon or right-click and select Add load region from the context menu.
The Add load region dialog box is displayed. Figure 5.7 shows and example:
Enter a load region name, for example, LR1.
Click OK.
Modify the load region as shown in Example 5.6:
Example 5.6. Simple scatter-loading description file
LR1 0x0000 0x8000
{
LR1_er1 0x0000 0x8000
{
* (+RO)
}
LR1_er2 0x10000 0x6000
{
* (+RW,+ZI)
}
}
This example shows a simple scatter-loading description file
Save your changes.
To set up a more complex scatter-loading file:
Repeat steps 3 to 5 to add a second load region LR2.
Modify the LR1 and LR2 load regions as shown in Example 5.7.
Example 5.7. Complex scatter-loading description file
LR1 0x0
{
LR1_er1 0x0
{
program.o (+RO)
}
LR1_er2 0x18000 0x8000
{
program1.o (+RW,+ZI)
}
}
LR2 0x4000
{
LR2_er1 0x4000
{
program2.o (+RO)
}
LR2_er2 0x8000 0x8000
{
program2.0 (+RW,+ZI)
}
}
Save your changes.