Alistair Francis | 6acae06 | 2019-09-25 11:33:51 -0700 | [diff] [blame] | 1 | /* Layout for the RISC-V 32 boards, used by the examples in this repository. */ |
| 2 | |
| 3 | MEMORY { |
Laura Abbott | e0e9eab | 2020-02-19 16:46:03 -0500 | [diff] [blame] | 4 | /* |
| 5 | * The TBF header can change in size so use 0x40 combined with |
| 6 | * --protected-region-size with elf2tab to cover a header upto that |
| 7 | * size. |
| 8 | * |
| 9 | * Note that the SRAM address may need to be changed depending on |
| 10 | * the kernel binary, check for the actual address of APP_MEMORY! |
| 11 | */ |
Alistair Francis | b4889df | 2020-05-13 17:20:12 -0700 | [diff] [blame] | 12 | FLASH (rx) : ORIGIN = 0x20040040, LENGTH = 32M |
Alistair Francis | 37df83d | 2020-02-24 10:08:22 -0800 | [diff] [blame] | 13 | SRAM (rwx) : ORIGIN = 0x80002400, LENGTH = 0x1C00 |
Alistair Francis | 6acae06 | 2019-09-25 11:33:51 -0700 | [diff] [blame] | 14 | } |
| 15 | |
Alistair Francis | 6acae06 | 2019-09-25 11:33:51 -0700 | [diff] [blame] | 16 | MPU_MIN_ALIGN = 1K; |
| 17 | |
Woyten | 860e0bc | 2020-01-29 21:17:14 +0100 | [diff] [blame] | 18 | INCLUDE layout_generic.ld |