summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2025-10-13 06:40:45 +0100
committerGitHub <noreply@github.com>2025-10-13 06:40:45 +0100
commitf4068dbfb0a5bc8ba0daf4e714ff3cbe89ef92c2 (patch)
tree3007957050a8259df41d1d7f399faeeb088be5e7
parent08405df1505293acb9a4e89bcf98935d78902094 (diff)
Update STM32F446 default HSE to 8MHz (#25717)
-rw-r--r--keyboards/handwired/onekey/nucleo_f446re/board.h3
-rw-r--r--keyboards/handwired/onekey/nucleo_f446re/mcuconf.h6
-rw-r--r--keyboards/handwired/onekey/nucleo_f446re/readme.md2
-rw-r--r--keyboards/ibm/model_m_4th_gen/overnumpad_1xb/mcuconf.h11
-rw-r--r--keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/mcuconf.h11
-rw-r--r--keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/mcuconf.h11
-rw-r--r--keyboards/unicomp/pc122/overnumpad_1xb/mcuconf.h11
-rw-r--r--keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/mcuconf.h11
-rw-r--r--keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/mcuconf.h11
-rw-r--r--platforms/chibios/boards/GENERIC_STM32_F446XE/configs/board.h1
-rw-r--r--platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h1
-rw-r--r--platforms/chibios/boards/GENERIC_STM32_F446XE/configs/mcuconf.h4
12 files changed, 71 insertions, 12 deletions
diff --git a/keyboards/handwired/onekey/nucleo_f446re/board.h b/keyboards/handwired/onekey/nucleo_f446re/board.h
index 0c5f4dde79..54c93c551a 100644
--- a/keyboards/handwired/onekey/nucleo_f446re/board.h
+++ b/keyboards/handwired/onekey/nucleo_f446re/board.h
@@ -4,6 +4,5 @@
4 4
5#include_next <board.h> 5#include_next <board.h>
6 6
7#undef STM32_HSECLK 7// Configure clocks to use onboard STLINKs MCO as HSE is not populated by default
8#define STM32_HSECLK 8000000U
9#define STM32_HSE_BYPASS 8#define STM32_HSE_BYPASS
diff --git a/keyboards/handwired/onekey/nucleo_f446re/mcuconf.h b/keyboards/handwired/onekey/nucleo_f446re/mcuconf.h
index 701d61d31d..ba463bf4f7 100644
--- a/keyboards/handwired/onekey/nucleo_f446re/mcuconf.h
+++ b/keyboards/handwired/onekey/nucleo_f446re/mcuconf.h
@@ -4,12 +4,6 @@
4 4
5#include_next <mcuconf.h> 5#include_next <mcuconf.h>
6 6
7#undef STM32_PLLM_VALUE
8#define STM32_PLLM_VALUE 4
9
10#undef STM32_PLLSAIM_VALUE
11#define STM32_PLLSAIM_VALUE 4
12
13#undef STM32_ADC_USE_ADC1 7#undef STM32_ADC_USE_ADC1
14#define STM32_ADC_USE_ADC1 TRUE 8#define STM32_ADC_USE_ADC1 TRUE
15 9
diff --git a/keyboards/handwired/onekey/nucleo_f446re/readme.md b/keyboards/handwired/onekey/nucleo_f446re/readme.md
index b0645b65fe..71a5e48184 100644
--- a/keyboards/handwired/onekey/nucleo_f446re/readme.md
+++ b/keyboards/handwired/onekey/nucleo_f446re/readme.md
@@ -1,4 +1,4 @@
1# STM32 Nucleo-L432 onekey 1# STM32 Nucleo-F446 onekey
2 2
3To trigger keypress, short together pins *A0* and *A1*. Note that the pin numbering is relative to the MCU, so that A0 and A1 refer to PA0 and PA1 on the MCU (which are also labelled A0 and A1 on the board, but this isn't true for the other PAx pins). 3To trigger keypress, short together pins *A0* and *A1*. Note that the pin numbering is relative to the MCU, so that A0 and A1 refer to PA0 and PA1 on the MCU (which are also labelled A0 and A1 on the board, but this isn't true for the other PAx pins).
4 4
diff --git a/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/mcuconf.h b/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/mcuconf.h
new file mode 100644
index 0000000000..0e89bead66
--- /dev/null
+++ b/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/mcuconf.h
@@ -0,0 +1,11 @@
1// Copyright 2025 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3#pragma once
4
5#include_next <mcuconf.h>
6
7#undef STM32_PLLM_VALUE
8#define STM32_PLLM_VALUE 8
9
10#undef STM32_PLLSAIM_VALUE
11#define STM32_PLLSAIM_VALUE 8
diff --git a/keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/mcuconf.h b/keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/mcuconf.h
new file mode 100644
index 0000000000..0e89bead66
--- /dev/null
+++ b/keyboards/unicomp/classic_ultracl_post_2013/overnumpad_1xb/mcuconf.h
@@ -0,0 +1,11 @@
1// Copyright 2025 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3#pragma once
4
5#include_next <mcuconf.h>
6
7#undef STM32_PLLM_VALUE
8#define STM32_PLLM_VALUE 8
9
10#undef STM32_PLLSAIM_VALUE
11#define STM32_PLLSAIM_VALUE 8
diff --git a/keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/mcuconf.h b/keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/mcuconf.h
new file mode 100644
index 0000000000..0e89bead66
--- /dev/null
+++ b/keyboards/unicomp/classic_ultracl_pre_2013/overnumpad_1xb/mcuconf.h
@@ -0,0 +1,11 @@
1// Copyright 2025 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3#pragma once
4
5#include_next <mcuconf.h>
6
7#undef STM32_PLLM_VALUE
8#define STM32_PLLM_VALUE 8
9
10#undef STM32_PLLSAIM_VALUE
11#define STM32_PLLSAIM_VALUE 8
diff --git a/keyboards/unicomp/pc122/overnumpad_1xb/mcuconf.h b/keyboards/unicomp/pc122/overnumpad_1xb/mcuconf.h
new file mode 100644
index 0000000000..0e89bead66
--- /dev/null
+++ b/keyboards/unicomp/pc122/overnumpad_1xb/mcuconf.h
@@ -0,0 +1,11 @@
1// Copyright 2025 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3#pragma once
4
5#include_next <mcuconf.h>
6
7#undef STM32_PLLM_VALUE
8#define STM32_PLLM_VALUE 8
9
10#undef STM32_PLLSAIM_VALUE
11#define STM32_PLLSAIM_VALUE 8
diff --git a/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/mcuconf.h b/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/mcuconf.h
new file mode 100644
index 0000000000..0e89bead66
--- /dev/null
+++ b/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/mcuconf.h
@@ -0,0 +1,11 @@
1// Copyright 2025 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3#pragma once
4
5#include_next <mcuconf.h>
6
7#undef STM32_PLLM_VALUE
8#define STM32_PLLM_VALUE 8
9
10#undef STM32_PLLSAIM_VALUE
11#define STM32_PLLSAIM_VALUE 8
diff --git a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/mcuconf.h b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/mcuconf.h
new file mode 100644
index 0000000000..0e89bead66
--- /dev/null
+++ b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/mcuconf.h
@@ -0,0 +1,11 @@
1// Copyright 2025 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3#pragma once
4
5#include_next <mcuconf.h>
6
7#undef STM32_PLLM_VALUE
8#define STM32_PLLM_VALUE 8
9
10#undef STM32_PLLSAIM_VALUE
11#define STM32_PLLSAIM_VALUE 8
diff --git a/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/board.h b/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/board.h
index f05762c9b4..b06d96b5d7 100644
--- a/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/board.h
+++ b/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/board.h
@@ -15,7 +15,6 @@
15 */ 15 */
16#pragma once 16#pragma once
17 17
18#define STM32_HSECLK 16000000
19// The following is required to disable the pull-down on PA9, when PA9 is used for the keyboard matrix: 18// The following is required to disable the pull-down on PA9, when PA9 is used for the keyboard matrix:
20#define BOARD_OTG_NOVBUSSENS 19#define BOARD_OTG_NOVBUSSENS
21 20
diff --git a/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h b/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h
index 362327efde..9af5c14d52 100644
--- a/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h
+++ b/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h
@@ -13,6 +13,7 @@
13 * You should have received a copy of the GNU General Public License 13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#pragma once
16 17
17#ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP 18#ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP
18# define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE 19# define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
diff --git a/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/mcuconf.h b/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/mcuconf.h
index 566c146c25..9c5cb82436 100644
--- a/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/mcuconf.h
+++ b/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/mcuconf.h
@@ -48,7 +48,7 @@
48#define STM32_CLOCK48_REQUIRED TRUE 48#define STM32_CLOCK48_REQUIRED TRUE
49#define STM32_SW STM32_SW_PLL 49#define STM32_SW STM32_SW_PLL
50#define STM32_PLLSRC STM32_PLLSRC_HSE 50#define STM32_PLLSRC STM32_PLLSRC_HSE
51#define STM32_PLLM_VALUE 8 51#define STM32_PLLM_VALUE 4
52#define STM32_PLLN_VALUE 180 52#define STM32_PLLN_VALUE 180
53#define STM32_PLLP_VALUE 2 53#define STM32_PLLP_VALUE 2
54#define STM32_PLLQ_VALUE 7 54#define STM32_PLLQ_VALUE 7
@@ -58,7 +58,7 @@
58#define STM32_PLLI2SP_VALUE 4 58#define STM32_PLLI2SP_VALUE 4
59#define STM32_PLLI2SQ_VALUE 4 59#define STM32_PLLI2SQ_VALUE 4
60#define STM32_PLLSAIN_VALUE 192 60#define STM32_PLLSAIN_VALUE 192
61#define STM32_PLLSAIM_VALUE 8 61#define STM32_PLLSAIM_VALUE 4
62#define STM32_PLLSAIP_VALUE 8 62#define STM32_PLLSAIP_VALUE 8
63#define STM32_PLLSAIQ_VALUE 4 63#define STM32_PLLSAIQ_VALUE 4
64#define STM32_HPRE STM32_HPRE_DIV1 64#define STM32_HPRE STM32_HPRE_DIV1