Skip to content

Commit

Permalink
Adjust TS101 logo to 99K offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim committed Aug 20, 2024
1 parent 0c78c4c commit a5b9017
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions source/Core/BSP/Miniware/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5b9017

Please sign in to comment.