-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more configuration options for stm32c0
- Loading branch information
1 parent
c332cb9
commit 655ba46
Showing
4 changed files
with
136 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
ARCH?=ARM | ||
TARGET?=stm32c0 | ||
SIGN?=LMS | ||
LMS_LEVELS=1 | ||
LMS_HEIGHT=10 | ||
LMS_WINTERNITZ=8 | ||
IMAGE_SIGNATURE_SIZE=1456 | ||
IMAGE_HEADER_SIZE=2048 | ||
HASH?=SHA256 | ||
DEBUG?=0 | ||
VTOR?=1 | ||
CORTEX_M0?=1 | ||
NO_ASM?=0 | ||
NO_MPU?=1 | ||
EXT_FLASH?=0 | ||
SPI_FLASH?=0 | ||
ALLOW_DOWNGRADE?=0 | ||
NVM_FLASH_WRITEONCE?=1 | ||
WOLFBOOT_VERSION?=0 | ||
V?=0 | ||
SPMATH?=1 | ||
DUALBANK_SWAP?=0 | ||
|
||
# Enable this to support wolfBoot self-update | ||
RAM_CODE?=0 | ||
|
||
# Use slightly smaller SHA2-256 | ||
CFLAGS_EXTRA+=-DUSE_SLOW_SHA256 | ||
|
||
# Enable this feature for secure memory support | ||
# Makes the flash sectors for the bootloader unaccessible from the application | ||
# Requires using the STM32CubeProgrammer to set FLASH_SECR -> SEC_SIZE pages | ||
#CFLAGS_EXTRA+=-DFLASH_SECURABLE_MEMORY_SUPPORT | ||
|
||
|
||
#Partition: Boot: 8KB, App, 10KB | ||
WOLFBOOT_PARTITION_SIZE?=0x2800 | ||
WOLFBOOT_SECTOR_SIZE?=0x800 | ||
#Max WOLFBOOT size is 8KB | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08002000 | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x085000 | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800 | ||
|
||
#Example debugging partition for larger wolfBoot | ||
#Partition: Boot: 22KB, App, 4K | ||
#DEBUG?=1 | ||
#WOLFBOOT_PARTITION_SIZE?=0x1000 | ||
#WOLFBOOT_SECTOR_SIZE?=0x800 | ||
#WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08005800 | ||
#WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08006800 | ||
#WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
ARCH?=ARM | ||
TARGET?=stm32c0 | ||
SIGN?=RSA2048 | ||
HASH?=SHA256 | ||
DEBUG?=0 | ||
VTOR?=1 | ||
CORTEX_M0?=1 | ||
NO_ASM?=0 | ||
NO_MPU?=1 | ||
EXT_FLASH?=0 | ||
SPI_FLASH?=0 | ||
ALLOW_DOWNGRADE?=0 | ||
NVM_FLASH_WRITEONCE?=1 | ||
WOLFBOOT_VERSION?=0 | ||
V?=0 | ||
SPMATH?=1 | ||
DUALBANK_SWAP?=0 | ||
|
||
# Enable this to support wolfBoot self-update | ||
RAM_CODE?=0 | ||
|
||
# Use slightly smaller SHA2-256 | ||
CFLAGS_EXTRA+=-DUSE_SLOW_SHA256 | ||
|
||
# Enable this feature for secure memory support | ||
# Makes the flash sectors for the bootloader unaccessible from the application | ||
# Requires using the STM32CubeProgrammer to set FLASH_SECR -> SEC_SIZE pages | ||
#CFLAGS_EXTRA+=-DFLASH_SECURABLE_MEMORY_SUPPORT | ||
|
||
|
||
#Partition: Boot: 12KB, App, 8KB | ||
WOLFBOOT_PARTITION_SIZE?=0x2000 | ||
WOLFBOOT_SECTOR_SIZE?=0x800 | ||
#Max WOLFBOOT size is 10KB | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08003000 | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08005000 | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800 | ||
|
||
#Example debugging partition for larger wolfBoot | ||
#Partition: Boot: 22KB, App, 4K | ||
#DEBUG?=1 | ||
#WOLFBOOT_PARTITION_SIZE?=0x1000 | ||
#WOLFBOOT_SECTOR_SIZE?=0x800 | ||
#WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08005800 | ||
#WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08006800 | ||
#WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08007800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters