| |||
| Home > Formal syntax of the scatter file > Expression usage in scatter files | |||
Expressions can be used in the following places:
load and execution region base_address
load and execution region +offset
load and execution region max_size
parameter for the ALIGN, FILL or PADVALUE keywords
parameter for the ScatterAssert function.
Example 9. Specifying the maximum size in terms of an expression
LR1 0x8000 (2 * 1024)
{
ER1 +0 (1 * 1024)
{
*(+RO)
}
ER2 +0 (1 * 1024)
{
*(+RW +ZI)
}
}