You copied the Doc URL to your clipboard.

Expression usage in scatter files

You can use expressions for various load and execution region attributes.

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.

Specifying the maximum size in terms of an expression

LR1 0x8000 (2 * 1024)
{
    ER1 +0 (1 * 1024)
    {
        *(+RO)
    }
    ER2 +0 (1 * 1024)
    {
        *(+RW +ZI)
    }
}
Was this page helpful? Yes No