aboutsummaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2022-09-29 10:34:56 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-09-29 12:51:16 +0200
commitee3c61375665b796d334a6e05fc01887338693c7 (patch)
tree4667e5890f3125a806bcf51a2d5bc3f2cfbc018d /targets
parent34b1bd2a3575082b3ea10f21ac506a5e3a39a444 (diff)
downloadethos-u-core-platform-ee3c61375665b796d334a6e05fc01887338693c7.tar.gz
Place code segement in BRAM
Use .ANY1 and .ANY2 to place code with highest priority in ITCM and lower priority in BRAM. Change-Id: Ia335dabb451181bfaf26fc1a7a57cd8196a00912
Diffstat (limited to 'targets')
-rw-r--r--targets/corstone-300/platform.scatter10
1 files changed, 6 insertions, 4 deletions
diff --git a/targets/corstone-300/platform.scatter b/targets/corstone-300/platform.scatter
index 85c6549..06e1941 100644
--- a/targets/corstone-300/platform.scatter
+++ b/targets/corstone-300/platform.scatter
@@ -137,11 +137,11 @@ APP_IMAGE LR_START LR_SIZE
rom_exec ITCM_START ITCM_SIZE
{
*.o (RESET, +First)
- *(InRoot$$Sections)
+ * (InRoot$$Sections, .init_array*, .ARM*)
; Make sure reset_handler ends up in root segment, when split across
; ITCM and DTCM
startup_ARMCM55.o
- .ANY (+RO)
+ .ANY2 (+RO)
}
; DTCM 512kB
@@ -183,9 +183,11 @@ LOAD_REGION_BRAM BRAM_START BRAM_SIZE
}
#endif
- TFLM +0
+ TEXT1 +0
{
- lstm_eval.o
+ ; Code segment is placed with higher priority (.ANY2) in ITCM. If ITCM gets
+ ; full, then the remaining symbols may be placed here in BRAM.
+ .ANY1 (+RO)
}
}