aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stm32/Kconfig7
-rw-r--r--test/configs/stm32g474.config3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index d14622a2..dbd6ff95 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -88,6 +88,9 @@ choice
config MACH_STM32G431
bool "STM32G431"
select MACH_STM32G4
+ config MACH_STM32G474
+ bool "STM32G474"
+ select MACH_STM32G4
config MACH_STM32H723
bool "STM32H723"
select MACH_STM32H7
@@ -181,6 +184,7 @@ config MCU
default "stm32g0b0xx" if MACH_STM32G0B0
default "stm32g0b1xx" if MACH_STM32G0B1
default "stm32g431xx" if MACH_STM32G431
+ default "stm32g474xx" if MACH_STM32G474
default "stm32h723xx" if MACH_STM32H723
default "stm32h743xx" if MACH_STM32H743
default "stm32h750xx" if MACH_STM32H750
@@ -199,6 +203,7 @@ config CLOCK_FREQ
default 216000000 if MACH_STM32F765
default 64000000 if MACH_STM32G0
default 150000000 if MACH_STM32G431
+ default 170000000 if MACH_STM32G474
default 400000000 if MACH_STM32H7 # 400Mhz is max Klipper currently supports
default 80000000 if MACH_STM32L412
default 64000000 if MACH_N32G45x && STM32_CLOCK_REF_INTERNAL
@@ -213,6 +218,7 @@ config FLASH_SIZE
default 0x40000 if MACH_STM32F2 || MACH_STM32F401 || MACH_STM32H723
default 0x80000 if MACH_STM32F4x5 || MACH_STM32F446
default 0x20000 if MACH_STM32G0 || MACH_STM32G431
+ default 0x40000 if MACH_STM32G474
default 0x20000 if MACH_STM32H750
default 0x200000 if MACH_STM32H743 || MACH_STM32F765
default 0x20000 if MACH_N32G45x
@@ -233,6 +239,7 @@ config RAM_SIZE
default 0x2800 if MACH_STM32F103x6
default 0x5000 if MACH_STM32F103 && !MACH_STM32F103x6 # Ram size of stm32f103x8
default 0x8000 if MACH_STM32G431
+ default 0x20000 if MACH_STM32G474
default 0xa000 if MACH_STM32L412
default 0x20000 if MACH_STM32F207
default 0x10000 if MACH_STM32F401
diff --git a/test/configs/stm32g474.config b/test/configs/stm32g474.config
new file mode 100644
index 00000000..da38a917
--- /dev/null
+++ b/test/configs/stm32g474.config
@@ -0,0 +1,3 @@
+# Base config file for STM32G474 ARM processor
+CONFIG_MACH_STM32=y
+CONFIG_MACH_STM32G474=y