From ae92be36253032f2c9d86bba23df7725e52bed78 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" <5425387+Ralim@users.noreply.github.com> Date: Tue, 9 Apr 2024 08:35:58 +1000 Subject: [PATCH] Fix S60P flash size --- src/config.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/config.h b/src/config.h index e2f62dc..3492a0d 100644 --- a/src/config.h +++ b/src/config.h @@ -36,7 +36,8 @@ #define FLASH_SIZE_KB 128 #define FLASH_BOOTLDR_SIZE_KB 16 #define FLASH_BOOTLDR_PAYLOAD_SIZE_KB 112 -#elif MODEL_S60 || MODEL_S60P + +#elif MODEL_S60 #define GPIO_DFU_BOOT_PORT GPIOB #define GPIO_DFU_BOOT_PIN 0 #define GPIO_DP_PULLUP_PORT GPIOA @@ -45,6 +46,15 @@ #define FLASH_BOOTLDR_SIZE_KB 17 #define FLASH_BOOTLDR_PAYLOAD_SIZE_KB 111 +#elif MODEL_S60P +#define GPIO_DFU_BOOT_PORT GPIOB +#define GPIO_DFU_BOOT_PIN 0 +#define GPIO_DP_PULLUP_PORT GPIOA +#define GPIO_DP_PULLUP_PIN 8 +#define FLASH_SIZE_KB 128 +#define FLASH_BOOTLDR_SIZE_KB 20 +#define FLASH_BOOTLDR_PAYLOAD_SIZE_KB 108 + #elif MODEL_TS80 || MODEL_TS80P #define GPIO_DFU_BOOT_PORT GPIOB #define GPIO_DFU_BOOT_PIN 1