diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/dsp/linker.cmd')
-rw-r--r-- | firmware/target/arm/tms320dm320/dsp/linker.cmd | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/firmware/target/arm/tms320dm320/dsp/linker.cmd b/firmware/target/arm/tms320dm320/dsp/linker.cmd index 844fe25903..c2ae5f0c6b 100644 --- a/firmware/target/arm/tms320dm320/dsp/linker.cmd +++ b/firmware/target/arm/tms320dm320/dsp/linker.cmd | |||
@@ -1,29 +1,39 @@ | |||
1 | -c | 1 | -c |
2 | -x | 2 | -x |
3 | -stack 0x1000 | 3 | -stack 0x1000 |
4 | -heap 0x100 | 4 | -heap 0x100 |
5 | -l rts500.lib | 5 | |
6 | /* The rtx500.lib should be included if you want proper initialization, | ||
7 | * currently the program is setup so that it is not necessary to save space. | ||
8 | * reset vector should jump to _c_int00 if initialization is needed. | ||
9 | * | ||
10 | * -l rts500.lib*/ | ||
6 | 11 | ||
7 | MEMORY | 12 | MEMORY |
8 | { | 13 | { |
9 | PAGE 0: | 14 | PAGE 0: |
10 | DARAM: origin = 80h, length = 7F80h | 15 | DARAM (RWIX): origin = 80h, length = 7F00h |
11 | SARAM: origin = 8000h, length = 4000h | 16 | VECS (RIX) : origin = 7F80h, length = 80h |
17 | |||
18 | /* SARAM can be read and written to, but it cannot execute and does not need | ||
19 | * to be initialized. */ | ||
20 | SARAM (RW) : origin = 8000h, length = 4000h | ||
12 | } | 21 | } |
13 | 22 | ||
14 | SECTIONS | 23 | SECTIONS |
15 | { | 24 | { |
16 | .text PAGE 0 | 25 | .text > DARAM PAGE 0 |
17 | .cinit PAGE 0 | 26 | .cinit > DARAM PAGE 0 |
18 | .switch PAGE 0 | 27 | .switch > DARAM PAGE 0 |
28 | .data > DARAM PAGE 0 | ||
19 | 29 | ||
20 | .bss PAGE 0 | 30 | .bss > DARAM PAGE 0 |
21 | .const PAGE 0 | 31 | .const > DARAM PAGE 0 |
22 | .sysmem PAGE 0 | 32 | .sysmem > DARAM PAGE 0 |
23 | .stack PAGE 0 | 33 | .stack > DARAM PAGE 0 |
24 | 34 | ||
25 | .vectors : PAGE 0 load = 7F80h | 35 | .vectors > VECS PAGE 0 |
26 | 36 | ||
27 | /* DMA buffers for ABU mode must start on a 2*size boundary. */ | 37 | /* DMA buffers for ABU mode must start on a 2*size boundary. */ |
28 | .dma : PAGE 0 load = 0x8000 | 38 | .dma > SARAM PAGE 0 |
29 | } | 39 | } |