Skip to content

Commit 26a78ed

Browse files
rolandvsdpgeorge
authored andcommitted
stm32/boards/NUCLEO_F767ZI: Update pins, peripherals and total flash.
- Removed remarks on DFU/OCD in mpconfigboard.h because deploy-stlink works fine too. - Added more UARTs, I2C, corrected SPI, CAN, etc; verified against CubeMX. - Adapted pins.csv to remove errors, add omissions, etc. according to NUCLEO-144 User Manual. - Changed linker file stm32f767.ld to reflect correct size of the Flash. - Tested with LAN and SD card.
1 parent 8af139e commit 26a78ed

File tree

3 files changed

+92
-37
lines changed

3 files changed

+92
-37
lines changed

ports/stm32/boards/NUCLEO_F767ZI/mpconfigboard.h

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// This board is only confirmed to operate using DFU mode and openocd.
2-
// DFU mode can be accessed by setting BOOT0 (see schematics)
3-
// To use openocd run "OPENOCD_CONFIG=boards/openocd_stm32f7.cfg" in
4-
// the make command.
1+
// Note: if the board shows odd behaviour check the option bits and make sure nDBANK is
2+
// set to make the 2MByte space continuous instead of divided into two 1MByte segments.
53

64
#define MICROPY_HW_BOARD_NAME "NUCLEO-F767ZI"
75
#define MICROPY_HW_MCU_NAME "STM32F767"
@@ -31,16 +29,25 @@ void NUCLEO_F767ZI_board_early_init(void);
3129
#define MICROPY_HW_UART2_CTS (pin_D3)
3230
#define MICROPY_HW_UART3_TX (pin_D8)
3331
#define MICROPY_HW_UART3_RX (pin_D9)
34-
#define MICROPY_HW_UART6_TX (pin_G14)
35-
#define MICROPY_HW_UART6_RX (pin_G9)
32+
#define MICROPY_HW_UART6_TX (pin_C6)
33+
#define MICROPY_HW_UART6_RX (pin_C7)
34+
#define MICROPY_HW_UART5_TX (pin_B6)
35+
#define MICROPY_HW_UART5_RX (pin_B12)
36+
#define MICROPY_HW_UART7_TX (pin_F7)
37+
#define MICROPY_HW_UART7_RX (pin_F6)
38+
#define MICROPY_HW_UART8_TX (pin_E1)
39+
#define MICROPY_HW_UART8_RX (pin_E0)
40+
3641
#define MICROPY_HW_UART_REPL PYB_UART_3
3742
#define MICROPY_HW_UART_REPL_BAUD 115200
3843

3944
// I2C busses
4045
#define MICROPY_HW_I2C1_SCL (pin_B8)
4146
#define MICROPY_HW_I2C1_SDA (pin_B9)
42-
#define MICROPY_HW_I2C3_SCL (pin_H7)
43-
#define MICROPY_HW_I2C3_SDA (pin_H8)
47+
#define MICROPY_HW_I2C2_SCL (pin_F1)
48+
#define MICROPY_HW_I2C2_SDA (pin_F0)
49+
#define MICROPY_HW_I2C4_SCL (pin_F14)
50+
#define MICROPY_HW_I2C4_SDA (pin_F15)
4451

4552
// SPI
4653
#define MICROPY_HW_SPI3_NSS (pin_A4)
@@ -49,10 +56,8 @@ void NUCLEO_F767ZI_board_early_init(void);
4956
#define MICROPY_HW_SPI3_MOSI (pin_B5)
5057

5158
// CAN busses
52-
#define MICROPY_HW_CAN1_TX (pin_B9)
53-
#define MICROPY_HW_CAN1_RX (pin_B8)
54-
#define MICROPY_HW_CAN2_TX (pin_B13)
55-
#define MICROPY_HW_CAN2_RX (pin_B12)
59+
#define MICROPY_HW_CAN1_TX (pin_D1)
60+
#define MICROPY_HW_CAN1_RX (pin_D0)
5661

