![]() Within a region expression,Ī region can be referenced simply by name, or by prefixing it with the The region name can be used in place in and place at statements,Īnd anywhere a region expression is required. Region so that the region can be referred to using that name, for example: define region FLASH = define region RAM = The define region statement defines a name for a However, it’s convenient to name regions that correspond to the Regions are used to place data and code into memory, which is described Results in a repeated range equivalent to the following: + + + Naming a region ![]() If the displacement is absent it defaults to the size of the base range.įor instance, the range: It is possible to define a repeated range using repeat and displacement Memory range for a Cortem-M device declared in this fashion might be: Repeated ranges This declares a memory range that starts at the address start-addrĪnd extends up to and including the address end-addr. The memory range specified by a start address and an end address has the Memory range is considered “null” and will not have anything allocated Note that it is possible for the size to be zero, in which case the A typical memory range for a Cortem-Mĭevice declared in this fashion might be: This declares a memory range that starts at the base address addrĪnd extends for expr bytes. The memory range specified by a base and a size has the following syntax: That you choose is the one that naturally fits your view of the memory region. The way that you specify a memory region does not matter, and the form ![]() That the linker allocates sections, and groups of sections, into theĪ memory range is specified in one of two forms: Statement is much the same as a C preprocessor #define directive,Ī memory region consists of one or more memory ranges, where a memory range Into which sections of code and data can be placed. The define region statement defines a region in the available memory The define memory statement defines the single memory space used by Is laid out for any device and must be told, using a linker script orĬommand line options, the specific memory layout of the target device. However, it has no internal knowledge of the way that memory The SEGGER linker is capable of linking an application for any Cortexĭevice. This section describes how to use the linker to link your Arm
0 Comments
Leave a Reply. |