| 1 | MEMORY |
| 2 | { |
| 3 | /* NOTE K = KiBi = 1024 bytes */ |
| 4 | /* TODO Adjust these memory regions to match your device memory layout */ |
| 5 | /* FLASH : ORIGIN = 0x08000000, LENGTH = 256K */ |
| 6 | FLASH : ORIGIN = 0x08000000, LENGTH = 256K |
| 7 | RAM : ORIGIN = 0x20000000, LENGTH = 64K |
| 8 | } |
| 9 | |
| 10 | /* This is where the call stack will be allocated. */ |
| 11 | /* The stack is of the full descending type. */ |
| 12 | /* You may want to use this variable to locate the call stack and static |
| 13 | variables in different memory regions. Below is shown the default value */ |
| 14 | /* _stack_start = ORIGIN(RAM) + LENGTH(RAM); */ |
| 15 | |
| 16 | /* You can use this symbol to customize the location of the .text section */ |
| 17 | /* If omitted the .text section will be placed right after the .vector_table |
| 18 | section */ |
| 19 | /* This is required only on microcontrollers that store some configuration right |
| 20 | after the vector table */ |
| 21 | /* _stext = ORIGIN(FLASH) + 0x400; */ |
| 22 | |
| 23 | /* Size of the heap (in bytes) */ |
| 24 | /* _heap_size = 1024; */ |
| 25 | |