Skip to content

Commit 737ecaf

Browse files
committed
wolfBoot partition size on stm32c0-lms: 10KB
With gcc < 13, LMS setup won't fit in 8KB (overflow of 32B).
1 parent 5538850 commit 737ecaf

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

config/examples/stm32c0-lms-8-10-1.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ CFLAGS_EXTRA+=-DUSE_SLOW_SHA256
3333
#CFLAGS_EXTRA+=-DFLASH_SECURABLE_MEMORY_SUPPORT
3434

3535

36-
#Partition: Boot: 8KB, App, 10KB
36+
#Partition: Boot: 10KB, App, 10KB
3737
WOLFBOOT_PARTITION_SIZE?=0x2800
3838
WOLFBOOT_SECTOR_SIZE?=0x800
39-
#Max WOLFBOOT size is 8KB
40-
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08002000
39+
#Max WOLFBOOT size is 10KB
40+
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08002800
4141
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x085000
4242
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800
4343

docs/Targets.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,11 @@ Supports STM32C0x0/STM32C0x1. Instructions are for the STM Nucleo-C031C6 dev boa
445445
Tested build configurations:
446446
* With RSA2048 and SHA2-256 the code size is 10988 and it boots in under 1 second.
447447
* With ED25519 and SHA2-384 the code size is 10024 and takes about 10 seconds for the LED to turn on.
448-
* With LMS-8-10-1 and SHA2-256 the code size is 8164
448+
* With LMS-8-10-1 and SHA2-256 the code size is 8164 on gcc-13 (could fit in 8KB partition)
449449

450450
### Example 32KB partitioning on STM32-G070
451451

452-
with ED25519:
452+
with ED25519 or LMS-8-10-1:
453453

454454
- Sector size: 2KB
455455
- Wolfboot partition size: 10KB
@@ -464,21 +464,6 @@ with ED25519:
464464
#define WOLFBOOT_PARTITION_SWAP_ADDRESS 0x08007800 /* at 30KB */
465465
```
466466

467-
with LMS:
468-
469-
- Sector size: 2KB
470-
- Wolfboot partition size: 8KB
471-
- Application partition size: 10 KB
472-
- Swap size 2KB
473-
474-
```C
475-
#define WOLFBOOT_SECTOR_SIZE 0x800 /* 2 KB */
476-
#define WOLFBOOT_PARTITION_BOOT_ADDRESS 0x08002000 /* at 8KB */
477-
#define WOLFBOOT_PARTITION_SIZE 0x2800 /* 10 KB */
478-
#define WOLFBOOT_PARTITION_UPDATE_ADDRESS 0x08005000 /* at 20KB */
479-
#define WOLFBOOT_PARTITION_SWAP_ADDRESS 0x08007800 /* at 30KB */
480-
```
481-
482467
with RSA2048:
483468

484469
- Sector size: 2KB

0 commit comments

Comments
 (0)