2024-07-01 05:47:01 +08:00
|
|
|
Configuration MCU
|
|
|
|
STM32CubeMX 6.11.1
|
|
|
|
Date 06/23/2024
|
|
|
|
MCU STM32L476RETx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PERIPHERALS MODES FUNCTIONS PINS
|
|
|
|
CAN1 Activated CAN1_RX PB8
|
|
|
|
CAN1 Activated CAN1_TX PB9
|
|
|
|
I2C3 I2C I2C3_SCL PC0
|
|
|
|
I2C3 I2C I2C3_SDA PC1
|
|
|
|
LPUART1 Asynchronous LPUART1_RX PB10
|
|
|
|
LPUART1 Asynchronous LPUART1_TX PB11
|
|
|
|
LPUART1 Hardware Flow Control (RS485) LPUART1_DE PB12
|
|
|
|
RCC Crystal/Ceramic Resonator RCC_OSC_IN PH0-OSC_IN (PH0)
|
|
|
|
RCC Crystal/Ceramic Resonator RCC_OSC_OUT PH1-OSC_OUT (PH1)
|
|
|
|
SDMMC1 MMC 1 bit SDMMC1_CK PC12
|
|
|
|
SDMMC1 MMC 1 bit SDMMC1_CMD PD2
|
|
|
|
SDMMC1 MMC 1 bit SDMMC1_D0 PC8
|
|
|
|
SPI2 Full-Duplex Master SPI2_MISO PB14
|
|
|
|
SPI2 Full-Duplex Master SPI2_MOSI PB15
|
|
|
|
SPI2 Full-Duplex Master SPI2_SCK PB13
|
|
|
|
SPI3 Full-Duplex Master SPI3_MISO PB4 (NJTRST)
|
|
|
|
SPI3 Full-Duplex Master SPI3_MOSI PB5
|
|
|
|
SPI3 Full-Duplex Master SPI3_SCK PB3 (JTDO-TRACESWO)
|
|
|
|
SYS Serial Wire SYS_JTCK-SWCLK PA14 (JTCK-SWCLK)
|
|
|
|
SYS Serial Wire SYS_JTMS-SWDIO PA13 (JTMS-SWDIO)
|
|
|
|
SYS Power Voltage Detector In (Internal analog voltage) SYS_V_PVD_IN VP_SYS_V_PVD_IN
|
|
|
|
SYS TIM15 SYS_VS_tim15 VP_SYS_VS_tim15
|
|
|
|
UART4 Asynchronous UART4_RX PA1
|
|
|
|
UART4 Asynchronous UART4_TX PA0
|
|
|
|
USART1 Asynchronous USART1_RX PA10
|
|
|
|
USART1 Asynchronous USART1_TX PA9
|
|
|
|
USART2 Asynchronous USART2_RX PA3
|
|
|
|
USART2 Asynchronous USART2_TX PA2
|
|
|
|
USART3 Asynchronous USART3_RX PC5
|
|
|
|
USART3 Asynchronous USART3_TX PC4
|
|
|
|
USB_OTG_FS Device_Only USB_OTG_FS_DM PA11
|
|
|
|
USB_OTG_FS Device_Only USB_OTG_FS_DP PA12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pin Nb PINs FUNCTIONs LABELs
|
|
|
|
2 PC13 GPIO_Output
|
|
|
|
3 PC14-OSC32_IN (PC14) GPIO_EXTI14
|
|
|
|
4 PC15-OSC32_OUT (PC15) GPIO_Output
|
|
|
|
5 PH0-OSC_IN (PH0) RCC_OSC_IN
|
|
|
|
6 PH1-OSC_OUT (PH1) RCC_OSC_OUT
|
|
|
|
8 PC0 I2C3_SCL
|
|
|
|
9 PC1 I2C3_SDA
|
|
|
|
10 PC2 GPIO_EXTI2
|
|
|
|
11 PC3 GPIO_EXTI3
|
|
|
|
14 PA0 UART4_TX
|
|
|
|
15 PA1 UART4_RX
|
|
|
|
16 PA2 USART2_TX
|
|
|
|
17 PA3 USART2_RX
|
|
|
|
20 PA4 GPIO_Output
|
|
|
|
21 PA5 GPIO_Output
|
|
|
|
22 PA6 GPIO_Output
|
|
|
|
23 PA7 GPIO_Output
|
|
|
|
24 PC4 USART3_TX
|
|
|
|
25 PC5 USART3_RX
|
|
|
|
26 PB0 GPIO_Output
|
|
|
|
28 PB2 GPIO_Output
|
|
|
|
29 PB10 LPUART1_RX
|
|
|
|
30 PB11 LPUART1_TX
|
|
|
|
33 PB12 LPUART1_DE
|
|
|
|
34 PB13 SPI2_SCK
|
|
|
|
35 PB14 SPI2_MISO
|
|
|
|
36 PB15 SPI2_MOSI
|
|
|
|
37 PC6 GPIO_Output
|
|
|
|
39 PC8 SDMMC1_D0
|
|
|
|
41 PA8 GPIO_Input
|
|
|
|
42 PA9 USART1_TX
|
|
|
|
43 PA10 USART1_RX
|
|
|
|
44 PA11 USB_OTG_FS_DM
|
|
|
|
45 PA12 USB_OTG_FS_DP
|
|
|
|
46 PA13 (JTMS-SWDIO) SYS_JTMS-SWDIO
|
|
|
|
49 PA14 (JTCK-SWCLK) SYS_JTCK-SWCLK
|
|
|
|
50 PA15 (JTDI) GPIO_Output
|
|
|
|
53 PC12 SDMMC1_CK
|
|
|
|
54 PD2 SDMMC1_CMD
|
|
|
|
55 PB3 (JTDO-TRACESWO) SPI3_SCK
|
|
|
|
56 PB4 (NJTRST) SPI3_MISO
|
|
|
|
57 PB5 SPI3_MOSI
|
|
|
|
58 PB6 GPIO_Output
|
|
|
|
59 PB7 GPIO_EXTI7
|
|
|
|
61 PB8 CAN1_RX
|
|
|
|
62 PB9 CAN1_TX
|
|
|
|
PERIPHERALS MODES FUNCTIONS PINS
|
|
|
|
CAN1 Activated CAN1_RX PB8
|
|
|
|
CAN1 Activated CAN1_TX PB9
|
|
|
|
I2C3 I2C I2C3_SCL PC0
|
|
|
|
I2C3 I2C I2C3_SDA PC1
|
|
|
|
LPUART1 Asynchronous LPUART1_RX PB10
|
|
|
|
LPUART1 Asynchronous LPUART1_TX PB11
|
|
|
|
LPUART1 Hardware Flow Control (RS485) LPUART1_DE PB12
|
|
|
|
RCC Crystal/Ceramic Resonator RCC_OSC_IN PH0-OSC_IN (PH0)
|
|
|
|
RCC Crystal/Ceramic Resonator RCC_OSC_OUT PH1-OSC_OUT (PH1)
|
|
|
|
SDMMC1 MMC 1 bit SDMMC1_CK PC12
|
|
|
|
SDMMC1 MMC 1 bit SDMMC1_CMD PD2
|
|
|
|
SDMMC1 MMC 1 bit SDMMC1_D0 PC8
|
|
|
|
SPI2 Full-Duplex Master SPI2_MISO PB14
|
|
|
|
SPI2 Full-Duplex Master SPI2_MOSI PB15
|
|
|
|
SPI2 Full-Duplex Master SPI2_SCK PB13
|
|
|
|
SPI3 Full-Duplex Master SPI3_MISO PB4 (NJTRST)
|
|
|
|
SPI3 Full-Duplex Master SPI3_MOSI PB5
|
|
|
|
SPI3 Full-Duplex Master SPI3_SCK PB3 (JTDO-TRACESWO)
|
|
|
|
SYS Serial Wire SYS_JTCK-SWCLK PA14 (JTCK-SWCLK)
|
|
|
|
SYS Serial Wire SYS_JTMS-SWDIO PA13 (JTMS-SWDIO)
|
|
|
|
SYS Power Voltage Detector In (Internal analog voltage) SYS_V_PVD_IN VP_SYS_V_PVD_IN
|
|
|
|
SYS TIM15 SYS_VS_tim15 VP_SYS_VS_tim15
|
|
|
|
UART4 Asynchronous UART4_RX PA1
|
|
|
|
UART4 Asynchronous UART4_TX PA0
|
|
|
|
USART1 Asynchronous USART1_RX PA10
|
|
|
|
USART1 Asynchronous USART1_TX PA9
|
|
|
|
USART2 Asynchronous USART2_RX PA3
|
|
|
|
USART2 Asynchronous USART2_TX PA2
|
|
|
|
USART3 Asynchronous USART3_RX PC5
|
|
|
|
USART3 Asynchronous USART3_TX PC4
|
|
|
|
USB_OTG_FS Device_Only USB_OTG_FS_DM PA11
|
|
|
|
USB_OTG_FS Device_Only USB_OTG_FS_DP PA12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pin Nb PINs FUNCTIONs LABELs
|
|
|
|
2 PC13 GPIO_Output
|
|
|
|
3 PC14-OSC32_IN (PC14) GPIO_EXTI14
|
|
|
|
4 PC15-OSC32_OUT (PC15) GPIO_Output
|
|
|
|
5 PH0-OSC_IN (PH0) RCC_OSC_IN
|
|
|
|
6 PH1-OSC_OUT (PH1) RCC_OSC_OUT
|
|
|
|
8 PC0 I2C3_SCL
|
|
|
|
9 PC1 I2C3_SDA
|
|
|
|
10 PC2 GPIO_EXTI2
|
|
|
|
11 PC3 GPIO_EXTI3
|
|
|
|
14 PA0 UART4_TX
|
|
|
|
15 PA1 UART4_RX
|
|
|
|
16 PA2 USART2_TX
|
|
|
|
17 PA3 USART2_RX
|
|
|
|
20 PA4 GPIO_Output
|
|
|
|
21 PA5 GPIO_Output
|
|
|
|
22 PA6 GPIO_Output
|
|
|
|
23 PA7 GPIO_Output
|
|
|
|
24 PC4 USART3_TX
|
|
|
|
25 PC5 USART3_RX
|
|
|
|
26 PB0 GPIO_Output
|
|
|
|
28 PB2 GPIO_Output
|
|
|
|
29 PB10 LPUART1_RX
|
|
|
|
30 PB11 LPUART1_TX
|
|
|
|
33 PB12 LPUART1_DE
|
|
|
|
34 PB13 SPI2_SCK
|
|
|
|
35 PB14 SPI2_MISO
|
|
|
|
36 PB15 SPI2_MOSI
|
|
|
|
37 PC6 GPIO_Output
|
|
|
|
39 PC8 SDMMC1_D0
|
|
|
|
41 PA8 GPIO_Input
|
|
|
|
42 PA9 USART1_TX
|
|
|
|
43 PA10 USART1_RX
|
|
|
|
44 PA11 USB_OTG_FS_DM
|
|
|
|
45 PA12 USB_OTG_FS_DP
|
|
|
|
46 PA13 (JTMS-SWDIO) SYS_JTMS-SWDIO
|
|
|
|
49 PA14 (JTCK-SWCLK) SYS_JTCK-SWCLK
|
|
|
|
50 PA15 (JTDI) GPIO_Output
|
|
|
|
53 PC12 SDMMC1_CK
|
|
|
|
54 PD2 SDMMC1_CMD
|
|
|
|
55 PB3 (JTDO-TRACESWO) SPI3_SCK
|
|
|
|
56 PB4 (NJTRST) SPI3_MISO
|
|
|
|
57 PB5 SPI3_MOSI
|
|
|
|
58 PB6 GPIO_Output
|
|
|
|
59 PB7 GPIO_EXTI7
|
|
|
|
61 PB8 CAN1_RX
|
|
|
|
62 PB9 CAN1_TX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SOFTWARE PROJECT
|
|
|
|
|
|
|
|
Project Settings :
|
|
|
|
Project Name : MCU
|
|
|
|
Project Folder : C:\BLACKBOARD\AAA_UNITS\AAA_HONORS\firmware
|
|
|
|
Toolchain / IDE : STM32CubeIDE
|
|
|
|
Firmware Package Name and Version : STM32Cube FW_L4 V1.18.0
|
|
|
|
|
|
|
|
|
|
|
|
Code Generation Settings :
|
|
|
|
STM32Cube MCU packages and embedded software packs : Copy only the necessary library files
|
|
|
|
Generate peripheral initialization as a pair of '.c/.h' files per peripheral : No
|
|
|
|
Backup previously generated files when re-generating : No
|
|
|
|
Delete previously generated files when not re-generated : Yes
|
|
|
|
Set all free pins as analog (to optimize the power consumption) : No
|
|
|
|
|
|
|
|
|
|
|
|
Toolchains Settings :
|
|
|
|
Compiler Optimizations :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|