~ruther/qmk_firmware

ref: c4414af9f3dbf1bae6bdf9bd29da070bb9dc8f47 qmk_firmware/keyboards/handwired/onekey/bluepill_f103c6/rules.mk -rw-r--r-- 658 bytes
c4414af9 — spacehangover [Keyboard] Add Mercury Macropad (#23071) 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Bootloader selection
# Cannot use `BOOTLOADER = stm32duino` due to the need to override
# `MCU_LDSCRIPT`, therefore all parameters need to be specified here manually.
OPT_DEFS += -DBOOTLOADER_STM32DUINO
MCU_LDSCRIPT = STM32F103x6_stm32duino
BOOTLOADER_TYPE = stm32duino
DFU_ARGS = -d 1EAF:0003 -a 2 -R
DFU_SUFFIX_ARGS = -v 1EAF -p 0003

# LTO is required to fit the firmware into the available 24K of flash
LTO_ENABLE = yes

# EEPROM emulation not supported yet (need to implement a proper firmware size
# check first, otherwise the chance of the EEPROM backing store overwriting
# some part of the firmware code is really high).
EEPROM_DRIVER = transient