Skip to content

STM32: Set correct crystal settings on Discovery boards #2979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ports/stm/boards/nucleo_f746zg/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define FLASH_PAGE_SIZE (0x4000)

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

#define DEBUG_UART_TX (&pin_PD08)
#define DEBUG_UART_RX (&pin_PD09)
2 changes: 1 addition & 1 deletion ports/stm/boards/nucleo_f767zi/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
#define FLASH_PAGE_SIZE (0x4000)

#define BOARD_OSC_DIV (8)
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0)
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0) // TODO: enable this once LSE is fixed for H7/F7
2 changes: 1 addition & 1 deletion ports/stm/boards/nucleo_h743zi_2/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
#define FLASH_PAGE_SIZE (0x4000)

#define BOARD_OSC_DIV (8)
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0)
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0) // TODO: enable this once LSE is fixed for H7/F7
1 change: 0 additions & 1 deletion ports/stm/boards/stm32f412zg_discovery/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#define FLASH_PAGE_SIZE (0x4000)

#define BOARD_OSC_DIV (8)

#define BOARD_HAS_LOW_SPEED_CRYSTAL (1)

#define DEFAULT_I2C_BUS_SCL (&pin_PB10)
Expand Down
3 changes: 1 addition & 2 deletions ports/stm/boards/stm32f4_discovery/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@
#define FLASH_PAGE_SIZE (0x4000)

#define BOARD_OSC_DIV (8)

#define BOARD_HAS_LOW_SPEED_CRYSTAL (1)
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0)
2 changes: 2 additions & 0 deletions ports/stm/boards/stm32f746g_discovery/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@
#define BOARD_OSC_PLLN (400)
#define BOARD_OSC_PLLQ (9)

#define BOARD_HAS_LOW_SPEED_CRYSTAL (0) // TODO: enable this once LSE is fixed for H7/F7

#define BOARD_FLASH_LATENCY FLASH_LATENCY_6
#define BOARD_NO_VBUS_SENSE 1