aboutsummaryrefslogtreecommitdiff
path: root/targets/corstone-300/platform.scatter
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2020-11-20 09:42:53 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2020-11-26 15:17:39 +0100
commit43ce491cdf7a94e0f227502217f574d95fc4c68a (patch)
treee6040562696f610d262539a5430de12739fa684f /targets/corstone-300/platform.scatter
parent5e84a8425c3d93f9c441823c894f744e7c9c831f (diff)
downloadethos-u-core-platform-43ce491cdf7a94e0f227502217f574d95fc4c68a.tar.gz
Add Corstone-300 target20.11
Change-Id: I34e9845abdccb3363953bd70fad7c6420865291e
Diffstat (limited to 'targets/corstone-300/platform.scatter')
-rw-r--r--targets/corstone-300/platform.scatter82
1 files changed, 82 insertions, 0 deletions
diff --git a/targets/corstone-300/platform.scatter b/targets/corstone-300/platform.scatter
new file mode 100644
index 0000000..e3037a7
--- /dev/null
+++ b/targets/corstone-300/platform.scatter
@@ -0,0 +1,82 @@
+#! cpp
+
+/*
+ * Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may
+ * not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef STACK_SIZE
+#define STACK_SIZE 0x8000
+#endif
+
+#ifndef HEAP_SIZE
+#define HEAP_SIZE 0x8000
+#endif
+
+APP_IMAGE 0x00000000 0x01000000
+{
+ ; ITCM 512kB
+ rom_exec 0x00000000 0x00080000
+ {
+ *.o (RESET, +First)
+ *(InRoot$$Sections)
+ .ANY (+RO)
+ }
+
+ ; Shared between Cortex-M and the NPU
+ DATA_SRAM 0x01000000 UNINIT 0x00200000 {}
+
+ ; SSE-300 SRAM (3 cycles read latency) from M55/U55
+ ; 2x2MB - only first part mapped
+ SRAM 0x21000000 UNINIT 0x00200000
+ {
+#ifndef ETHOSU_FAST_MEMORY_SIZE
+ ; Place tensor arena in SRAM if we do not have a fast memory area
+ * (.bss.NoInit) ; Tensor Arena
+#else
+ * (.bss.ethosu_scratch)
+#endif
+ }
+
+ ; DTCM 512kB
+ ; Only accessible from the Cortex-M
+ DTCM 0x20000000 (0x00080000 - STACK_SIZE - HEAP_SIZE)
+ {
+ .ANY (+RW +ZI)
+ }
+
+ ARM_LIB_HEAP (0x20080000 - STACK_SIZE - HEAP_SIZE) EMPTY ALIGN 8 HEAP_SIZE {}
+ ARM_LIB_STACK (0x20080000 - STACK_SIZE) EMPTY ALIGN 8 STACK_SIZE {}
+}
+
+LOAD_REGION_1 0x60000000 0x02000000
+{
+ ; 2GB DDR4 available
+ rom_dram 0x60000000 0x02000000
+ {
+ * (network_model_sec)
+ * (input_data_sec)
+ * (expected_output_data_sec)
+ }
+
+#ifdef ETHOSU_FAST_MEMORY_SIZE
+ ; Place tensor arena in DRAM if we have a fast memory area
+ ARENA +0 UNINIT ALIGN 16
+ {
+ * (.bss.NoInit) ; Tensor Arena
+ }
+#endif
+}