Move LOGO and settings to suit Miniware DFU

This commit is contained in:
Ben V. Brown
2024-08-19 20:19:12 +10:00
parent adfc521122
commit 8a3d464dda
2 changed files with 10 additions and 4 deletions

View File

@@ -272,8 +272,13 @@
#endif /* TS80P */
#ifdef MODEL_TS101
#define FLASH_LOGOADDR (0x08000000 + (126 * 1024))
#define SETTINGS_START_PAGE (0x08000000 + (127 * 1024))
// For whatever reason, Miniware decided to only allow their bootloader to work on 4k page sizes
// So we have to locate the boot-logo on a different 4k page to the settings
// And also, it doesnt let me write to the last page on my DFU version
// So, we put settings on the last section (as we can work with it fine)
// And then we use the N-1'th 4K for logo
#define FLASH_LOGOADDR (0x08000000 + (120 * 1024))
#define SETTINGS_START_PAGE (0x08000000 + (124 * 1024))
#else
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
#define SETTINGS_START_PAGE (0x08000000 + (63 * 1024))

View File

@@ -84,7 +84,8 @@ DEVICE_BSP_DIR=./Core/BSP/Miniware
LDSCRIPT=./Core/BSP/Miniware/stm32f103.ld
ifeq ($(model),$(filter $(model),TS101))
flash_size=126k
# 128K - 8K for settings & logo
flash_size=119k
bootldr_size=0x8000
DEVICE_DFU_ADDRESS=0x08008000
else