aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-28 20:18:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-05-02 11:44:31 -0400
commit554ae78d8c85e27fdfb1447bb6fb700e0fd786ff (patch)
tree0fa542466ce06bb603b5e1dc2c00716f33183251 /src
parentee79d0e30764b92f479bfc7126b61ecdf2f8d161 (diff)
downloadkutter-554ae78d8c85e27fdfb1447bb6fb700e0fd786ff.tar.gz
kutter-554ae78d8c85e27fdfb1447bb6fb700e0fd786ff.tar.xz
kutter-554ae78d8c85e27fdfb1447bb6fb700e0fd786ff.zip
stm32: Run stm32h723 at 520Mhz
Increase speed of stm32h723 chips from 400Mhz to 520Mhz. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/stm32/Kconfig3
-rw-r--r--src/stm32/stm32h7_adc.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index aa67dc91..65e7e36d 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -208,7 +208,8 @@ config CLOCK_FREQ
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 520000000 if MACH_STM32H723
+ default 400000000 if MACH_STM32H743 || MACH_STM32H750
default 80000000 if MACH_STM32L412
default 64000000 if MACH_N32G45x && STM32_CLOCK_REF_INTERNAL
default 128000000 if MACH_N32G45x
diff --git a/src/stm32/stm32h7_adc.c b/src/stm32/stm32h7_adc.c
index a630f266..0d7d00f9 100644
--- a/src/stm32/stm32h7_adc.c
+++ b/src/stm32/stm32h7_adc.c
@@ -161,7 +161,8 @@ static const uint8_t adc_pins[] = {
#define ADC_ATICKS 0b110
#define ADC_ATICKS_H723_ADC3 0b111
// 400Mhz stm32h7: clock=25Mhz, Tsamp=387.5, Tconv=394, total=15.76us
-// 400Mhz stm32h723 adc3: clock=50Mhz, Tsamp=640.5, Tconv=653, total=13.06us
+// 520Mhz stm32h723: clock=32.5Mhz, Tsamp=387.5, Tconv=394, total=12.12us
+// 520Mhz stm32h723 adc3: clock=65Mhz, Tsamp=640.5, Tconv=653, total=10.05us
// 80Mhz stm32l4: clock=20Mhz, Tsamp=247.5, Tconv=260, total=13.0us
// 150Mhz stm32g4: clock=37.5Mhz, Tsamp=247.5, Tconv=260, total=6.933us