Skip to content

Commit 2cafef8

Browse files
committed
stm32/boards/NUCLEO_F429ZI: Incr CPU freq to 168MHz to get USB working.
At the original frequency of 90MHz there's no way to get a 48MHz USB clock. These new setting mirror those of the STM32F429DISC board.
1 parent 1871a92 commit 2cafef8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ports/stm32/boards/NUCLEO_F429ZI/mpconfigboard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
// HSE is 8MHz
1818
#define MICROPY_HW_CLK_PLLM (8)
19-
#define MICROPY_HW_CLK_PLLN (180)
19+
#define MICROPY_HW_CLK_PLLN (336)
2020
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
21-
#define MICROPY_HW_CLK_PLLQ (4)
21+
#define MICROPY_HW_CLK_PLLQ (7)
2222

2323
// From the reference manual, for 2.7V to 3.6V
2424
// 151-180 MHz => 5 wait states

0 commit comments

Comments
 (0)