summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/app.lds17
1 files changed, 16 insertions, 1 deletions
diff --git a/firmware/app.lds b/firmware/app.lds
index c6149252cb..4a8ae724fa 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -2,11 +2,17 @@ ENTRY(start)
2OUTPUT_FORMAT(elf32-sh) 2OUTPUT_FORMAT(elf32-sh)
3INPUT(crt0.o) 3INPUT(crt0.o)
4 4
5#ifdef DEBUG
6#define DRAMSIZE 0x1f0000
7#define ORIGADDR 0x09010000
8#else
5#define DRAMSIZE (MEMORYSIZE * 0x100000) 9#define DRAMSIZE (MEMORYSIZE * 0x100000)
10#define ORIGADDR 0x09000000
11#endif
6 12
7MEMORY 13MEMORY
8{ 14{
9 DRAM : ORIGIN = 0x09000000, LENGTH = DRAMSIZE 15 DRAM : ORIGIN = ORIGADDR, LENGTH = DRAMSIZE
10 IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 16 IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000
11} 17}
12 18
@@ -56,6 +62,15 @@ SECTIONS
56 _end = .; 62 _end = .;
57 } > DRAM 63 } > DRAM
58 64
65#ifdef DEBUG
66 .heap :
67 {
68 _poolstart = .;
69 . = 0x20000;
70 _poolend = .;
71 } > DRAM
72#endif
73
59 .mp3buf : 74 .mp3buf :
60 { 75 {
61 _mp3buf = .; 76 _mp3buf = .;