From e2e7812376739d585c0657dcd573ebd0591e99ab Mon Sep 17 00:00:00 2001 From: Drashna Jael're Date: Sat, 5 Oct 2024 14:27:08 -0700 Subject: [PATCH] Add F407xG ld script --- platforms/chibios/boards/common/ld/STM32F407xG.ld | 13 +++++++++++++ .../chibios/boards/common/ld/STM32F407xG_tinyuf2.ld | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 platforms/chibios/boards/common/ld/STM32F407xG.ld create mode 100644 platforms/chibios/boards/common/ld/STM32F407xG_tinyuf2.ld diff --git a/platforms/chibios/boards/common/ld/STM32F407xG.ld b/platforms/chibios/boards/common/ld/STM32F407xG.ld new file mode 100644 index 0000000000..d9468e18c5 --- /dev/null +++ b/platforms/chibios/boards/common/ld/STM32F407xG.ld @@ -0,0 +1,13 @@ +/* + * Copyright 2006..2018 Giovanni Di Sirio + * Copyright 2022 QMK contributors + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +f4xx_flash_size = 1M; +f4xx_ram1_size = 112k; +f4xx_ram2_size = 16k; +f4xx_ram4_size = 64k; +f4xx_ram5_size = 4k; + +INCLUDE stm32f4xx_common.ld diff --git a/platforms/chibios/boards/common/ld/STM32F407xG_tinyuf2.ld b/platforms/chibios/boards/common/ld/STM32F407xG_tinyuf2.ld new file mode 100644 index 0000000000..51c4b625ac --- /dev/null +++ b/platforms/chibios/boards/common/ld/STM32F407xG_tinyuf2.ld @@ -0,0 +1,13 @@ +/* + * Copyright 2006..2018 Giovanni Di Sirio + * Copyright 2022 QMK contributors + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +f4xx_flash_size = 1M; +f4xx_ram1_size = 112k; +f4xx_ram2_size = 16k; +f4xx_ram4_size = 64k; +f4xx_ram5_size = 4k; + +INCLUDE stm32f4xx_tinyuf2_common.ld