Skip to content

Commit 230bbbb

Browse files
oliver-joosdpgeorge
authored andcommitted
stm32/boards/NUCLEO_H7x3: Add UART1, remove UART5, slow down PLL1Q.
STM32CubeMX shows a conflict of UART5 with ETH MII. However UART1 can be used with TX and RX on the pin headers. PLL1Q is reduced from 200 to 100 MHz because it may be used for FDCAN or SDMMC. FDCAN needs <= 150 MHz, and 100 MHz is enough for an SDCard connected to pin headers to work reliably. Signed-off-by: Oliver Joos <oliver.joos@hispeed.ch>
1 parent 6b13e6c commit 230bbbb

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void NUCLEO_H743ZI_board_early_init(void);
1717
#define MICROPY_HW_CLK_PLLM (4)
1818
#define MICROPY_HW_CLK_PLLN (400)
1919
#define MICROPY_HW_CLK_PLLP (2)
20-
#define MICROPY_HW_CLK_PLLQ (4)
20+
#define MICROPY_HW_CLK_PLLQ (8)
2121
#define MICROPY_HW_CLK_PLLR (2)
2222
#define MICROPY_HW_CLK_PLLVCI (RCC_PLL1VCIRANGE_1)
2323
#define MICROPY_HW_CLK_PLLVCO (RCC_PLL1VCOWIDE)
@@ -37,14 +37,16 @@ void NUCLEO_H743ZI_board_early_init(void);
3737
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
3838

3939
// UART config
40+
#define MICROPY_HW_UART1_TX (pin_B6)
41+
#define MICROPY_HW_UART1_RX (pin_B15)
4042
#define MICROPY_HW_UART2_TX (pin_D5)
4143
#define MICROPY_HW_UART2_RX (pin_D6)
4244
#define MICROPY_HW_UART2_RTS (pin_D4)
4345
#define MICROPY_HW_UART2_CTS (pin_D3)
4446
#define MICROPY_HW_UART3_TX (pin_D8)
4547
#define MICROPY_HW_UART3_RX (pin_D9)
46-
#define MICROPY_HW_UART5_TX (pin_B6)
47-
#define MICROPY_HW_UART5_RX (pin_B12)
48+
// #define MICROPY_HW_UART5_TX (pin_B6) // conflict with UART1_TX
49+
// #define MICROPY_HW_UART5_RX (pin_B12) // conflict with Ethernet MII mode
4850
#define MICROPY_HW_UART6_TX (pin_C6)
4951
#define MICROPY_HW_UART6_RX (pin_C7)
5052
#define MICROPY_HW_UART7_TX (pin_F7)

ports/stm32/boards/NUCLEO_H743ZI/pins.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ USB_VBUS,PA9
105105
USB_ID,PA10
106106
USB_DM,PA11
107107
USB_DP,PA12
108+
UART1_TX,PB6
109+
UART1_RX,PB15
108110
UART2_TX,PD5
109111
UART2_RX,PD6
110112
UART2_RTS,PD4

ports/stm32/boards/NUCLEO_H743ZI2/pins.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ USB_VBUS,PA9
105105
USB_ID,PA10
106106
USB_DM,PA11
107107
USB_DP,PA12
108+
UART1_TX,PB6
109+
UART1_RX,PB15
108110
UART2_TX,PD5
109111
UART2_RX,PD6
110112
UART2_RTS,PD4

ports/stm32/boards/NUCLEO_H753ZI/pins.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ USB_VBUS,PA9
105105
USB_ID,PA10
106106
USB_DM,PA11
107107
USB_DP,PA12
108+
UART1_TX,PB6
109+
UART1_RX,PB15
108110
UART2_TX,PD5
109111
UART2_RX,PD6
110112
UART2_RTS,PD4

0 commit comments

Comments
 (0)