5762
// USRSW is pulled low. Pressing the button makes the input go high.
5863
#define MICROPY_HW_USRSW_PIN (pin_C13)

ports/stm32/boards/NUCLEO_F767ZI/pins.csv

Lines changed: 74 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,49 +33,97 @@ D22,PB5
3333
D23,PB3
3434
D24,PA4
3535
D25,PB4
36+
D26,PB6
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,PE14
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,PA7
82+
DAC1,PA4
83+
DAC2,PA5
3684
LED1,PB0
3785
LED2,PB7
3886
LED3,PB14
3987
SW,PC13
40-
TP1,PH2
41-
TP2,PI8
42-
TP3,PH15
43-
AUDIO_INT,PD6
44-
AUDIO_SDA,PH8
45-
AUDIO_SCL,PH7
46-
EXT_SDA,PB9
47-
EXT_SCL,PB8
48-
EXT_RST,PG3
4988
SD_D0,PC8
5089
SD_D1,PC9
5190
SD_D2,PC10
5291
SD_D3,PC11
5392
SD_CMD,PD2
5493
SD_CK,PC12
5594
SD_SW,PG2
56-
LCD_BL_CTRL,PK3
57-
LCD_INT,PI13
58-
LCD_SDA,PH8
59-
LCD_SCL,PH7
60-
OTG_FS_POWER,PD5
61-
OTG_FS_OVER_CURRENT,PD4
62-
OTG_HS_OVER_CURRENT,PE3
95+
OTG_FS_POWER,PG6
96+
OTG_FS_OVER_CURRENT,PG7
6397
USB_VBUS,PA9
6498
USB_ID,PA10
6599
USB_DM,PA11
66100
USB_DP,PA12
67-
USB_POWER,PG6
68-
VCP_TX,PD8
69-
VCP_RX,PD9
70101
UART2_TX,PD5
71102
UART2_RX,PD6
72103
UART2_RTS,PD4
73104
UART2_CTS,PD3
74-
UART6_TX,PG14
75-
UART6_RX,PG9
76-
SPI_B_NSS,PA4
77-
SPI_B_SCK,PB3
78-
SPI_B_MOSI,PB5
105+
VCP_TX,PD8
106+
VCP_RX,PD9
107+
UART3_TX,PD8
108+
UART3_RX,PD9
109+
UART5_TX,PB6
110+
UART5_RX,PB12
111+
UART6_TX,PC6
112+
UART6_RX,PC7
113+
UART7_TX,PF7
114+
UART7_RX,PF6
115+
UART8_TX,PE1
116+
UART8_RX,PE0
117+
SPI3_NSS,PA4
118+
SPI3_SCK,PB3
119+
SPI3_MISO,PB4
120+
SPI3_MOSI,PB5
121+
I2C1_SDA,PB9
122+
I2C1_SCL,PB8
123+
I2C2_SDA,PF0
124+
I2C2_SCL,PF1
125+
I2C4_SCL,PF14
126+
I2C4_SDA,PF15
79127
ETH_MDC,PC1
80128
ETH_MDIO,PA2
81129
ETH_RMII_REF_CLK,PA1
@@ -85,3 +133,5 @@ ETH_RMII_RXD1,PC5
85133
ETH_RMII_TX_EN,PG11
86134
ETH_RMII_TXD0,PG13
87135
ETH_RMII_TXD1,PB13
136+
SWDIO,PA13
137+
SWDCLK,PA14

ports/stm32/boards/stm32f767.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/* Specify the memory areas */
66
MEMORY
77
{
8-
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
8+
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K
99
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 32K /* sector 0, 32K */
1010
FLASH_APP (rx) : ORIGIN = 0x08008000, LENGTH = 2016K /* sectors 1-11 3x32K 1*128K 7*256K */
1111
FLASH_FS (r) : ORIGIN = 0x08008000, LENGTH = 96K /* sectors 1, 2, 3 (32K each) */

0 commit comments

Comments
 (0)