From ee3c61375665b796d334a6e05fc01887338693c7 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Thu, 29 Sep 2022 10:34:56 +0200 Subject: 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 --- targets/corstone-300/platform.scatter | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'targets') 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) } } -- cgit v1.2.1