Skip to content

Commit

Permalink
Add eeprom defaults for tinyuf2 bootloader (#18042)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Aug 25, 2022
1 parent 1c47bd0 commit 43fd647
Show file tree
Hide file tree
Showing 21 changed files with 5 additions and 574 deletions.
1 change: 1 addition & 0 deletions builddefs/bootloader.mk
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ endif
ifeq ($(strip $(BOOTLOADER)), tinyuf2)
OPT_DEFS += -DBOOTLOADER_TINYUF2
BOOTLOADER_TYPE = tinyuf2
FIRMWARE_FORMAT = uf2
endif
ifeq ($(strip $(BOOTLOADER)), rp2040)
OPT_DEFS += -DBOOTLOADER_RP2040
Expand Down
6 changes: 4 additions & 2 deletions builddefs/mcu_selection.mk
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ ifneq ($(findstring STM32F401, $(MCU)),)
# or <keyboard_dir>/ld/
ifeq ($(strip $(BOOTLOADER)), tinyuf2)
MCU_LDSCRIPT ?= STM32F401xC_tinyuf2
FIRMWARE_FORMAT ?= uf2
EEPROM_DRIVER ?= wear_leveling
WEAR_LEVELING_DRIVER ?= legacy
else
MCU_LDSCRIPT ?= STM32F401xC
endif
Expand Down Expand Up @@ -464,7 +465,8 @@ ifneq ($(findstring STM32F411, $(MCU)),)
# or <keyboard_dir>/ld/
ifeq ($(strip $(BOOTLOADER)), tinyuf2)
MCU_LDSCRIPT ?= STM32F411xE_tinyuf2
FIRMWARE_FORMAT ?= uf2
EEPROM_DRIVER ?= wear_leveling
WEAR_LEVELING_DRIVER ?= legacy
else
MCU_LDSCRIPT ?= STM32F411xE
endif
Expand Down
8 changes: 0 additions & 8 deletions keyboards/mechwild/puckbuddy/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
#define MATRIX_ROWS 4
#define MATRIX_COLS 4

#ifdef UF2_BUILD
#define EXTERNAL_EEPROM_BYTE_COUNT 2048
#define EXTERNAL_EEPROM_PAGE_SIZE 128
#define EXTERNAL_EEPROM_ADDRESS_SIZE 1
#define EXTERNAL_EEPROM_WRITE_TIME 0
#define FEE_PAGE_BASE_ADDRESS 0x08008000
#endif

/* Define custom font */
#define OLED_FONT_H "keyboards/mechwild/puckbuddy/glcdfont.c"

Expand Down
88 changes: 0 additions & 88 deletions keyboards/mechwild/puckbuddy/ld/STM32F401xE.ld

This file was deleted.

7 changes: 0 additions & 7 deletions keyboards/mechwild/puckbuddy/post_rules.mk

This file was deleted.

3 changes: 0 additions & 3 deletions keyboards/mlego/m48/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,3 @@
#define RGBLIGHT_EFFECT_TWINKLE

#endif

// you want to comment this if using stm32-dfu as bootloader
#define FEE_PAGE_BASE_ADDRESS 0x08008000
88 changes: 0 additions & 88 deletions keyboards/mlego/m48/rev1/ld/STM32F401xE.ld

This file was deleted.

2 changes: 0 additions & 2 deletions keyboards/mlego/m48/rev1/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ BOARD = BLACKPILL_STM32_F401

# Bootloader selection
BOOTLOADER = tinyuf2
MCU_LDSCRIPT = STM32F401xE
EEPROM_DRIVER = vendor
#BOOTLOADER = stm32-dfu

# Build Options
Expand Down
3 changes: 0 additions & 3 deletions keyboards/mlego/m60/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,3 @@
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#endif

// you want to comment this if using stm32-dfu as bootloader
#define FEE_PAGE_BASE_ADDRESS 0x08008000
88 changes: 0 additions & 88 deletions keyboards/mlego/m60/rev1/ld/STM32F401xE.ld

This file was deleted.

2 changes: 0 additions & 2 deletions keyboards/mlego/m60/rev1/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ BOARD = BLACKPILL_STM32_F401
# Bootloader selection
BOOTLOADER = tinyuf2
#BOOTLOADER = stm32-dfu
MCU_LDSCRIPT = STM32F401xE
EEPROM_DRIVER = vendor

# Build Options
# change yes to no to disable
Expand Down
3 changes: 0 additions & 3 deletions keyboards/mlego/m60_split/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,3 @@
#define BOOTMAGIC_LITE_ROW_RIGHT 5
#define BOOTMAGIC_LITE_COLUMN_RIGHT 0
#endif

// you want to comment this if using stm32-dfu as bootloader
#define FEE_PAGE_BASE_ADDRESS 0x08008000
Loading

0 comments on commit 43fd647

Please sign in to comment.