diff options
author | Davide Grohmann <davide.grohmann@arm.com> | 2022-05-05 17:15:19 +0200 |
---|---|---|
committer | Davide Grohmann <davide.grohmann@arm.com> | 2022-05-06 11:24:19 +0200 |
commit | 8b53aad76ea95dc1f4c8ce64b6f8dc14f727b46f (patch) | |
tree | 72ac62a81e4c3606ef9ec52e353f17df396e4b51 /targets/corstone-300 | |
parent | 9038df90bf14e17da774132cc6240d1b456a82fe (diff) | |
download | ethos-u-core-platform-8b53aad76ea95dc1f4c8ce64b6f8dc14f727b46f.tar.gz |
Fix: length for scatter loading should be in words not in bytes
Divide by 4 the length in bytes to get length in words as expected by
the CMSIS scatter loading implementation.
Change-Id: I5d239e13739a578bd61dc0b594e3453e8dcdab4d
Diffstat (limited to 'targets/corstone-300')
-rw-r--r-- | targets/corstone-300/platform.ld | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/targets/corstone-300/platform.ld b/targets/corstone-300/platform.ld index 76cb29c..12cc6ee 100644 --- a/targets/corstone-300/platform.ld +++ b/targets/corstone-300/platform.ld @@ -189,11 +189,11 @@ SECTIONS __copy_table_start__ = .; LONG (__etext) LONG (__data_start__) - LONG (__data_end__ - __data_start__) + LONG ((__data_end__ - __data_start__) / 4) LONG (__eddr_data) LONG (__sram_data_start__) - LONG (__sram_data_end__ - __sram_data_start__ ) + LONG ((__sram_data_end__ - __sram_data_start__) / 4) __copy_table_end__ = .; } > ITCM :rom_exec @@ -203,7 +203,7 @@ SECTIONS . = ALIGN(4); __zero_table_start__ = .; LONG (__bss_start__) - LONG (__bss_end__ - __bss_start__) + LONG ((__bss_end__ - __bss_start__) / 4) __zero_table_end__ = .; /** |