Skip to content

Commit b1ea9e8

Browse files
committed
tc3xx: realign partition size and addresses to support more efficient sector mass erase on update
1 parent 1123365 commit b1ea9e8

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

IDE/AURIX/test-app-wolfHSM/Lcf_Gnuc_Tricore_Tc.lsl.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ MEMORY
121121
pfls1_hdr (rx!p): org = LCF_WOLFBOOT_BOOT_PART_BASEADDR, len = LCF_WOLFBOOT_HEADER_OFFSET
122122

123123
/* pfls1 is the remainder of the wolfBoot BOOT partition. Everything goes here */
124-
pfls1 (rx!p): org = LCF_CODE_BASE_ADDR, len = (0x17E000 - LCF_WOLFBOOT_HEADER_OFFSET)
124+
pfls1 (rx!p): org = LCF_CODE_BASE_ADDR, len = (0x17C000 - LCF_WOLFBOOT_HEADER_OFFSET)
125125

126126
/* reserved for wolfBoot UPDATE partition */
127-
pfls1_update (rwx!p): org = 0xA047E000, len = 0x17E000 /* ~1.5MiB */
127+
pfls1_update (rwx!p): org = 0xA047C000, len = 0x17C000 /* ~1.5MiB */
128128

129129
/* SWAP sector for wolfBoot image update */
130130
pfls1_swap (rwx!p): org = 0xA05FC000, len = 16K /* last sector of PFLASH1 */

IDE/AURIX/test-app/Lcf_Gnuc_Tricore_Tc.lsl.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ MEMORY
121121
pfls1_hdr (rx!p): org = LCF_WOLFBOOT_BOOT_PART_BASEADDR, len = LCF_WOLFBOOT_HEADER_OFFSET
122122

123123
/* pfls1 is the remainder of the wolfBoot BOOT partition. Everything goes here */
124-
pfls1 (rx!p): org = LCF_CODE_BASE_ADDR, len = (0x17E000 - LCF_WOLFBOOT_HEADER_OFFSET)
124+
pfls1 (rx!p): org = LCF_CODE_BASE_ADDR, len = (0x17C000 - LCF_WOLFBOOT_HEADER_OFFSET)
125125

126126
/* reserved for wolfBoot UPDATE partition */
127-
pfls1_update (rwx!p): org = 0xA047E000, len = 0x17E000 /* ~1.5MiB */
127+
pfls1_update (rwx!p): org = 0xA047C000, len = 0x17C000 /* ~1.5MiB */
128128

129129
/* SWAP sector for wolfBoot image update */
130130
pfls1_swap (rwx!p): org = 0xA05FC000, len = 16K /* last sector of PFLASH1 */

tools/scripts/tc3xx/wbaurixtool.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ do_gen_target() {
246246
wolfboot_partition_update_address=0xA053C000
247247
wolfboot_partition_swap_address=0xA05FC000
248248
else
249-
wolfboot_partition_size=0x17E000
249+
wolfboot_partition_size=0x17C000
250250
wolfboot_partition_boot_address=0xA0300000
251-
wolfboot_partition_update_address=0xA047E000
251+
wolfboot_partition_update_address=0xA047C000
252252
wolfboot_partition_swap_address=0xA05FC000
253253
fi
254254

tools/scripts/tc3xx/wolfBoot-loadAll-debug.cmm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ flash.erase all
1313

1414
flash.reprogram all /erase
1515
data.load.binary "&testApp" 0xA0300000
16-
data.load.binary "&updateApp" 0xA047E000
16+
data.load.binary "&updateApp" 0xA047C000
1717
data.load.elf "&wolfBoot"
1818
flash.reprogram off
1919

tools/scripts/tc3xx/wolfBoot-loadAll-release.cmm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ flash.erase all
1313

1414
flash.reprogram all /erase
1515
data.load.binary "&testApp" 0xA0300000
16-
data.load.binary "&updateApp" 0xA047E000
16+
data.load.binary "&updateApp" 0xA047C000
1717
data.load.elf "&wolfBoot"
1818
flash.reprogram off
1919

tools/scripts/tc3xx/wolfBoot-wolfHSM-loadAll-debug.cmm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FLASH.Erase 0xA00A0000--0xA05FFFFF
1616
flash.reprogram all /erase
1717

1818
data.load.binary "&testApp" 0xA0300000
19-
data.load.binary "&updateApp" 0xA047E000
19+
data.load.binary "&updateApp" 0xA047C000
2020
data.load.elf "&wolfBoot"
2121
flash.reprogram off
2222

tools/scripts/tc3xx/wolfBoot-wolfHSM-loadAll-release.cmm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FLASH.Erase 0xA00A0000--0xA05FFFFF
1616
flash.reprogram all /erase
1717

1818
data.load.binary "&testApp" 0xA0300000
19-
data.load.binary "&updateApp" 0xA047E000
19+
data.load.binary "&updateApp" 0xA047C000
2020
data.load.elf "&wolfBoot"
2121
flash.reprogram off
2222

0 commit comments

Comments
 (0)