Move LSTM kernel to BRAM

Change-Id: Id0244bb35236d0b04732e3fddbaa472686c63483
diff --git a/targets/corstone-300/platform.ld b/targets/corstone-300/platform.ld
index d22b786..ebf7021 100644
--- a/targets/corstone-300/platform.ld
+++ b/targets/corstone-300/platform.ld
@@ -135,7 +135,7 @@
   .text :
   {
     KEEP(*(.vectors))
-    *(.text*)
+    *(EXCLUDE_FILE(lstm_eval.*) .text*)
 
     KEEP(*(.init))
     KEEP(*(.fini))
@@ -219,8 +219,7 @@
   {
     __data_start__ = .;
     *(vtable)
-    *(.data)
-    *(.data.*)
+    *(EXCLUDE_FILE(lstm_eval.*) .data .data.*)
 
     . = ALIGN(4);
     /* preinit data */
@@ -289,6 +288,7 @@
   .sram.data : {
     __sram_data_start__ = .;
     *(.sram.data)
+    lstm_eval.*(.text* .data .data.*)
     __sram_data_end__ = .;
   } > BRAM AT >DDR :rom_dram
 
diff --git a/targets/corstone-300/platform.scatter b/targets/corstone-300/platform.scatter
index d683100..85c6549 100644
--- a/targets/corstone-300/platform.scatter
+++ b/targets/corstone-300/platform.scatter
@@ -182,6 +182,11 @@
         * (.sram.data)
     }
 #endif
+
+    TFLM +0
+    {
+        lstm_eval.o
+    }
 }
 
 LOAD_REGION_SRAM SRAM_START SRAM_SIZE