@@ -443,10 +443,13 @@ mon reset init
443
443
Supports STM32C0x0/STM32C0x1. Instructions are for the STM Nucleo-C031C6 dev board.
444
444
445
445
Tested build configurations:
446
- * With RSA2048 and SHA2-256 the code size is 9724 and it boots in under 1 second.
446
+ * With RSA2048 and SHA2-256 the code size is 10988 and it boots in under 1 second.
447
447
* 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
449
449
- Example 32KB partitioning on STM32-G070:
450
+ ### Example 32KB partitioning on STM32-G070
451
+
452
+ with ED25519:
450
453
451
454
- Sector size: 2KB
452
455
- Wolfboot partition size: 10KB
@@ -461,11 +464,43 @@ Example 32KB partitioning on STM32-G070:
461
464
#define WOLFBOOT_PARTITION_SWAP_ADDRESS 0x08007800 /* at 30KB */
462
465
```
463
466
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
+
482
+ with RSA2048:
483
+
484
+ - Sector size: 2KB
485
+ - Wolfboot partition size: 12KB
486
+ - Application partition size: 8 KB
487
+ - Swap size 2KB
488
+
489
+ ``` C
490
+ #define WOLFBOOT_SECTOR_SIZE 0x800 /* 2 KB */
491
+ #define WOLFBOOT_PARTITION_BOOT_ADDRESS 0x08003000 /* at 12KB */
492
+ #define WOLFBOOT_PARTITION_SIZE 0x2000 /* 8 KB */
493
+ #define WOLFBOOT_PARTITION_UPDATE_ADDRESS 0x08005000 /* at 20KB */
494
+ #define WOLFBOOT_PARTITION_SWAP_ADDRESS 0x08007800 /* at 30KB */
495
+ ```
496
+
464
497
### Building STM32C0
465
498
466
- Reference configuration (see [ /config/examples/stm32c0.config] ( /config/examples/stm32c0.config ) ).
499
+ Reference configuration files (see [ config/examples/stm32c0.config] ( /config/examples/stm32c0.config ) ,
500
+ [ config/examples/stm32c0-rsa2048.config] ( /config/examples/stm32c0-rsa2048.config ) and
501
+ [ config/examples/stm32c0-lms-8-10-1.config] ( /config/examples/stm32c0-lms-8-10-1.config ) ).
467
502
468
- You can copy this to wolfBoot root as ` .config ` : ` cp ./config/examples/stm32c0.config .config ` .
503
+ You can copy one of these to wolfBoot root as ` .config ` : ` cp ./config/examples/stm32c0.config .config ` .
469
504
To build you can use ` make ` .
470
505
471
506
The TARGET for this is ` stm32c0 ` : ` make TARGET=stm32c0 ` .
0 commit comments