diff options
-rw-r--r-- | apps/plugins/plugin.lds | 6 | ||||
-rw-r--r-- | firmware/target/arm/tcc780x/app.lds | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 536f76119f..418e29fc99 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds | |||
@@ -82,8 +82,10 @@ OUTPUT_FORMAT(elf32-sh) | |||
82 | #define IRAM DRAM | 82 | #define IRAM DRAM |
83 | #elif defined(CPU_TCC780X) | 83 | #elif defined(CPU_TCC780X) |
84 | #define DRAMORIG 0x20000000 | 84 | #define DRAMORIG 0x20000000 |
85 | #define IRAMORIG 0x1000c000 | 85 | /*#define IRAMORIG 0x1000c000 |
86 | #define IRAMSIZE 0xc000 | 86 | #define IRAMSIZE 0xc000*/ |
87 | #define IRAM DRAM | ||
88 | #define IRAMSIZE 0 | ||
87 | #else | 89 | #else |
88 | #define DRAMORIG 0x09000000 + STUBOFFSET | 90 | #define DRAMORIG 0x09000000 + STUBOFFSET |
89 | #endif | 91 | #endif |
diff --git a/firmware/target/arm/tcc780x/app.lds b/firmware/target/arm/tcc780x/app.lds index 97ae2c2e82..d62204a9a5 100644 --- a/firmware/target/arm/tcc780x/app.lds +++ b/firmware/target/arm/tcc780x/app.lds | |||
@@ -115,7 +115,8 @@ SECTIONS | |||
115 | *(.icode) | 115 | *(.icode) |
116 | . = ALIGN(0x4); | 116 | . = ALIGN(0x4); |
117 | _iramend = .; | 117 | _iramend = .; |
118 | } > SRAM AT> DRAM | 118 | /* } > SRAM AT> DRAM */ |
119 | } > DRAM | ||
119 | 120 | ||
120 | _iramcopy = LOADADDR(.iram); | 121 | _iramcopy = LOADADDR(.iram); |
121 | 122 | ||
@@ -125,7 +126,8 @@ SECTIONS | |||
125 | *(.ibss) | 126 | *(.ibss) |
126 | . = ALIGN(0x4); | 127 | . = ALIGN(0x4); |
127 | _iend = .; | 128 | _iend = .; |
128 | } > SRAM | 129 | /* } > SRAM */ |
130 | } > DRAM | ||
129 | 131 | ||
130 | .stack : | 132 | .stack : |
131 | { | 133 | { |
@@ -133,7 +135,8 @@ SECTIONS | |||
133 | stackbegin = .; | 135 | stackbegin = .; |
134 | . += 0x2000; | 136 | . += 0x2000; |
135 | stackend = .; | 137 | stackend = .; |
136 | } > SRAM | 138 | /* } > SRAM */ |
139 | } > DRAM | ||
137 | 140 | ||
138 | .bss : | 141 | .bss : |
139 | { | 142 | { |