SST: Add capability to use RAM instead of flash
The execution of SST regression tests reduces the life of the flash
memory as they write/erase multiple times in the memory.
This patch adds the capability to use RAM instead of flash memory
to run SST regression tests.
Change-Id: Ie6eff8e8deebe9f8d58dd13abc5e4a4148cd6994
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
diff --git a/platform/ext/Mps2AN521.cmake b/platform/ext/Mps2AN521.cmake
index c56faef..451a36d 100644
--- a/platform/ext/Mps2AN521.cmake
+++ b/platform/ext/Mps2AN521.cmake
@@ -160,9 +160,10 @@
# to be sure the SST service knows that when it starts the SST area does not contain any
# valid SST flash layout and it needs to create one.
set(SST_CREATE_FLASH_LAYOUT ON)
+ set(SST_RAM_FS OFF)
embedded_include_directories(PATH "${PLATFORM_DIR}/target/mps2/an521/cmsis_drivers" ABSOLUTE)
endif()
if (MCUBOOT_RAM_LOADING)
message (FATAL_ERROR "MCUBOOT_RAM_LOADING is not supported on " ${TARGET_PLATFORM})
-endif()
\ No newline at end of file
+endif()