1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 6b608fc..de05d58 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -231,10 +231,14 @@ SECTIONS
         . = ALIGN(CACHEALIGN_SIZE);
         *(.ncdata*)
         . = ALIGN(CACHEALIGN_SIZE);
+#if defined(IRAMSIZE)
+        iramcopy = . - NOCACHE_BASE;
+#endif
+
     } AT> PLUGIN_RAM
 #endif

-#if defined(IRAMSIZE)
+#if defined(IRAMSIZE) && !NOCACHE_BASE
     iramcopy = . - NOCACHE_BASE;
 #endif