aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBen V. Brown <[email protected]>2024-08-20 22:54:50 +1000
committerBen V. Brown <[email protected]>2024-08-20 22:54:50 +1000
commita5b901720823ac4250d69d749759965431a434e1 (patch)
tree565a3ebc49f5fa6d0590a5a01b3609a567edc3fc
parent0c78c4cb2d3cba784ca7e631d7357168e3264700 (diff)
downloadIronOS-TS101-logo-dfu.tar.gz
IronOS-TS101-logo-dfu.zip
Adjust TS101 logo to 99K offsetTS101-logo-dfu
-rw-r--r--source/Core/BSP/Miniware/configuration.h12
-rw-r--r--source/Makefile4
2 files changed, 8 insertions, 8 deletions
diff --git a/source/Core/BSP/Miniware/configuration.h b/source/Core/BSP/Miniware/configuration.h
index 8a58f9ed..c1e9c351 100644
--- a/source/Core/BSP/Miniware/configuration.h
+++ b/source/Core/BSP/Miniware/configuration.h
@@ -272,12 +272,12 @@
#endif /* TS80P */
#ifdef MODEL_TS101
-// 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 + (124 * 1024))
+// For whatever reason, Miniware decided to not build a reliable DFU bootloader
+// It can't appear to flash to some of the upper pages of flash,
+// I'm slightly suspect a watchdog or something runs out
+// as device resets before file finishes copying
+// So logo has to be located on page 99 or else it cant be flashed on stock bootloader
+#define FLASH_LOGOADDR (0x08000000 + (99 * 1024))
#define SETTINGS_START_PAGE (0x08000000 + (127 * 1024))
#else
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
diff --git a/source/Makefile b/source/Makefile
index 5142461a..0754d7c6 100644
--- a/source/Makefile
+++ b/source/Makefile
@@ -84,8 +84,8 @@ DEVICE_BSP_DIR=./Core/BSP/Miniware
LDSCRIPT=./Core/BSP/Miniware/stm32f103.ld
ifeq ($(model),$(filter $(model),TS101))
-# 128K - 8K for settings & logo
-flash_size=119k
+# 128K, but logo must be at 99K so their broken ass DFU can flash it
+flash_size=98k
bootldr_size=0x8000
DEVICE_DFU_ADDRESS=0x08008000
else