summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/plugin.lds6
-rw-r--r--firmware/target/arm/tcc780x/app.lds9
2 files changed, 10 insertions, 5 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 536f761..418e29f 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -82,8 +82,10 @@ OUTPUT_FORMAT(elf32-sh)
#define IRAM DRAM
#elif defined(CPU_TCC780X)
#define DRAMORIG 0x20000000
-#define IRAMORIG 0x1000c000
-#define IRAMSIZE 0xc000
+/*#define IRAMORIG 0x1000c000
+#define IRAMSIZE 0xc000*/
+#define IRAM DRAM
+#define IRAMSIZE 0
#else
#define DRAMORIG 0x09000000 + STUBOFFSET
#endif
diff --git a/firmware/target/arm/tcc780x/app.lds b/firmware/target/arm/tcc780x/app.lds
index 97ae2c2..d62204a 100644
--- a/firmware/target/arm/tcc780x/app.lds
+++ b/firmware/target/arm/tcc780x/app.lds
@@ -115,7 +115,8 @@ SECTIONS
*(.icode)
. = ALIGN(0x4);
_iramend = .;
- } > SRAM AT> DRAM
+ /* } > SRAM AT> DRAM */
+ } > DRAM
_iramcopy = LOADADDR(.iram);
@@ -125,7 +126,8 @@ SECTIONS
*(.ibss)
. = ALIGN(0x4);
_iend = .;
- } > SRAM
+ /* } > SRAM */
+ } > DRAM
.stack :
{
@@ -133,7 +135,8 @@ SECTIONS
stackbegin = .;
. += 0x2000;
stackend = .;
- } > SRAM
+ /* } > SRAM */
+ } > DRAM
.bss :
{