Table of Contents Previous topic Next topic
LINKER->Linker Scripts->Linker Script Language->Memory Block
A MEMORY block defines a number of named memory regions. These can then used in the later SECTIONS block allowing sections to be located in a named memory region.
The format is as follows:
<name> : origin = <start address>, length = <number of bytes>
org or o can be used instead of origin and len or l can be used instead of length.
boot_memory: origin = 0X00000000, length = 0X40
flash: origin = 0X80000000, length = 0X80000
ram: origin = 0X40000000, length = 0X10000