MainCard v5.0
MainCard v5.0
MainCard v5.0
Configuration Report
27/10/2022
MainCard v5 Project
Configuration Report
1. Description
1.1. Project
1.2. MCU
Page 1
MainCard v5 Project
Configuration Report
2. Pinout Configuration
Page 2
MainCard v5 Project
Configuration Report
3. Pins Configuration
Page 3
MainCard v5 Project
Configuration Report
Page 4
MainCard v5 Project
Configuration Report
Page 5
MainCard v5 Project
Configuration Report
5. Software Project
5.1. Project Settings
Name Value
Project Name MainCard v5.0
Project Folder C:\Users\ainci\Desktop
Toolchain / IDE STM32CubeIDE
Firmware Package Name and Version STM32Cube FW_G4 V1.5.1
Application Structure Advanced
Generate Under Root Yes
Do not generate the main() No
Minimum Heap Size 0x200
Minimum Stack Size 0x400
Name Value
STM32Cube MCU packages and embedded software Copy only the necessary library files
Generate peripheral initialization as a pair of '.c/.h' files No
Backup previously generated files when re-generating No
Keep User Code when re-generating Yes
Delete previously generated files when not re-generated Yes
Set all free pins as analog (to optimize the power No
consumption)
Enable Full Assert No
Page 6
MainCard v5 Project
Configuration Report
Page 7
MainCard v5 Project
Configuration Report
Series STM32G4
Line STM32G4x4
MCU STM32G474VETx
Datasheet DS12288_Rev0
Temperature 25
Vdd 3.0
Battery Li-SOCL2(A3400)
Capacity 3400.0 mAh
Self Discharge 0.08 %/month
Nominal Voltage 3.6 V
Max Cont Current 100.0 mA
Max Pulse Current 200.0 mA
Cells in series 1
Cells in parallel 1
Page 8
MainCard v5 Project
Configuration Report
6.4. Sequence
6.5. Results
6.6. Chart
Page 9
MainCard v5 Project
Configuration Report
Page 10
MainCard v5 Project
Configuration Report
ADCs_Common_Settings:
Mode Independent mode
ADC_Settings:
Clock Prescaler Synchronous clock mode divided by 2
Resolution ADC 12-bit resolution
Data Alignment Right alignment
Gain Compensation 0
Scan Conversion Mode Disabled
End Of Conversion Selection End of single conversion
Low Power Auto Wait Disabled
Continuous Conversion Mode Disabled
Discontinuous Conversion Mode Disabled
DMA Continuous Requests Disabled
Overrun behaviour Overrun data preserved
ADC_Regular_ConversionMode:
Enable Regular Conversions Enable
Enable Regular Oversampling Disable
Number Of Conversion 1
External Trigger Conversion Source Regular Conversion launched by software
External Trigger Conversion Edge None
Rank 1
Channel Channel 1
Sampling Time 2.5 Cycles
Offset Number No offset
ADC_Injected_ConversionMode:
Enable Injected Conversions Disable
Analog Watchdog 1:
Enable Analog WatchDog1 Mode false
Analog Watchdog 2:
Enable Analog WatchDog2 Mode false
Analog Watchdog 3:
Enable Analog WatchDog3 Mode false
Page 11
MainCard v5 Project
Configuration Report
7.2. ADC4
IN1: IN1 Single-ended
7.2.1. Parameter Settings:
ADCs_Common_Settings:
Mode Independent mode
ADC_Settings:
Clock Prescaler Synchronous clock mode divided by 2
Resolution ADC 12-bit resolution
Data Alignment Right alignment
Gain Compensation 0
Scan Conversion Mode Disabled
End Of Conversion Selection End of single conversion
Low Power Auto Wait Disabled
Continuous Conversion Mode Disabled
Discontinuous Conversion Mode Disabled
DMA Continuous Requests Disabled
Overrun behaviour Overrun data preserved
ADC_Regular_ConversionMode:
Enable Regular Conversions Enable
Enable Regular Oversampling Disable
Number Of Conversion 1
External Trigger Conversion Source Regular Conversion launched by software
External Trigger Conversion Edge None
Rank 1
Channel Channel 1
Sampling Time 2.5 Cycles
Offset Number No offset
ADC_Injected_ConversionMode:
Enable Injected Conversions Disable
Analog Watchdog 1:
Enable Analog WatchDog1 Mode false
Analog Watchdog 2:
Enable Analog WatchDog2 Mode false
Analog Watchdog 3:
Enable Analog WatchDog3 Mode false
Page 12
MainCard v5 Project
Configuration Report
7.3. I2C1
I2C: I2C
7.3.1. Parameter Settings:
Timing configuration:
Custom Timing Disabled
I2C Speed Mode Standard Mode
I2C Speed Frequency (KHz) 100
Rise Time (ns) 0
Fall Time (ns) 0
Coefficient of Digital Filter 0
Analog Filter Enabled
Timing 0x00303D5B
Slave Features:
Clock No Stretch Mode Disabled
General Call Address Detection Disabled
Primary Address Length selection 7-bit
Dual Address Acknowledged Disabled
Primary slave address 0
7.4. RCC
High Speed Clock (HSE): Crystal/Ceramic Resonator
Low Speed Clock (LSE) : Crystal/Ceramic Resonator
7.4.1. Parameter Settings:
System Parameters:
VDD voltage (V) 3.3
Instruction Cache Enabled
Prefetch Buffer Disabled
Data Cache Enabled
Flash Latency(WS) 0 WS (1 CPU cycle)
RCC Parameters:
HSI Calibration Value 64
HSE Startup Timout Value (ms) 100
LSE Startup Timout Value (ms) 5000
Power Parameters:
Power Regulator Voltage Scale Power Regulator Voltage Scale 1
Page 13
MainCard v5 Project
Configuration Report
7.5. SPI3
Mode: Full-Duplex Master
7.5.1. Parameter Settings:
Basic Parameters:
Frame Format Motorola
Data Size 4 Bits
First Bit MSB First
Clock Parameters:
Prescaler (for Baud Rate) 2
Baud Rate 8.0 MBits/s *
Clock Polarity (CPOL) Low
Clock Phase (CPHA) 1 Edge
Advanced Parameters:
CRC Calculation Disabled
NSSP Mode Enabled
NSS Signal Type Software
7.6. SYS
Debug: Serial Wire
7.7. TIM1
Channel2: PWM Generation CH2
7.7.1. Parameter Settings:
Counter Settings:
Prescaler (PSC - 16 bits value) 0
Counter Mode Up
Dithering Disable
Counter Period (AutoReload Register - 16 bits value ) 65535
Internal Clock Division (CKD) No Division
Repetition Counter (RCR - 16 bits value) 0
auto-reload preload Disable
Page 14
MainCard v5 Project
Configuration Report
Clear Input:
Clear Input Source Disable
Page 15
MainCard v5 Project
Configuration Report
7.8. USART2
Mode: Asynchronous
7.8.1. Parameter Settings:
Basic Parameters:
Baud Rate 115200
Word Length 8 Bits (including Parity)
Parity None
Stop Bits 1
Advanced Parameters:
Data Direction Receive and Transmit
Over Sampling 16 Samples
Single Sample Disable
ClockPrescaler 1
Fifo Mode Disable
Txfifo Threshold 1 eighth full configuration
Rxfifo Threshold 1 eighth full configuration
Advanced Features:
Auto Baudrate Disable
TX Pin Active Level Inversion Disable
RX Pin Active Level Inversion Disable
Data Inversion Disable
TX and RX Pins Swapping Disable
Overrun Enable
DMA on RX Error Enable
MSB First Disable
7.9. USART3
Mode: Asynchronous
7.9.1. Parameter Settings:
Basic Parameters:
Baud Rate 115200
Word Length 8 Bits (including Parity)
Parity None
Stop Bits 1
Advanced Parameters:
Page 16
MainCard v5 Project
Configuration Report
Advanced Features:
Auto Baudrate Disable
TX Pin Active Level Inversion Disable
RX Pin Active Level Inversion Disable
Data Inversion Disable
TX and RX Pins Swapping Disable
Overrun Enable
DMA on RX Error Enable
MSB First Disable
Page 17
MainCard v5 Project
Configuration Report
8. System Configuration
8.1. GPIO configuration
IP Pin Signal GPIO mode GPIO pull/up pull Max User Label
down Speed
ADC1 PA0 ADC1_IN1 Analog mode No pull-up and no pull-down n/a Vtherm
ADC4 PE14 ADC4_IN1 Analog mode No pull-up and no pull-down n/a Vservo_cur
I2C1 PB8-BOOT0 I2C1_SCL Alternate Function Open No pull-up and no pull-down Low
Drain
PB9 I2C1_SDA Alternate Function Open No pull-up and no pull-down Low
Drain
RCC PC14- RCC_OSC32_IN n/a n/a n/a
OSC32_IN
PC15- RCC_OSC32_O n/a n/a n/a
OSC32_OU UT
T
PF0-OSC_IN RCC_OSC_IN n/a n/a n/a
PF1- RCC_OSC_OUT n/a n/a n/a
OSC_OUT
SPI3 PC10 SPI3_SCK Alternate Function Push Pull No pull-up and no pull-down Low
PC11 SPI3_MISO Alternate Function Push Pull No pull-up and no pull-down Low
PC12 SPI3_MOSI Alternate Function Push Pull No pull-up and no pull-down Low
SYS PA13 SYS_JTMS- n/a n/a n/a
SWDIO
PA14 SYS_JTCK- n/a n/a n/a
SWCLK
TIM1 PE11 TIM1_CH2 Alternate Function Push Pull No pull-up and no pull-down Low PWM
USART2 PA2 USART2_TX Alternate Function Push Pull No pull-up and no pull-down Low TX_EXT
PA3 USART2_RX Alternate Function Push Pull No pull-up and no pull-down Low RX_EXT
USART3 PE15 USART3_RX Alternate Function Push Pull No pull-up and no pull-down Low RX_DYN
PB10 USART3_TX Alternate Function Push Pull No pull-up and no pull-down Low TX_DYN
GPIO PE2 GPIO_Output Output Push Pull No pull-up and no pull-down Low FRAM_WP
PE4 GPIO_Output Output Push Pull No pull-up and no pull-down Low Flash_nWp
PE5 GPIO_Output Output Push Pull No pull-up and no pull-down Low Flash_nCS
PE6 GPIO_Output Output Push Pull No pull-up and no pull-down Low Flash_nHold
PC3 GPIO_Output Output Push Pull No pull-up and no pull-down Low FAN_CTRL
PA4 GPIO_Output Output Push Pull No pull-up and no pull-down Low MCU_LED
PE10 GPIO_EXTI10 External Interrupt Mode with No pull-up and no pull-down n/a Pulsein
Rising edge trigger detection
PE13 GPIO_Output Output Push Pull No pull-up and no pull-down Low Servo_power
PB12 GPIO_Output Output Push Pull No pull-up and no pull-down Low Comtoggle
PB13 GPIO_Output Output Push Pull No pull-up and no pull-down Low Comtoggle_Tx
PC8 GPIO_Output Output Push Pull No pull-up and no pull-down Low GPRS_DTR
Page 18
MainCard v5 Project
Configuration Report
IP Pin Signal GPIO mode GPIO pull/up pull Max User Label
down Speed
PC9 GPIO_Output Output Push Pull No pull-up and no pull-down Low GPRS_PCTL
PA8 GPIO_Output Output Push Pull No pull-up and no pull-down Low GPRS_RESET_N
PA9 GPIO_Output Output Push Pull No pull-up and no pull-down Low GPRS_CTS
PA10 GPIO_Output Output Push Pull No pull-up and no pull-down Low GPRS_RI
PA11 GPIO_Output Output Push Pull No pull-up and no pull-down Low GPRS_RTS
PA12 GPIO_Output Output Push Pull No pull-up and no pull-down Low GPRS_DCD
PD1 GPIO_EXTI1 External Interrupt Mode with No pull-up and no pull-down n/a FT_INTn
Rising edge trigger detection
PD2 GPIO_Output Output Push Pull No pull-up and no pull-down Low FT_CSn
PD3 GPIO_Output Output Push Pull No pull-up and no pull-down Low FT_PDn
PD5 GPIO_Output Output Push Pull No pull-up and no pull-down Low TFT_CSn
PB5 GPIO_Output Output Push Pull No pull-up and no pull-down Low EN4V
PB6 GPIO_Input Input mode No pull-up and no pull-down n/a PGOOD_4V
Page 19
MainCard v5 Project
Configuration Report
Enabled interrupt Table Select for init Generate IRQ Call HAL handler
sequence ordering handler
Non maskable interrupt false true false
Hard fault interrupt false true false
Page 20
MainCard v5 Project
Configuration Report
Enabled interrupt Table Select for init Generate IRQ Call HAL handler
sequence ordering handler
Memory management fault false true false
Prefetch fault, memory access fault false true false
Undefined instruction or illegal state false true false
System service call via SWI instruction false true false
Debug monitor false true false
Pendable request for system service false true false
System tick timer false true true
Page 21
MainCard v5 Project
Configuration Report
9. System Views
9.1. Category view
9.1.1. Current
Page 22
MainCard v5 Project
Configuration Report
Type Link
Presentations https://www.st.com/resource/en/product_presentation/microcontrollers_st
m32g4_series_product_overview.pdf
Presentations https://www.st.com/resource/en/product_presentation/stm32-
stm8_embedded_software_solutions.pdf
Presentations https://www.st.com/resource/en/product_presentation/stm32_eval-
tools_portfolio.pdf
Presentations https://www.st.com/resource/en/product_presentation/stm32_stm8_functi
onal-safety-packages.pdf
Presentations https://www.st.com/resource/en/product_presentation/stm32-usb-c-pd-
solutions-presentation.pdf
Presentations https://www.st.com/resource/en/product_presentation/stm32-
stm8_software_development_tools.pdf
Training Material https://www.st.com/resource/en/marketing_training/smpres_stm32g4_er.p
df
Training Material https://www.st.com/resource/en/sales_guide/sg_sc2155.pdf
Training Material https://www.st.com/resource/en/training_certification/faecp_stm32g4_edr.
pdf
Flyers https://www.st.com/resource/en/flyer/flnucleolrwan.pdf
Flyers https://www.st.com/resource/en/flyer/flstm32g4.pdf
Flyers https://www.st.com/resource/en/flyer/flstm32nucleo.pdf
Flyers https://www.st.com/resource/en/flyer/flstm32trust.pdf
Flyers https://www.st.com/resource/en/flyer/flpowerstbd.pdf
Flyers https://www.st.com/resource/en/flyer/fldpstpfc11120.pdf
Application Notes https://www.st.com/resource/en/application_note/an1181-electrostatic-
discharge-sensitivity-measurement-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an1709-emc-design-
guide-for-stm8-stm32-and-legacy-mcus-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an2548-using-the-
stm32f0f1f3gxlx-series-dma-controller-stmicroelectronics.pdf
Page 23
MainCard v5 Project
Configuration Report
Page 24
MainCard v5 Project
Configuration Report
dac-performance-of-stm32-microcontrollers-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4635-minimization-of-
power-consumption-using-lpuart-for-stm32-microcontrollers-
stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4655-virtually-
increasing-the-number-of-serial-communication-peripherals-in-stm32-
applications-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4750-handling-of-soft-
errors-in-stm32-applications-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4759-using-the-
hardware-realtime-clock-rtc-and-the-tamper-management-unit-tamp-with-
stm32-microcontrollers-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4776-generalpurpose-
timer-cookbook-for-stm32-microcontrollers-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4803-highspeed-si-
simulations-using-ibis-and-boardlevel-simulations-using-hyperlynx-si-on-
stm32-mcus-and-mpus-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4838-managing-
memory-protection-unit-in-stm32-mcus-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4894-eeprom-
emulation-techniques-and-software-for-stm32-microcontrollers-
stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4989-stm32-
microcontroller-debug-toolbox-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4991-how-to-wake-
up-an-stm32xx-series-microcontroller-from-lowpower-mode-with-the-
usart-or-the-lpuart-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5027-interfacing-pdm-
digital-microphones-using-stm32-mcus-and-mpus-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5036-thermal-
management-guidelines-for-stm32-applications-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5093-getting-started-
with-stm32g4-series--hardware-development-boards-
Page 25
MainCard v5 Project
Configuration Report
stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5156-introduction-to-
stm32-microcontrollers-security-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5224-stm32-dmamux-
the-dma-request-router-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5225-usb-typec-
power-delivery-using-stm32-mcus-and-mpus-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5306-operational-
amplifier-opamp-usage-in-stm32g4-series-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5310-guideline-for-
using-analog-features-of-stm32g4-series-versus-stm32f3-series-devices-
stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5315-stm32cube-
firmware-examples-for-stm32g4-series-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5346-stm32g4-adc-
use-tips-and-recommendations-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5348-fdcan-
peripheral-on-stm32-devices-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5405-fdcan-protocol-
used-in-the-stm32-bootloader-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5543-enhanced-
methods-to-handle-spi-communication-on-stm32-devices-
stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5094-migrating-
between-stm32f334303-lines-and-stm32g431xxg474xxg491xx-
microcontrollers-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5690-vrefbuf-
peripheral-applications-and-trimming-technique-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5738-stm32g4-series-
lifetime-estimates-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an4760-quadspi-
interface-on-stm32-microcontrollers-and-microprocessors--
stmicroelectronics.pdf
Page 26
MainCard v5 Project
Configuration Report
Page 27
MainCard v5 Project
Configuration Report
Page 28
MainCard v5 Project
Configuration Report
& Software
Application Notes https://www.st.com/resource/en/application_note/an5426-migrating-
for related Tools graphics-middleware-projects-from-stm32cubemx-540-to-stm32cubemx-
& Software 550-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5464-position-control-
for related Tools of-a-threephase-permanent-magnet-motor-using-xcubemcsdk-or-
& Software xcubemcsdkful-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5496-buck-voltage-
for related Tools mode-with-the-bg474edpow1-discovery-kit-stmicroelectronics.pdf
& Software
Application Notes https://www.st.com/resource/en/application_note/an5497-buck-current-
for related Tools mode-with-the-bg474edpow1-discovery-kit-stmicroelectronics.pdf
& Software
Application Notes https://www.st.com/resource/en/application_note/an5564-getting-started-
for related Tools with-projects-based-on-dualcore-stm32wl-microcontrollers-in-
& Software stm32cubeide-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5698-adapting-the-
for related Tools xcubestl-functional-safety-package-for-stm32-iec-61508-compliant-to-
& Software other-safety-standards-stmicroelectronics.pdf
Application Notes https://www.st.com/resource/en/application_note/an5731-stm32cubemx-
for related Tools and-stm32cubeide-threadsafe-solution-stmicroelectronics.pdf
& Software
Errata Sheets https://www.st.com/resource/en/errata_sheet/es0430-
stm32g471xx473xx474xx483xx484xx-device-errata-stmicroelectronics.pdf
Datasheet https://www.st.com/resource/en/datasheet/dm00431551.pdf
Programming https://www.st.com/resource/en/programming_manual/pm0214-stm32-
Manuals cortexm4-mcus-and-mpus-programming-manual-stmicroelectronics.pdf
Reference https://www.st.com/resource/en/reference_manual/rm0440-stm32g4-
Manuals series-advanced-armbased-32bit-mcus-stmicroelectronics.pdf
Technical Notes https://www.st.com/resource/en/technical_note/tn1163-description-of-
& Articles wlcsp-for-microcontrollers-and-recommendations-for-its-use-
stmicroelectronics.pdf
Technical Notes https://www.st.com/resource/en/technical_note/tn1204-tape-and-reel-
Page 29
MainCard v5 Project
Configuration Report
Page 30