From 79929ff29ffe5d39b19f415fe584ee3eb3e2df97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85strand?= Date: Tue, 26 Jan 2021 14:42:43 +0100 Subject: Add trustzone application example Add example project that builds both secure and nonsecure world sides and the inference is done on the secure side. This commit includes the mpc driver as found in the upstream trustedfirmware git repository https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git (8c0a234e453b51e6606d11599d0cb15097c3da48) The model,input and output used are described in the README.md in this directory. Change-Id: Ie54904a38d54df4de2d6936f066c388ea58e396b --- targets/corstone-300/CMakeLists.txt | 3 +++ targets/corstone-300/platform.scatter | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'targets/corstone-300') diff --git a/targets/corstone-300/CMakeLists.txt b/targets/corstone-300/CMakeLists.txt index 03226c7..c734044 100644 --- a/targets/corstone-300/CMakeLists.txt +++ b/targets/corstone-300/CMakeLists.txt @@ -50,6 +50,9 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/helpers.cmake) # Corstone-300 ############################################################################# +get_filename_component(ETHOSU_TARGET ${CMAKE_CURRENT_SOURCE_DIR} NAME) +message("Configuring target ${ETHOSU_TARGET}") + # Enable trustzone support in core_software set(TRUSTZONE_BUILD ON) diff --git a/targets/corstone-300/platform.scatter b/targets/corstone-300/platform.scatter index 2ab371f..b8d5495 100644 --- a/targets/corstone-300/platform.scatter +++ b/targets/corstone-300/platform.scatter @@ -39,7 +39,7 @@ #else //TRUSTZONE_BUILD #define LR_START 0x10000000 -#define LR_SIZE 0x01000000 +#define LR_SIZE 0x00080000 #define ITCM_START 0x10000000 #define ITCM_SIZE 0x00080000 -- cgit v1.2.1