summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r--firmware/target/arm/as3525/app.lds22
1 files changed, 6 insertions, 16 deletions
diff --git a/firmware/target/arm/as3525/app.lds b/firmware/target/arm/as3525/app.lds
index e19ff13878..b24a2cf00b 100644
--- a/firmware/target/arm/as3525/app.lds
+++ b/firmware/target/arm/as3525/app.lds
@@ -10,28 +10,18 @@ STARTUP(target/arm/crt0.o)
10#define PLUGINSIZE PLUGIN_BUFFER_SIZE 10#define PLUGINSIZE PLUGIN_BUFFER_SIZE
11#define CODECSIZE CODEC_SIZE 11#define CODECSIZE CODEC_SIZE
12 12
13#ifdef DEBUG
14#define STUBOFFSET 0x10000
15#else
16#define STUBOFFSET 0
17#endif
18
19
20#define IRAMORIG IRAM_ORIG
21#define DRAMORIG (DRAM_ORIG + STUBOFFSET)
22
23/* End of the audio buffer, where the codec buffer starts */ 13/* End of the audio buffer, where the codec buffer starts */
24#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) 14#define ENDAUDIOADDR (DRAM_ORIG + DRAMSIZE)
25 15
26#define CODEC_BUFFER_FILLS_IRAM defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2) 16#define CODEC_BUFFER_FILLS_IRAM defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2)
27 17
28#if CODEC_BUFFER_FILLS_IRAM 18#if CODEC_BUFFER_FILLS_IRAM
29/* Entire codec buffer in IRAM */ 19/* Entire codec buffer in IRAM */
30#define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - TTB_SIZE) 20#define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - TTB_SIZE)
31#define CODECORIG (IRAMORIG + (IRAM_SIZE - CODEC_SIZE)) 21#define CODECORIG (IRAM_ORIG + (IRAM_SIZE - CODEC_SIZE))
32#define IRAMSIZE (IRAM_SIZE - CODEC_SIZE) 22#define IRAMSIZE (IRAM_SIZE - CODEC_SIZE)
33#else 23#else
34#define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE - TTB_SIZE) 24#define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE - TTB_SIZE)
35#define CODECORIG (ENDAUDIOADDR) 25#define CODECORIG (ENDAUDIOADDR)
36#define IRAMSIZE (0x20000) 26#define IRAMSIZE (0x20000)
37#endif 27#endif
@@ -49,8 +39,8 @@ MEMORY
49#if CODEC_BUFFER_FILLS_IRAM 39#if CODEC_BUFFER_FILLS_IRAM
50 CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE 40 CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE
51#endif 41#endif
52 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE 42 IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAMSIZE
53 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE 43 DRAM : ORIGIN = DRAM_ORIG, LENGTH = DRAMSIZE
54} 44}
55 45
56SECTIONS 46SECTIONS