From af09857f70770c4df717b5e29d4ea31acf7dbcc2 Mon Sep 17 00:00:00 2001 From: Alex Lanzano Date: Thu, 8 May 2025 16:37:51 -0400 Subject: [PATCH] Replace example stm32f4 config This replaces the base stm32f4 config with more board specific examples for the stm32f407 discovery kit and stm32f411 blackpill board. --- ...32f4.config => stm32f407-discovery.config} | 5 +++++ config/examples/stm32f411-blackpill.config | 21 +++++++++++++++++++ 2 files changed, 26 insertions(+) rename config/examples/{stm32f4.config => stm32f407-discovery.config} (76%) create mode 100644 config/examples/stm32f411-blackpill.config diff --git a/config/examples/stm32f4.config b/config/examples/stm32f407-discovery.config similarity index 76% rename from config/examples/stm32f4.config rename to config/examples/stm32f407-discovery.config index d70b9229..d10b192b 100644 --- a/config/examples/stm32f4.config +++ b/config/examples/stm32f407-discovery.config @@ -9,3 +9,8 @@ WOLFBOOT_SECTOR_SIZE?=0x20000 WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08020000 WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08040000 WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08060000 +CLOCK_SPEED?=160000000 +STM32_PLLM?=8 +STM32_PLLN?=336 +STM32_PLLP?=2 +STM32_PLLQ?=7 diff --git a/config/examples/stm32f411-blackpill.config b/config/examples/stm32f411-blackpill.config new file mode 100644 index 00000000..3aaffa88 --- /dev/null +++ b/config/examples/stm32f411-blackpill.config @@ -0,0 +1,21 @@ +ARCH?=ARM +TARGET?=stm32f4 +SIGN?=ED25519 +HASH?=SHA256 +VTOR?=1 +SPMATH?=1 +WOLFBOOT_ORIGIN?=0x08000000 +WOLFBOOT_PARTITION_SIZE?=0x20000 +WOLFBOOT_SECTOR_SIZE?=0x20000 +WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08020000 +WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x08040000 +WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x08060000 +CLOCK_SPEED?=84000000 +STM32_PLLM?=25 +STM32_PLLN?=336 +STM32_PLLP?=4 +STM32_PLLQ?=7 +USE_UART1?=1 +UART_FLASH?=1 +DEBUG?=1 +STM32?=1