Skip to content

Commit dd2cd6f

Browse files
authored
Merge pull request #2979 from hierophect/stm32-remove-crystals
STM32: Set correct crystal settings on Discovery boards
2 parents bdbb16e + 75eb44f commit dd2cd6f

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

ports/stm/boards/nucleo_f746zg/mpconfigboard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#define FLASH_PAGE_SIZE (0x4000)
3535

3636
#define BOARD_OSC_DIV (8)
37+
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0) // TODO: enable this once LSE is fixed for H7/F7
3738

3839
#define DEBUG_UART_TX (&pin_PD08)
3940
#define DEBUG_UART_RX (&pin_PD09)

ports/stm/boards/nucleo_f767zi/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
#define FLASH_PAGE_SIZE (0x4000)
3434

3535
#define BOARD_OSC_DIV (8)
36-
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0)
36+
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0) // TODO: enable this once LSE is fixed for H7/F7

ports/stm/boards/nucleo_h743zi_2/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
#define FLASH_PAGE_SIZE (0x4000)
3333

3434
#define BOARD_OSC_DIV (8)
35-
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0)
35+
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0) // TODO: enable this once LSE is fixed for H7/F7

ports/stm/boards/stm32f412zg_discovery/mpconfigboard.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#define FLASH_PAGE_SIZE (0x4000)
3434

3535
#define BOARD_OSC_DIV (8)
36-
3736
#define BOARD_HAS_LOW_SPEED_CRYSTAL (1)
3837

3938
#define DEFAULT_I2C_BUS_SCL (&pin_PB10)

ports/stm/boards/stm32f4_discovery/mpconfigboard.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@
3333
#define FLASH_PAGE_SIZE (0x4000)
3434

3535
#define BOARD_OSC_DIV (8)
36-
37-
#define BOARD_HAS_LOW_SPEED_CRYSTAL (1)
36+
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0)

ports/stm/boards/stm32f746g_discovery/mpconfigboard.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@
3939
#define BOARD_OSC_PLLN (400)
4040
#define BOARD_OSC_PLLQ (9)
4141

42+
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0) // TODO: enable this once LSE is fixed for H7/F7
43+
4244
#define BOARD_FLASH_LATENCY FLASH_LATENCY_6
4345
#define BOARD_NO_VBUS_SENSE 1

0 commit comments

Comments
 (0)