8000 stm32/boards/NUCLEO_H743ZI2: Add modified version of NUCLEO_H743ZI. · codemee/micropython@a0cd18c · GitHub
[go: up one dir, main page]

Skip to content

Commit a0cd18c

Browse files
bikeNomaddpgeorge
authored andcommitted
stm32/boards/NUCLEO_H743ZI2: Add modified version of NUCLEO_H743ZI.
This commit creates a new stm32 board for the NUCLEO_H743ZI2, which is the current version of this from ST. This is a modified copy of the NUCLEO_H743ZI board, and the ZI2 board differs in a few minor ways: - LED2 has moved from PB7 to PE1 and is now yellow rather than blue - the USB power enable has moved from PG6 to PG10 - the USER button is now pulled down
1 parent 23531bc commit a0cd18c

File tree

6 files changed

+160
-3
lines changed

6 files changed

+160
-3
lines changed

ports/stm32/boards/NUCLEO_H743ZI/board_init.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
void NUCLEO_H743ZI_board_early_init(void) {
44
// Turn off the USB switch
5-
#define USB_PowerSwitchOn pin_G6
6-
mp_hal_pin_output(USB_PowerSwitchOn);
7-
mp_hal_pin_low(USB_PowerSwitchOn);
5+
mp_hal_pin_output(pyb_pin_OTG_FS_POWER);
6+
mp_hal_pin_low(pyb_pin_OTG_FS_POWER);
87
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "boards/NUCLEO_H743ZI/board_init.c"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include "boards/NUCLEO_H743ZI/mpconfigboard.h"
2+
3+
#undef MICROPY_HW_BOARD_NAME
4+
#define MICROPY_HW_BOARD_NAME "NUCLEO_H743ZI2"
5+
6+
// The board has an external 32kHz crystal attached
7+
#undef MICROPY_HW_RTC_USE_LSE
8+
#define MICROPY_HW_RTC_USE_LSE (1)
9+
10+
// There is no external HS crystal.
11+
// JP1 STLNK_RST will disable the incoming 8MHz clock
12+
// since it is derived from the STLINK's MCO output
13+
#undef MICROPY_HW_CLK_USE_BYPASS
14+
#define MICROPY_HW_CLK_USE_BYPASS (1)
15+
16+
#undef MICROPY_HW_LED2
17+
#define MICROPY_HW_LED2 (pin_E1) // yellow
18+
19+
// only when mboot is used
20+
// Define the user button for entering mboot
21+
#if defined(USE_MBOOT)
22+
#define MBOOT_BOOTPIN_PIN (pin_C13)
23+
#define MBOOT_BOOTPIN_PULL (MP_HAL_PIN_PULL_DOWN)
24+
#define MBOOT_BOOTPIN_ACTIVE (1)
25+
#endif
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include boards/NUCLEO_H743ZI/mpconfigboard.mk
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
A0,PA3
2+
A1,PC0
3+
A2,PC3
4+
A3,PB1
5+
A4,PC2
6+
A5,PF10
7+
A6,PF4
8+
A7,PF5
9+
A8,PF6
10+
D0,PB7
11+
D1,PB6
12+
D2,PG14
13+
D3,PE13
14+
D4,PE14
15+
D5,PE11
16+
D6,PE9
17+
D7,PG12
18+
D8,PF3
19+
D9,PD15
20+
D10,PD14
21+
D11,PB5
22+
D12,PA6
23+
D13,PA7
24+
D14,PB9
25+
D15,PB8
26+
D16,PC6
27+
D17,PB15
28+
D18,PB13
29+
D19,PB12
30+
D20,PA15
31+
D21,PC7
32+
D22,PB5
33+
D23,PB3
34+
D24,PA4
35+
D25,PB4
36+
D26,PG6
37+
D27,PB2
38+
D28,PD13
39+
D29,PD12
40+
D30,PD11
41+
D31,PE2
42+
D32,PA0
43+
D33,PB0
44+
D34,PE0
45+
D35,PB11
46+
D36,PB10
47+
D37,PE15
48+
D38,PE6
49+
D39,PE12
50+
D40,PE10
51+
D41,PE7
52+
D42,PE8
53+
D43,PC8
54+
D44,PC9
55+
D45,PC10
56+
D46,PC11
57+
D47,PC12
58+
D48,PD2
59+
D49,PG2
60+
D50,PG3
61+
D51,PD7
62+
D52,PD6
63+
D53,PD5
64+
D54,PD4
65+
D55,PD3
66+
D56,PE2
67+
D57,PE4
68+
D58,PE5
69+
D59,PE6
70+
D60,PE3
71+
D61,PF8
72+
D62,PF7
73+
D63,PF9
74+
D64,PG1
75+
D65,PG0
76+
D66,PD1
77+
D67,PD0
78+
D68,PF0
79+
D69,PF1
80+
D70,PF2
81+
D71,PE9
82+
D72,PB2
83+
DAC1,PA4
84+
DAC2,PA5
85+
LED1,PB0
86+
LED2,PE1
87+
LED3,PB14
88+
SW,PC13
89+
I2C1_SDA,PB9
90+
I2C1_SCL,PB8
91+
I2C2_SDA,PF0
92+
I2C2_SCL,PF1
93+
I2C4_SCL,PF14
94+
I2C4_SDA,PF15
95+
SD_D0,PC8
96+
SD_D1,PC9
97+
SD_D2,PC10
98+
SD_D3,PC11
99+
SD_CMD,PD2
100+
SD_CK,PC12
101+
SD_SW,PG2
102+
OTG_FS_POWER,PD10
103+
OTG_FS_OVER_CURRENT,PG7
104+
USB_VBUS,PA9
105+
USB_ID,PA10
106+
USB_DM,PA11
107+
USB_DP,PA12
108+
UART2_TX,PD5
109+
UART2_RX,PD6
110+
UART2_RTS,PD4
111+
UART2_CTS,PD3
112+
UART3_TX,PD8
113+
UART3_RX,PD9
114+
UART5_TX,PB6
115+
UART5_RX,PB12
116+
UART6_TX,PC6
117+
UART6_RX,PC7
118+
UART7_TX,PF7
119+
UART7_RX,PF6
120+
UART8_TX,PE1
121+
UART8_RX,PE0
122+
ETH_MDC,PC1
123+
ETH_MDIO,PA2
124+
ETH_RMII_REF_CLK,PA1
125+
ETH_RMII_CRS_DV,PA7
126+
ETH_RMII_RXD0,PC4
127+
ETH_RMII_RXD1,PC5
128+
ETH_RMII_TX_EN,PG11
129+
ETH_RMII_TXD0,PG13
130+
ETH_RMII_TXD1,PB13
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "boards/NUCLEO_H743ZI/stm32h7xx_hal_conf.h"

0 commit comments

Comments
 (0)
0