@@ -444,10 +444,13 @@ mon reset init
444444Supports STM32C0x0/STM32C0x1. Instructions are for the STM Nucleo-C031C6 dev board.
445445
446446Tested build configurations:
447- * With RSA2048 and SHA2-256 the code size is 9724 and it boots in under 1 second.
447+ * With RSA2048 and SHA2-256 the code size is 10988 and it boots in under 1 second.
448448* With ED25519 and SHA2-384 the code size is 10024 and takes about 10 seconds for the LED to turn on.
449+ * With LMS-8-10-1 and SHA2-256 the code size is 8164 on gcc-13 (could fit in 8KB partition)
449450
450- Example 32KB partitioning on STM32-G070:
451+ ### Example 32KB partitioning on STM32-G070
452+
453+ with ED25519 or LMS-8-10-1:
451454
452455- Sector size: 2KB
453456- Wolfboot partition size: 10KB
@@ -462,11 +465,28 @@ Example 32KB partitioning on STM32-G070:
462465#define WOLFBOOT_PARTITION_SWAP_ADDRESS 0x08007800 /* at 30KB */
463466```
464467
468+ with RSA2048:
469+
470+ - Sector size: 2KB
471+ - Wolfboot partition size: 12KB
472+ - Application partition size: 8 KB
473+ - Swap size 2KB
474+
475+ ``` C
476+ #define WOLFBOOT_SECTOR_SIZE 0x800 /* 2 KB */
477+ #define WOLFBOOT_PARTITION_BOOT_ADDRESS 0x08003000 /* at 12KB */
478+ #define WOLFBOOT_PARTITION_SIZE 0x2000 /* 8 KB */
479+ #define WOLFBOOT_PARTITION_UPDATE_ADDRESS 0x08005000 /* at 20KB */
480+ #define WOLFBOOT_PARTITION_SWAP_ADDRESS 0x08007800 /* at 30KB */
481+ ```
482+
465483### Building STM32C0
466484
467- Reference configuration (see [ /config/examples/stm32c0.config] ( /config/examples/stm32c0.config ) ).
485+ Reference configuration files (see [ config/examples/stm32c0.config] ( /config/examples/stm32c0.config ) ,
486+ [ config/examples/stm32c0-rsa2048.config] ( /config/examples/stm32c0-rsa2048.config ) and
487+ [ config/examples/stm32c0-lms-8-10-1.config] ( /config/examples/stm32c0-lms-8-10-1.config ) ).
468488
469- You can copy this to wolfBoot root as ` .config ` : ` cp ./config/examples/stm32c0.config .config ` .
489+ You can copy one of these to wolfBoot root as ` .config ` : ` cp ./config/examples/stm32c0.config .config ` .
470490To build you can use ` make ` .
471491
472492The TARGET for this is ` stm32c0 ` : ` make TARGET=stm32c0 ` .
0 commit comments