ST STM32F4 Series, STM32F405 Series, STM32F407 Series, STM32F411xC Series, STM32F411xE Series, STM32F412xE Series, STM32F413 Series, STM32F429 Series, STM32F437 Series, STM32F446 Series Application Note
Advertisement
Advertisement
AN4488
Application note
Getting started with STM32F4xxxx MCU hardware development
Introduction
This application note is intended for system designers who require an overview of the hardware implementation of the development board, with focus on features like
• power supply
• package selection
• clock management
• reset control
• boot mode settings
• debug management.
This document shows how to use the high-density high-performance microcontrollers listed in
, and describes the minimum hardware resources required to develop an application based on those products.
Detailed reference design schematics are also contained in this document, together with descriptions of the main components, interfaces and modes.
Type
Microcontrollers
Table 1. Applicable products
Part numbers and Product lines
STM32F401xB / STM32F401xC
STM32F401xD / STM32F401xE
STM32F405/415 line
STM32F407/417 line
STM32F410x8 / STM32F410xB
STM32F411xC / STM32F411xE
STM32F412xE / STM32F412xG
STM32F413/423 line
STM32F427/437 line
STM32F429/439 line
STM32F446 line
STM32F469/479 line
October 2018 AN4488 Rev 7 1/50
www.st.com
Contents
Contents
AN4488
Regulator OFF mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Reset and power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
NRST circuitry example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
PDR_ON circuitry example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Power on reset (POR) / power down reset (PDR) . . . . . . . . . . . . . . . . . 17
Programmable voltage detector (PVD) . . . . . . . . . . . . . . . . . . . . . . . . . 18
Handling unused pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Boot mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Embedded boot loader mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Debug management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
SWJ debug port (serial wire and JTAG) . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Pinout and debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
SWJ debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Internal pull-up and pull-down resistors on JTAG pins . . . . . . . . . . . . . . 30
2/50 AN4488 Rev 7
AN4488
Contents
SWJ debug port connection with standard JTAG connector . . . . . . . . . 30
Recommended PCB routing guidelines for
STM32F4xxxx devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Power supply decoupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
SDMMC bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Flexible memory controller (FMC) interface . . . . . . . . . . . . . . . . . . . . . . 39
Quadrature serial parallel interface (Quad SPI) . . . . . . . . . . . . . . . . . . . 39
Embedded trace macrocell (ETM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Package layout recommendation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
BGA 216 0.8 mm pitch design example . . . . . . . . . . . . . . . . . . . . . . . . 41
WLCSP143 0.4 mm pitch design example . . . . . . . . . . . . . . . . . . . . . . 42
Identify the STM32F4xxxx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Where to find IBIS models? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
MCU does not work properly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
AN4488 Rev 7 3/50
3
List of tables
List of tables
AN4488
4/50 AN4488 Rev 7
AN4488
List of figures
List of figures
NRST circuitry example (only for STM32F410xx, STM32F411xx,
NRST circuitry timings example (not to scale, only for STM32F410xx,
STM32F411xx, STM32F412xx, STM32F413xx, STM32F423xx, STM32F446xx,
PDR_ON simple circuitry example (not needed for STM32F410xx,
STM32F411xx, STM32F413xx, STM32F423xx, STM32F412xx, STM32F446xx,
PDR_ON timings example (not to scale, (not needed for STM32F410xx,
STM32F411xx, STM32F412xx, STM32F413xx, STM32F423xx, STM32F446xx,
DD
/V
SS
pair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
AN4488 Rev 7 5/50
5
Reference documents AN4488
The following documents are available on
www.st.com.
Reference
AN2867
AN2606
AN3364
Table 2. Referenced documents
Title
Oscillator design guide for ST microcontrollers
STM32 microcontroller system memory boot mode
Migration and compatibility guidelines for STM32 microcontroller applications
This document applies to Arm
®(a)
-based devices.
6/50 a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
AN4488 Rev 7
AN4488 Power supplies
The operating voltage supply (V
DD
) range is 1.8 V to 3.6 V, which can be reduced down to
1.7 V with some restrictions, as detailed in the product datasheets. An embedded regulator is used to supply the internal 1.2 V digital power.
The real-time clock (RTC), backup registers and backup registers can be powered from the
V
BAT
voltage when the main V
DD
supply is powered off.
Note:
The voltage regulator is always enabled after reset. It works in three different modes depending on the application modes.
• in Run mode, the regulator supplies full power to the 1.2 V domain (core, memories and digital peripherals)
• in Stop mode, the regulator supplies low power to the 1.2 V domain, preserving the contents of the registers and SRAM
• in Standby mode, the regulator is powered down. The contents of the registers and
SRAM are lost except for those concerned with the Standby circuitry and the Backup domain.
Depending on the selected package, there are specific pins that should be connected either to V
SS
or V
DD
to activate or deactivate the voltage regulator. Refer to section “Voltage regulator “ in datasheet for details.
Refer to section “Voltage regulator” in datasheet for details
.
•
When BYPASS_REG = V
DD and V
CAP2
, the core power supply should be provided through V
pins connected together.
CAP1
– The two V
CAP capacitors.
ceramic capacitors should be replaced by two 100 nF decoupling
– Since the internal voltage scaling is not managed internally, the external voltage value must be aligned with the targeted maximum frequency.
– When the internal regulator is OFF, there is no more internal monitoring on V12.
An external power supply supervisor should be used to monitor the V12 of the logic power domain (V
CAP
).
AN4488 Rev 7 7/50
49
Power supplies AN4488
PA0 pin should be used for this purpose, and act as power-on reset on V12 power domain.
•
In regulator OFF mode, the following features are no more supported:
– PA0 cannot be used as a GPIO pin since it allows to reset a part of the V12 logic power domain which is not reset by the NRST pin.
– As long as PA0 is kept low, the debug mode cannot be used under power-on reset. As a consequence, PA0 and NRST pins must be managed separately if the debug connection under reset or pre-reset is required.
– The over-drive and under-drive modes are not available.
– The Standby mode is not available.
Figure 1. BYPASS_REG supervisor reset connection
sϭϮ
([WHUQDO9
&$3B
SRZHU
VXSSO\VXSHUYLVRU
([WUHVHWFRQWUROOHUDFWLYH
ZKHQ9
&$3B
0LQ9
ƉƉůŝĐĂƚŝŽŶƌĞƐĞƚ
ƐŝŐŶĂů;ŽƉƚŝŽŶĂůͿ
WϬ EZ^d zW^^ͺZ'
;ŶŽƚĞϭͿ
;ϭdžϭϬϬŶ&Ϳ
ϮdžϭϬϬŶ& sϭϮ s s s
Wϭ
WϮ s ϭͬϮͬ͘͘͘E
Eп ϭϬϬŶ& нϭпϰ͘ϳђ& s^^ ϭͬϮͬ͘͘͘E
Ăŝϭϴϰϵϴsϱ
1. V
CAP2
is not available on all packages. In that case, a single 100 nF decoupling capacitor is connected to
V
CAP1
The following conditions must be respected:
•
V
DD
should always be higher than V domains.
CAP
to avoid current injection between power
• If the time for V
CAP
to reach V12 minimum value is smaller than the time for V
DD reach 1.7 V, then PA0 should be kept low to cover both conditions: until V
CAP
V12 minimum value and until V
DD
reaches 1.7 V.
to
reaches
•
Otherwise, if the time for V
CAP
V
DD
to reach V12 minimum value is smaller than the time for
to reach 1.7 V, then PA0 could be asserted low externally.
• If V
CAP
goes below V12 minimum value and V
DD
is higher than 1.7 V, then PA0 must be asserted low externally.
8/50 AN4488 Rev 7
AN4488 Power supplies
The circuit is powered by a stabilized power supply, V
DD
.
Caution:
The V
DD voltage range is 1.8 V to 3.6 V (down to 1.7 V with some restrictions, see relative
Datasheet for details).
•
The V
DD
pins must be connected to V
DD
with external decoupling capacitors: one single Tantalum or Ceramic capacitor (min. 4.7 µF typ.10 µF) for the package + one
100 nF Ceramic capacitor for each V
DD
pin.
•
The V
BAT
pin can be connected to the external battery (1.65 V < V
BAT
< 3.6 V). If no external battery is used, it is recommended to connect this pin to V
DD external ceramic decoupling capacitor.
with a 100 nF
•
The V
DDA
pin must be connected to two external decoupling capacitors (100 nF
Ceramic + 1 µF Tantalum or Ceramic).
•
The V
REF+
pin can be connected to the V
DDA
external power supply. If a separate, external reference voltage is applied on V
REF+
, a 100 nF and a 1 µF capacitors must be connected on this pin. In all cases, V
REF+
V
DDA
with minimum of 1.7 V.
must be kept between (V
DDA
-1.2 V) and
•
Additional precautions can be taken to filter analog noise:
– V
DDA
can be connected to V
DD
through a ferrite bead.
– The V
REF+
pin can be connected to V
DDA
through a resistor.
•
For the voltage regulator configuration, there is specific BYPASS_REG pin (not available on all packages) that should be connected either to V
SS
or V deactivate the voltage regulator specific.
DD
to activate or
–
and section "Voltage regulator" of the related device
datasheet for details
.
•
When the voltage regulator is enabled, V capacitor if only V
CAP1
CAP1
and V
CAP2
pins must be connected to
2*2.2 µF LowESR < 2
Ω
Ceramic capacitor (or 1*4.7 µF LowESR < 1
Ω
Ceramic
pin is provided on some packages).
AN4488 Rev 7 9/50
49
Power supplies AN4488
Figure 2.
Power supply scheme
(excluding STM32F469xx/F479xx)
9
%$7
9
%$7
WR9
3RZHU
VZLWFK
%DFNXSFLUFXLWU\
26&.57&
:DNHXSORJLF
%DFNXSUHJLVWHUV
EDFNXS5$0
287
*3,2V
,2
/RJLF
,1
1[Q)
[)
[)
î)
9
''
9
9
&$3B
&$3B
9
''
1
9
66
1
9ROWDJH
UHJXODWRU
.HUQHOORJLF
&38GLJLWDO
5$0
9
''86%
%<3$66B5(*
9
''86%
Q)
)
9
''
Q)
)
Q)
)
9
5()
3'5B21
9
''$
9
5()
9
5()
9
66$
27*
)6
3+<
5HVHW
FRQWUROOHU
$'&
$QDORJ
5&V
3//
)ODVKPHPRU\
06Y9
1. Optional. If a separate, external reference voltage is connected on V
REF+
1 µF) must be connected.
, the two capacitors (100 nF and
2. V
CAP2
is not available on all packages. In that case, a single 4.7 µF (ESR < 1
Ω
) is connected to V
CAP1
.
3. V
REF+
is either connected to V
REF+
or to V
DDA
(depending on package).
4. V
REF-
is either connected to V
REF-
or to V
SSA
(depending on package).
5. N is the number of V
DD
and V
SS inputs.
6. Refer to datasheet for BYPASS_REG and PDR_ON pins connection.
7. V
DDUSB is only available on STM32F446xx.
8. Backup RAM is not available on STM32F410xx, STM32F411xx, STM32F412xx, STM32F413xx, and
STM32F423xx.
10/50 AN4488 Rev 7
AN4488 Power supplies
Figure 3.
Power supply scheme for STM32F469xx/F479xx
9
%$7
9
%$7
WR9
3RZHU
VZLWFK
%DFNXSFLUFXLWU\
26&.57&
:DNHXSORJLF
%DFNXSUHJLVWHUV
EDFNXS5$0
*3,2V
[Q)
[)
î)
9
''
9
&$3B
9
&$3B
9
''
9
66
287
,1
9ROWDJH
UHJXODWRU
,2
/RJLF
.HUQHOORJLF
&38GLJLWDO
5$0
Q)
9
''86%
%<3$66B5(*
9
''86%
9
9
'''6,
&$3'6,
27*)6
3+<
'6,
9ROWDJH
UHJXODWRU
'6,
3+<
)ODVKPHPRU\
)
9
'''6,
9
66'6,
9
''
Q)
)
Q)
)
9
5()
3'5B21
9
''$
9
5()
9
5()
9
66$
5HVHW
FRQWUROOHU
$'&
$QDORJ
5&V3//
06Y9
1. Optional. If a separate, external reference voltage is connected on V
REF+
1 µF) must be connected.
, the two capacitors (100 nF and
2. V
REF+
is either connected to V
REF+
or to V
DDA
(depending on package).
3. V
REF-
is either connected to V
REF-
or to V
SSA
(depending on package).
4. Refer to datasheet for BYPASS_REG and PDR_ON pins connection.
AN4488 Rev 7 11/50
49
Power supplies AN4488
To improve conversion accuracy, the ADC has an independent power supply that can be filtered separately, and shielded from noise on the PCB.
•
The ADC voltage supply input is available on V
DDA
pin.
•
An isolated supply ground connection is provided on the V
SSA
pin.
In all cases, the VSSA pin should be externally connected to same supply ground than VSS.
To ensure a better accuracy on low-voltage inputs, the user can connect a separate external reference voltage ADC input on VREF+. The voltage on VREF+ may range from (V
DDA
V) to V
DDA
with a minimum of 1.7 V.
- 1.2
When available (depending on package), V
REF–
must be externally tied to V
SSA
.
12/50 AN4488 Rev 7
AN4488
3
Reset and power supply supervisor
Reset and power supply supervisor
A system reset sets all registers to their reset values except for the reset flags in the clock
controller CSR register and the registers in the Backup domain (see
).
A system reset is generated when one of the following events occurs:
1.
A low level on the NRST pin (external reset)
2. window watchdog end-of-count condition (WWDG reset)
4. A software reset (SW reset)
5. Low-power management reset
The reset source can be identified by checking the reset flags in the Control/Status register,
RCC_CSR.
do not require an external reset circuit to power-up correctly.
Only a pull-down capacitor is recommended to improve EMS performance by protecting the
device against parasitic resets, as exemplified in
.
Charging and discharging a pull-down capacitor through an internal resistor increases the device power consumption. The capacitor recommended value (100 nF) can be reduced to
10 nF to limit this power consumption.
Figure 4. Reset circuit
9''
([WHUQDO
UHVHWFLUFXLW
1567
538
)LOWHU
6\VWHPUHVHW
)
3XOVH
JHQHUDWRU
PLQV
::'*UHVHW
,:'*UHVHW
3RZHUUHVHW
6RIWZDUHUHVHW
/RZSRZHUPDQDJHPHQWUHVHW
DL
This example applies to STM32F410xx, STM32F411xx, STM32F412xx, STM32F413xx,
STM32F423xx, STM32F446xx and STM32F469 where PDR_ON can be connected to V
SS to permanently disable internal reset circuitry.
Restrictions:
•
PDR_ON = 0 is mostly intended for V
DD
supply between 1.7 V and 1.9V (i.e. 1.8V +/-
5% supply).
Supply ranges which never go below 1.8V minimum should be better managed by
AN4488 Rev 7 13/50
49
Reset and power supply supervisor AN4488
internal circuitry (no additional component needed, thanks to fully embedded reset controller).
•
When the internal reset is OFF, the following integrated features are no longer supported:
– The integrated power-on reset (POR) / power-down reset (PDR) circuitry is disabled.
– The brownout reset (BOR) circuitry must be disabled.
– The embedded programmable voltage detector (PVD) is disabled.
– VBAT functionality is no more available and V
BAT
pin should be connected to V
DD
.
Figure 5. NRST circuitry example (only for STM32F410xx, STM32F411xx,
STM32F412xx, STM32F413xx, STM32F423xx, STM32F446xx, STM32F469xx and STM32F479xx)
9ROWDJH
UHJXODWRU
9W\S9PLQ
9
''
9
''$
9
%$7
3'5B21
5HVHW
FRQWUROOHU
9
''
6701
9ROWDJH
VXSHUYLVRU
287
DFWLYHORZ RSHQGUDLQRXWSXW
1567
Nȍ
)
670)
9
66
9
66$
069
Even with PDR_ON=0, during power up, the NRST is driven low by internal Reset controller during T
RSTTEMPO
in order to allow stabilization of internal analog circuitry. Refer to
STM32F4xxxx datasheets for actual timing value.
14/50 AN4488 Rev 7
AN4488 Reset and power supply supervisor
Figure 6. NRST circuitry timings example (not to scale, only for STM32F410xx,
STM32F411xx, STM32F412xx, STM32F413xx, STM32F423xx, STM32F446xx,
STM32F469xx and STM32F479xx)
9''
9''GXULQJRSHUDWLRQNHSWDERYH9
9
VXSHUYLVRU
KLJKWULSSRLQW
VXSHUYLVRU
ORZWULSSRLQW
3RZHU2QSKDVH 2SHUDWLRQ 3RZHU'RZQSKDVH
WLPH
1567
9''
7
VXSHUYLVRU
7
5677(032
7
VXSHUYLVRU!
7
5677(032
5HVHWE\
LQWHUQDO
VRXUFHV
7
VXSHUYLVRU
7
5677(032
1567.HSWORZE\
LQWHUQDOFLUFXLWU\
1567.HSWORZE\
H[WHUQDOVXSHUYLVRU
WLPH
1567IRUFHGORZE\H[WHUQDO
VXSHUYLVRU
069
Selection of NRST voltage supervisor
Voltage supervisor should have the following characteristics
•
Reset output
active-low open-drain
(output driving low when voltage is below trip point).
– Supervisor trip point including tolerances and hysteresis should fit the expected
V
DD
range.
Notice that supervisor spec usually specify trip point for falling supply, so hysteresis should be added to check the power on phase.
Note: This example doesn’t apply to STM32F410xx, STM32F411xx, STM32F412xx,
STM32F413xx, STM32F423xx, STM32F446xx, STM32F469xx and STM32F479xx, where
PDR_ON can be connected to VSS to permanently disable internal reset circuitry (external voltage supervisor required on NRST pin). Thanks to backward compatibility, circuitry built for other STM32F4xxxx products will work for STM32F410xx, STM32F411xx,
STM32F412xx, STM32F413xx, STM32F423xx, STM32F446xx, STM32F469xx and
STM32F479xx.
AN4488 Rev 7 15/50
49
Reset and power supply supervisor
Note:
AN4488
Please contact your local STMicroelectronics representative or visit www.st.com
in case you want to use circuitry different from the one described hereafter.
Restrictions:
•
PDR_ON = 0 is mostly intended for V
DD
supply between 1.7 V and 1.9V (i.e. 1.8V +/-
5% supply).
Supply ranges which never go below 1.8V minimum should be better managed with internal circuitry (no additional component thanks to fully embedded reset controller).
•
To ensure safe power down, the external voltage supervisor (or equivalent) is required to drive PDR_ON=1 during power off sequence.
When the internal reset is OFF, the following integrated features are no longer supported:
•
The integrated power-on reset (POR) / power-down reset (PDR) circuitry is disabled.
•
The brownout reset (BOR) circuitry must be disabled.
•
The embedded programmable voltage detector (PVD) is disabled.
•
V
BAT
functionality is no more available and V
BAT
pin should be connected to V
DD
.
Figure 7. PDR_ON simple circuitry example (not needed for STM32F410xx,
STM32F411xx, STM32F413xx, STM32F423xx, STM32F412xx, STM32F446xx,
STM32F469xx and STM32F479xx)
9ROWDJH
UHJXODWRU
9W\S9PLQ
9''9''$ 9%$7
9ROWDJH
VXSHUYLVRU
567
DFWLYHKLJK SXVKSXOORXWSXW
DFWLYHKLJK
RXWSXW
3'5B21
5HVHW
FRQWUROOHU
%66
RUHTXLYDOHQW
RSWLRQDOLI
7
VXSHUYLVRU
7
5677(032
1567
9''
Nȍ
)
670)
966 966$
069
16/50 AN4488 Rev 7
AN4488 Reset and power supply supervisor
Figure 8. PDR_ON timings example (not to scale, (not needed for STM32F410xx,
STM32F411xx, STM32F412xx, STM32F413xx, STM32F423xx, STM32F446xx,
STM32F469xx and STM32F479xx)
9''
9''GXULQJRSHUDWLRQNHSWDERYH9
9
VXSHUYLVRU
KLJKWULSSRLQW
VXSHUYLVRU
ORZWULSSRLQW
3.2.2
3RZHU2QSKDVH 2SHUDWLRQ
3'5B21
1567
9''
9
9
,+
9
,/
3'5B21PXVW
JRDERYH9
7
7
VXSHUYLVRU
5677(032
7
VXSHUYLVRU!
7
7
VXSHUYLVRU
7
5677(032
1567.HSWORZE\
LQWHUQDOFLUFXLWU\
1567.HSWORZE\
H[WHUQDOVXSHUYLVRU
5677(032
5HVHWE\
LQWHUQDO
VRXUFHV
3RZHU'RZQSKDVH
WLPH
WLPH
1567IRUFHGORZE\H[WHUQDO
DQGLQWHUQDOFLUFXLWU\
069
Selection of PDR_ON voltage supervisor
Voltage supervisor should have the following characteristics
•
Reset output
active-high push-pull
(output driving high when voltage is below trip point)
•
Supervisor trip point including tolerances and hysteresis should fit the expected V
DD range.
Notice that supervisor spec usually specify trip point for falling supply, so hysteresis should be added to check the power on phase.
Example:
– Voltage regulator 1.8V +/- 5% mean V
DD
min1.71V
– Supervisor specified at 1.66V +/- 2.5% with an hysteresis of 0.5% mean
- rising trip max = 1.71V (1.66V + 2.5% + 0.5%)
- falling trip min = 1.62V (1.66V - 2.5%).
Power on reset (POR) / power down reset (PDR)
The device has an integrated POR/PDR circuitry that allows proper operation starting from
1.8 V.
The device remains in the Reset mode as long as V
DD
V
POR/PDR is below a specified threshold,
, without the need for an external reset circuit. For more details concerning the
AN4488 Rev 7 17/50
49
Reset and power supply supervisor AN4488
power on/power down reset threshold, refer to the electrical characteristics in the product datasheets.
Figure 9. Power-on reset/power-down reset waveform
6
$$
60/20$2
RISINGEDGE
60/20$2
FALLINGEDGE
0/2
M6
HYSTERESIS
4EMPORIZATION
T2344%-0/
0$2
2%3%4
AIB
1. t
RSTTEMPO
is approximately 2.6 ms. V
POR/PDR
rising edge is 1.74 V (typ.) and V
POR/PDR
falling edge is
1.70 V (typ.). Refer to STM32F4xxxx datasheets for actual value.
The internal power-on reset (POR) / power-down reset (PDR) circuitry is disabled through the PDR_ON pin. An external power supply supervisor should monitor V
DD maintain the device in reset mode as long as V
DD and should is below a specified threshold. PDR_ON should be connected to this external power supply supervisor. See
You can use the PVD to monitor the V
DD
power supply by comparing it to a threshold selected by the PLS[2:0] bits in the Power control register (PWR_CR).
The PVD is enabled by setting the PVDE bit.
A PVDO flag is available, in the Power control/status register (PWR_CSR), to indicate whether V
DD
is higher or lower than the PVD threshold. This event is internally connected to
EXTI Line16 and can generate an interrupt if enabled through the EXTI registers. The PVD output interrupt can be generated when V
DD
V
DD
drops below the PVD threshold and/or when
rises above the PVD threshold depending on the EXTI Line16 rising/falling edge configuration. As an example the service routine can perform emergency shutdown tasks.
18/50 AN4488 Rev 7
AN4488
606$
RISINGEDGE
606$
FALLINGEDGE
6$$
Reset and power supply supervisor
Figure 10. PVD thresholds
06$THRESHOLD
M6
HYSTERESIS
06$OUTPUT
AIB
AN4488 Rev 7 19/50
49
Package
4 Package
AN4488
Package should be selected by taking into account the constrains that are strongly dependent upon the application.
The list below summarizes the more frequent ones:
– Amount of interfaces required.
Some interfaces might not be available on some packages.
Some interfaces combinations could not be possible on some packages.
– PCB technology constrains.
Small pitch and high ball density could require more PCB layers and higher class
PCB
– Package height
– PCB available area
– Noise emission or signal integrity of high speed interfaces.
Smaller packages usually provide better signal integrity. This is further enhanced as Small pitch and high ball density requires multilayer PCBs which allow better supply/ground distribution.
– Compatibility with other devices.
summarizes the available packages for all STM32F4xxxx family.
Table 3. Package summary
Size (mm)
(1)
Sales numbers
STM32F401xB/C
STM32F401xD/E
X X
STM32F405xx/407xx X X X X
STM32F410xx X
STM32F411xx
STM32F412xx
X X
X X X
STM32F413xx/423xx X X X
STM32F415xx/417xx X X X X
STM32F427xx/429xx X X X X X
X X
X
X X
X X
X X
X
X
X
X X
X
X
X
X
X
X
X
X
X
20/50 AN4488 Rev 7
AN4488
Size (mm)
(1)
Table 3. Package summary (continued)
Sales numbers
STM32F437xx/439xx
STM32F446XX
STM32F469xx
STM32F479xx
1. body size, excluding pins
X X X X X
X X X
X X X
X X X
X X
X X
X X
X X
Package
X
X
X
X
AN4488 Rev 7 21/50
49
Package AN4488
OSPEEDR y[1:0] bit value
(1)
•
When using the GPIO as I/O, design considerations have to be taken into account to ensure that the operation is as intended.
•
When the load capacitance becomes larger, the rise/fall time of the I/O pin increases.
This capacitance includes the effects of the board traces.
•
I/O characteristics are available in the product’s datasheet.
•
illustrates the I/O AC characteristics of the STM32F469xx:
Table 4. I/O AC characteristics
(1)(2)
Symbol Parameter Conditions Min Typ Max Unit
00
01 f max(IO)out
Maximum frequency t f(IO)out
/ t r(IO)out f max(IO)out
t f(IO)out
/ t r(IO)out
Output high to low level fall time and output low to high level rise time
Output high to low level fall time and output low to high level rise time
C
L
= 50 pF, V
DD
≥ 2.7 V -
C
L
= 50 pF, V
DD
≥ 1.7 V -
C
L
= 10 pF, V
DD
≥ 2.7 V
C
L
= 10 pF, V
DD
≥ 1.8 V
C
L
= 10 pF, V
DD
≥ 1.7 V
-
-
-
C
L
= 50 to 3.6 V pF, V
DD
= 1.7 V
-
C
L
= 50 pF, V
DD
≥ 2.7 V
C
L
= 50 pF, V
DD
≥ 1.8 V
C
L
= 50 pF, V
DD
≥ 1.7 V
C
L
= 10 pF, V
DD
≥ 2.7 V
C
L
= 10 pF, V
DD
≥ 1.8 V
C
L
= 10 pF, V
DD
≥ 1.7 V
C
L
= 50 pF, V
DD
≥ 2.7 V
C
L
= 10 pF, V
DD
≥ 2.7 V
C
L
= 50 pF, V
DD
≥ 1.7 V
C
L
= 10 pF, V
DD
≥ 1.7 V
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
4
2
8
4
3
100
MHz ns
12.5
10
6
20
10
25
12.5
10
50
20
MHz ns
22/50 AN4488 Rev 7
AN4488 Package
Table 4. I/O AC characteristics
(1)(2)
(continued)
OSPEEDR y[1:0] bit value
(1)
Symbol Parameter Conditions Min Typ Max Unit
10
11 f max(IO)out t f(IO)out
/ t r(IO)out f max(IO)out t f(IO)out
/ t r(IO)out
Output high to low level fall time and output low to high level rise time
Output high to low level fall time and output low to high level rise time
C
L
= 40 pF, V
DD
≥ 2.7 V
C
L
= 10 pF, V
DD
≥ 2.7 V
C
L
= 40 pF, V
DD
≥ 1.7 V
C
L
= 10 pF, V
DD
≥ 1.8 V
C
L
= 10 pF, V
DD
≥ 1.7 V
C
L
= 40 pF, V
DD
≥ 2.7 V
C
L
= 10 pF, V
DD
≥ 2.7 V
C
L
= 40 pF, V
DD
≥ 1.7 V
C
L
= 10 pF, V
DD
≥ 1.7 V
C
L
= 30 pF, V
DD
≥ 2.7 V
C
L
= 30 pF, V
DD
≥ 1.8 V
C
L
= 30 pF, V
DD
≥ 1.7 V
C
L
= 10 pF, V
DD
≥ 2.7 V
C
L
= 10 pF, V
DD
≥ 1.8 V
C
L
= 10 pF, V
DD
≥ 1.7 V
C
L
= 30 pF, V
DD
≥ 2.7 V
C
L
= 30 pF, V
DD
≥ 1.8 V
C
L
= 30 pF, V
DD
≥ 1.7 V
C
L
= 10 pF, V
DD
≥ 2.7 V
C
L
= 10 pF, V
DD
≥ 1.8 V
C
L
= 10 pF, V
DD
≥ 1.7 V
MHz ns
MHz ns
t
EXTIpw
Pulse width of external signals detected by the EXTI controller
10 ns
1. Guaranteed by design.
2. The I/O speed is configured using the OSPEEDRy[1:0] bits. Refer to the STM32F4xx reference manual for a description of the GPIOx_SPEEDR GPIO port output speed register.
3. To minimize impact of process variations, IO compensation cell can be activated to reduce the overshoot during rise/fall transitions, for maximum frequencies above 50 MHz and V
DD
> 2.4 V.
50
(3)
25
50
42.5
6
4
10
6
50
42.5
100
72.5
4
6
7
2.5
3.5
4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
AN4488 Rev 7 23/50
49
Each pin of the MCU can be configured to multiple functions. These functions are selected by software.
The full description of I/O alternate functions is described in the datasheet of the selected device and the register, which allow the pin configuration, are described in the reference manual.
Port
PB0
PB11
Port B
PB12
PB13
PB14
AF0
-
-
-
-
-
PB15
RTC_
REFIN
AF1
TIM1_
CH2N
TIM2_
CH4
TIM1_
BKIN
TIM1_
CH1N
TIM1_
CH2N
TIM1_
CH3N
AF2
TIM3_
CH3
-
-
-
-
-
AF3
TIM8_
CH2N
-
-
-
TIM8_
CH2N
TIM8_
CH3N
AF4
-
I2C2_
SDA
Table 5. Alternate function
AF5
-
AF6
-
-
AF7
-
USART3
_RX
I2C2_SM
BA
SPI2_
NSS/
I2S2_WS
-
-
-
-
USART3
_CK
SPI2_
SCK/
I2S2_CK
SPI2_MIS
O
SPI2_
MOSI/
I2S2_SD
-
-
I2S2ext_
SD
USART3
_CTS
USART3
_RTS
-
AF8
-
-
-
-
-
-
AF9 AF10
SYS TIM1/2
TIM3/4
/5
TIM8/9
/10/11
I2C1/2/
3
SPI1/2/
3/4/5/6
SPI2/3/
SAI1
SPI2/3/
USAR
T1/2/3
USA
RT6/
UAR
T4/5/
CAN1/2
/TIM12/
13/14/
QUAD
QUADS
PI/OTG
2_HS/O
TG1_F
AF11
ETH
LCD_R3
CAN2_RX
CAN2_TX
OTG_HS_
ULPI_D1
OTG_HS
_ULPI_D4
ETH_MII_
RXD2
ETH_MII_
TX_EN/
ETH_RMII_
TX_EN
OTG_HS_
ULPI_D5
ETH_MII_
TXD0/
ETH_RMII_
TXD0
OTG_HS_
ULPI_D6
ETH_MII_
TXD1/ETH_
RMII_TXD1
TIM12_C
H1
-
OTG_
HS_ID
-
-
-
OTG_
HS_DM
TIM12_C
H2
-
OTG_H
S_DP
AF12 AF13 AF14 AF15
FMC/
SDIO/
OTG2
_
DCMI/
DSI
HOST
LCD SYS
-
LCD_
G1
EVENT
OUT
DSI
HOST
_TE
-
-
-
-
LCD_
G5
EVENT
OUT
-
-
-
-
EVENT
OUT
EVENT
OUT
EVENT
OUT
EVENT
‘OUT
In order to easily explore Peripheral Alternate Functions mapping to pins, it is recommended to use the STM32CubeMX tool available on
www.st.com
.
AN4488
Figure 11. STM32CubeMX example screen-shot
Package
Note:
All microcontrollers are designed for a variety of applications and often a particular application does not use 100% of the MCU resources.
To increase EMC performance, unused clocks, counters or I/Os, should not be left free, e.g.
I/Os should be set to “0” or “1”(pull-up or pull-down to the unused I/O pins.) and unused features should be “frozen” or disabled.
To reduce leakage it is advisable to configure the I/O as an analog input or to push-pull and to set it to “0”.
In the STM32F4xxxx, three different boot modes can be selected by means of the
BOOT[1:0] pins as shown in
.
AN4488 Rev 7 25/50
49
Package AN4488
Table 6. Boot modes
BOOT mode selection pins
BOOT1
x
0
1
BOOT0
0
1
1
Boot mode Aliasing
Main Flash memory Main Flash memory is selected as boot space
System memory
Embedded SRAM
System memory is selected as boot space
Embedded SRAM is selected as boot space
The values on the BOOT pins are latched on the 4 th
rising edge of SYSCLK after a reset. It is up to the user to set the BOOT1 and BOOT0 pins after reset to select the required boot mode.
Boot from User Flash mode
The application code that runs after reset is located in user flash memory.
The user flash memory in this mode is aliased to start at address 0x00000000 in boot memory space. Upon reset, the top-of-stack value is fetched from address 0x00000000, and code then begins execution at address 0x00000004.
Boot from System Memory mode
The system memory (not the user flash) is now aliased to start at address 0x00000000. The application code in this case must have already been loaded into system memory.
Boot from Embedded SRAM mode
The SRAM start at address 0x00000000. When this mode is selected, the device expects the vector table to have been relocated using the NVIC exception table and offset register, and execution begins at the start of embedded SRAM. The application code in this case must have already been loaded into embedded SRAM.
This last mode is usually used for Debugging.
26/50 AN4488 Rev 7
AN4488
4.5
Package
Boot pin connection
shows the external connection required to select the boot memory of the
STM32F4xxxx.
Figure 12. Boot mode selection implementation example
670)[[[[[
9''
N
9''
N
%227
%227
06Y9
1. Resistor values are given only as a typical example.
4.6 Embedded boot loader mode
The embedded boot loader is located in the System memory and is programmed by ST during production.
It is used to reprogram the Flash memory using one of the following serial interfaces.
The following table shows the supported communication peripherals by the system bootloader.
Bootloader peripherals
Table 7. STM32F4xxxx bootloader communication peripherals
STM32F401xB/C
STM32F401xD/E
STM32F405/415
STM32F407/417
STM32F427/437
STM32F429/439
STM32F410xx
STM32F411xC/
STM32F411xE
STM32F412xx/
STM32F413xx/
STM32F423xx
DFU
USART1
USART2
USART3
CAN
I2C1
I2C2
I2C3
I2C FMP1
SPI1
SPI2
USB OTG FS
(PA11/12) in Device mode
PA9/PA10
PD5/PD6
-
-
PB6/PB7
PB3/PB10
PA8/PB4
-
PA4/PA5/
PA6/PA7
PB12/PB13/
PB14/PB15
USB OTG FS
(PA11/12) in Device mode
PA9/PA10
-
PB10/PB11/
PC10/PC11
PB5/PB13
-
-
-
-
-
-
-
PA9/PA10
-
-
-
PB6/PB7
PB3/PB10
-
-
PA4/PA5/
PA6/PA7
PB12/PB13/
PB14/PB15
USB OTG FS
(PA11/12) in Device mode
PA9/PA10
PD5/PD6
-
-
PB6/PB7
PB3/PB10
PA8/PB4
-
PA4/PA5/
PA6/PA7
PB12/PB13/
PB14/PB15
USB OTG FS
(PA11/12) in Device mode
PA9/PA10
PD5/PD6
PB10/PB11
PB5/PB13
PB6/PB7
PF0/PF1
PA8/PB4
PB14/PB15
PA4/PA5/
PA6/PA7
-
STM32F469xx/
STM32F479xx
USB OTG FS
(PA11/12) in Device mode
PA9/PA10
-
PB10/PB11,
PC10/PC11
PB5/PB13
-
-
-
-
-
-
AN4488 Rev 7 27/50
49
Package AN4488
Bootloader peripherals
Table 7. STM32F4xxxx bootloader communication peripherals (continued)
STM32F401xB/C
STM32F401xD/E
STM32F405/415
STM32F407/417
STM32F427/437
STM32F429/439
STM32F410xx
STM32F411xC/
STM32F411xE
STM32F412xx/
STM32F413xx/
STM32F423xx
STM32F469xx/
STM32F479xx
SPI3
SPI4
PA15/PC10/
PC11/PC12
-
-
-
-
-
PA15/PC10/
PC11/PC12
-
PA15/PC10/
PC11/PC12
PE11/PE12/
PE13/PE14
-
-
For additional information, refer to AN2606 (
).
28/50 AN4488 Rev 7
AN4488 Debug management
The Host/Target interface is the hardware equipment that connects the host to the application board. This interface is made of three components: a hardware debug tool, a
JTAG or SW connector and a cable connecting the host to the debug tool.
shows the connection of the host to the evaluation board.
Figure 13. Host-to-board connection
$EBUGTOOL
*4!'37CONNECTOR
(OST0#
%VALUATIONBOARD
0OWERSUPPLY
AIB
5.1
5.2
5.2.1
SWJ debug port (serial wire and JTAG)
The STM32F4xxxx core integrates the serial wire / JTAG debug port (SWJ-DP). It is an
Arm
®
standard CoreSight™ debug port that combines a JTAG-DP (5-pin) interface and a
SW-DP (2-pin) interface.
•
The JTAG debug port (JTAG-DP) provides a 5-pin standard JTAG interface to the AHP-
AP port
•
The serial wire debug port (SW-DP) provides a 2-pin (clock + data) interface to the
AHP-AP port
In the SWJ-DP, the two JTAG pins of the SW-DP are multiplexed with some of the five JTAG pins of the JTAG-DP.
For more details on the SWJ debug port refer to the reference manual of the product, SWJ debug port section (serial wire and JTAG).
Pinout and debug port pins
The STM32F4xxxx MCU is offered in various packages with different numbers of available pins. As a result, some functionality related to the pin availability may differ from one package to another.
SWJ debug port pins
Five pins are used as outputs for the SWJ-DP as
alternate functions
of general-purpose
I/Os (GPIOs). These pins, shown in
, are available on all packages.
AN4488 Rev 7 29/50
49
Debug management
5.2.2
Note:
5.2.3
AN4488
SWJ-DP pin name
Type
Table 8. Debug port pin assignment
JTAG debug port SW debug port
Description Type Debug assignment
JTMS/SWDIO
JTCK/SWCLK
JTDI I
I
JTDO/TRACESWO O JTAG test data output
JNTRST I
I
JTAG test mode selection
JTAG test clock
JTAG test data input
JTAG test nReset
I/O
Serial wire data input/output
I Serial wire clock
-
-
-
TRACESWO if async trace is enabled
Pin assignmen t
PA13
PA14
PA15
PB3
PB4
Internal pull-up and pull-down resistors on JTAG pins
The JTAG input pins must
not
be floating since they are directly connected to flip-flops to control the debug mode features. Special care must be taken with the SWCLK/TCK pin that is directly connected to the clock of some of these flip-flops.
To avoid any uncontrolled I/O levels, the STM32F4xxxx embeds internal pull-up and pulldown resistors on JTAG input pins:
•
JNTRST: Internal pull-up
•
JTDI: Internal pull-up
•
JTMS/SWDIO: Internal pull-up
•
TCK/SWCLK: Internal pull-down
Once a JTAG I/O is released by the user software, the GPIO controller takes control again.
The reset states of the GPIO control registers put the I/Os in the equivalent state:
•
JNTRST: Input pull-up
•
JTDI: Input pull-up
•
JTMS/SWDIO: Input pull-up
•
JTCK/SWCLK: Input pull-down
•
JTDO: Input floating
The software can then use these I/Os as standard GPIOs.
The JTAG IEEE standard recommends to add pull-up resistors on TDI, TMS and nTRST but there is no special recommendation for TCK. However, for the
STM32F4xxxx
, an integrated pull-down resistor is used for JTCK.
Having embedded pull-up and pull-down resistors removes the need to add external resistors.
SWJ debug port connection with standard JTAG connector
shows the connection between the STM32F4xxxx and a standard JTAG connector.
30/50 AN4488 Rev 7
AN4488 Debug management
670)
Q-7567
-7',
-6706:',2
-7&.6:&/.
-7'2
Q567,1
Figure 14. JTAG connector implementation
9''
-7$*FRQQHFWRU&1
9''
N
975()
Q7567
7',
706
7&.
57&.
7'2
Q6567
'%*54
'%*$&.
N
N
966
069
AN4488 Rev 7 31/50
49
Clocks
6 Clocks
6.1
AN4488
Three different clock sources can be used to drive the system clock (SYSCLK):
•
HSI oscillator clock (high-speed internal clock signal)
• HSE oscillator clock (high-speed external clock signal)
•
PLL clock
The devices have two secondary clock sources:
• 32 kHz low-speed internal RC (LSI RC) that drives the independent watchdog and, optionally, the RTC used for Auto-wakeup from the Stop/Standby modes.
•
32.768 kHz low-speed external crystal (LSE crystal) that optionally drives the real-time clock (RTCCLK)
Each clock source can be switched on or off independently when it is not used, to optimize the power consumption.
Refer to the reference manual for the description of the clock tree.
HSE OSC clock
The high-speed external clock signal (HSE) can be generated from two possible clock sources:
•
•
HSE external crystal/ceramic resonator (see
)
Figure 15. HSE external clock Figure 16. HSE crystal/ceramic resonators
(ARDWARECONFIGURATION
/3#?).
/3#?/54
(ARDWARECONFIGURATION
34-&
/3#?).
/3#?/54
2%84
(I:
%XTERNALSOURCE
AI
#, #,
AIA
1. The value of R
EXT
depends on the crystal characteristics. Typical value is in the range of 5 to 6 R
S
(resonator series resistance).
Refer to the dedicated Application Note (AN2867 - Oscillator design guide for ST microcontrollers) and electrical characteristics sections in the datasheet of your product for more details.
32/50 AN4488 Rev 7
AN4488 Clocks
The low-speed external clock signal (LSE) can be generated from two possible clock sources:
•
LSE user external clock (see
)
•
LSE external crystal/ceramic resonator (see
Figure 17. LSE external clock Figure 18. LSE crystal/ceramic resonators
(ARDWARECONFIGURATION
/3#?).
/3#?/54
,ĂƌĚǁĂƌĞĐŽŶĨŝŐƵƌĂƚŝŽŶ
^dDϯϮ&dždždždž
K^ϯϮͺ/E K^ϯϮͺKhd
%XTERNALSOURCE
(I:
AI
Z yd;ϯͿ
>ϭ >Ϯ
D^ǀϰϮϲϬϮsϭ
1.
“LSE crystal/ceramic resonators” figure:
To avoid exceeding the maximum value of C
L1
and C resonator with a load capacitance C
L
≤
L2
(15 pF) it is strongly recommended to use a
7 pF. Never use a resonator with a load capacitance of 12.5 pF.
2.
“LSE external clock” and “LSE crystal/ceramic resonators” figures:
OSC32_IN and OSC32_OUT pins can be used also as GPIO, but it is recommended not to use them as both RTC and GPIO pins in the same application.
3.
“LSE crystal/ceramic resonators” figure:
The value of R
EXT
depends on the crystal characteristics. A 0 Ω resistor would work but would not be optimal. To fine tube R
S
value, refer to AN2867 - Oscillator design guide for ST microcontrollers ( and electrical characteristics sections in the datasheet of your product for more details.
AN4488 Rev 7 33/50
49
Figure 19. Reference schematic
<[0
W\
0
X:S:
:
/
9
L
R
0
00
0
0:
0/
09
0
0L
0
0R
&
&:
E
<::CD
E0
;0
+O
0
<:CD
/ :
<:0
&0 0A
K
0A
0A
&L
X:S:
&9
+?
&/
0A
&M$MN
<A
+?
$>
R
&$
$>+?
^__`a
$>@
&$
&
0A
$>0
R
X:S:
[:
[
7
&
[/
7/
7:
&:
D09
M09
+09
<09
70:
70/
709
;09
09
0/
0:
7;0
7;
7;:
7;/
7;9
&9
&/
=9
0
R
;
;9
L
;/
70
&0:
B0:
A0/
&0/
&09
U0
7O
70
>AU7
7
7:
7/
79
7
7L
7
7R
70
700
70
70:
70/
709
7;
7;0
7;
7;:
7;/
7;9
7;
7;L
7;
7;R
7;0
7;00
7;0
7;0:
7;0/
7;09
7< =
7<0 =:
7< =/
7<: B/
7</ [9
7<9 79
7< F09
7<L \09
7< \0/
7<R D0/
7<0 ;0/
7<00 ;0:
7<0 0
7W &
7W0 &L
7W 7L
7W: [
7W/ =R
7W9 =0/
7W0 ;0
7W0: ;R
7W0/ <R
7W09 +0
7A: +
7A/ +L
7A9 <
7A <9
7AL </
<:
S++T=<U
0)D
B0
;M+G
S++
S&MDX
&00
<R
YD
S++T=<U
S++T=<U
<
YDP
,Z *,C,* G
.)"ÿ YDÿ
\00
MR
M
W9
D/
A00
M0
D9
\9
BL
U0<
B0
D00
ML
S++0
S++
A9 S++:
F9
B
BR
W00
&0
70
F00
\0:
A0
\0
S++9
S++
S++L
S++
S++TU$;::
S++0
S++00
S++0
S++0:
S++0/
S++09
S++0L
S++0
S++0R
S$$0 AR
S$$ D0
S$$: D
S$$/ A
S$$9 F
S$$ AL
S$$L A
S$$ W0
S$$R \0
S$$0 D
S$$00 DL
S$$0 W
S$$0:TS$$0 D
S$$0/ A0
S$$09 DR
S$$0L \
S$$0R B
S$$ F0
S++
S&MDX
S++TS&M\+$?
TS++0
TS<7
S$$
=0
S&MDO [0
S; <0
&M\
S<70 B00
S<7 M00
$=:D/R
&0
<L
YD
7<0/
7<09
7F
7F0
&M$MN
;@@
M0
D0
\0
F0
@$<:T?
@$<:T@U
@$<T?
@$<T@U
F0:
T+T7 W0
+$?
+$?
W0:
W0
[&$
M
;@@
$=:D/R
7+&T@[
M9
X:S:
&R
&0
0A
S++T=<U
<0
0)D
S++T=<U
<
0)D
<:
0)D
<0/
0)D
<09
0)D
<0
0)D
</
0)D
<0L
0)D
<9
0)D
<0
0)D
<
0)D
<0R
0)D
<L
0)D
<
0)D
<
0)D
<0
0)D
<R
0A
0)D
<
0)D
<
YD
,Z *,C,* .( M$&K
S++T=<U
<0
LYD
<:
0)D
0
:
W70
<00
;0
S++
LYD
<0
0YD
S&MDX
</
0YD
X:S:
<0:
0)D
<9
0)D
0)D
&M$MN
ÿ !
7( #
+,
/
0
&"0
$-""
.)#
0
0
0
Figure 20. Bill of Material
100nF
4.7uF
1uF
2.2uF
2.2uF[N/A]
2.2uF
100nF
20pF
Comment
TD-0341 [RESET/Black]
CR1220 holder
1.5pF
JTAG
BEAD(FCM1608KF-601T03)
10K
0
[N/A]
09.03290.01
Description
SE PUSHBUTTON B1
Designator
Battery
Capacitor
BT1
C1, C2, C3, C4, C5, C6, C7,
C8, C9, C13, C14, C15, C16,
C17, C18, C19, C20, C21,
C22, C23, C25, C30
Polarized Capacitor (Radial) C10, C11
Polarized Capacitor (Radial) C12, C24
Capacitor C26, C27
Capacitor
Capacitor
Capacitor
Capacitor
Capacitor
Inductor
Resistor
Resistor
Resistor
SPDT Subminiature Toggle
Switch, Right Angle
Mounting, Vertical
Actuation
C28
C29
C31
C32, C33
C34, C35
CN1
JP10
L1
R1, R2, R3, R4, R8, R9, R12 0603R
R5, R6, R7, R11 0603R
R10
SW1, SW2
PB10
0402C
TAN-A
TAN-A
1206C
1206C
0402C
0603C
0603C
0603C
IDC20S
SIP3
0603L
0603R
Footprint
BAT_2SM_CR1220
SW1_3TH_2R54_10X2R5
STM32F469
25MHz(with socket) Crystal
U1
X1
BGA216_0R8_13X13_SKT
XTAL_socket
NX3215SA-32.768KHZ-EXS00A Crystal X2 XTAL_2SM_3R2X1R5
Quantity
7
4
1
1
1
2
1
1
2
1
1
22
2
2
2
1
1
2
1
1
1
Recommended PCB routing guidelines for STM32F4xxxx devices
8 Recommended PCB routing guidelines for
STM32F4xxxx devices
AN4488
In order to reduce the reflections on high speed signals, it is necessary to match the impedance between the source, sink and transmission lines. The impedance of a signal trace depends on its geometry and its position with respect to any reference planes.
The trace width and spacing between differential pairs for a specific impedance requirement is dependent on the chosen PCB stack-up. As there are limitations in the minimum trace width and spacing which depend on the type of PCB technology and cost requirements, a
PCB stack-up needs to be chosen which allows all the required impedances to be realized.
The minimum configuration that can be used is 4 or 6 layers stack-up. An 8 layers boards may be required for a very dense PCBs that have multiple SDRAM/SRAM/NOR/LCD components.
The following stack-ups are intended as examples which can be used as a starting point for helping in a stack-up evaluation and selection. These stack-up configurations are using a
GND plane adjacent to the power plane to increase the capacitance and reduce the gap between GND and power plane. So high speed signals on top layer will have a solid GND reference plane which helps to reduce EMC emissions, as going up in number of layers and having a GND reference for each PCB signal layer will improve further the radiated EMC performance.
Figure 21. Four layer PCB stack-up example
/D\HUB7RS
/D\HUB,QQHU
/D\HUB,QQHU
/D\HUB%RWWRP
6ROGHU0DVN
+LJK6SHHG6LJQDOV*1'
3UHSHJ
*1'3ODQH
&RUH
3RZHU3ODQH
3UHSHJ
+LJK6SHHG6LJQDOV*1'
6ROGHU0DVN
06Y9
36/50 AN4488 Rev 7
AN4488 Recommended PCB routing guidelines for STM32F4xxxx devices
Figure 22. Six layer PCB stack-up example
/D\HUB7RS
/D\HUB,QQHU
/D\HUB,QQHU
/D\HUB,QQHU
/D\HUB,QQHU
/D\HUB%RWWRP
6ROGHU0DVN
+LJK6SHHG6LJQDOV*1'
3UHSHJ
*1'3ODQH
&RUH
3RZHU3ODQH
3UHSHJ
/RZ6SHHG6LJQDOV
&RUH
*1'3ODQH
3UHSHJ
+LJK6SHHG6LJQDOV*1'
6ROGHU0DVN
06Y9
Use the application note: Oscillator design guide for STM8S, STM8A and STM32 microcontrollers (AN2867), for further guidance on how to layout and route crystal oscillator circuits.
All power supply and ground pins must be properly connected to the power supplies. These connections, including pads, tracks and vias should have as low impedance as possible.
This is typically achieved with thick track widths and, preferably, the use of dedicated power supply planes in multilayer PCBs.
In addition, each power supply pair should be decoupled with filtering Ceramic capacitors
(100 nF) and one single Tantalum or Ceramic capacitor (min. 4.7 µF typ.10 µF) connected in parallel. These capacitors need to be placed as close as possible to, or below, the appropriate pins on the underside of the PCB. Typical values are 10 nF to 100 nF, but exact values depend on the application needs. Figure 22 shows the typical layout of such a
VDD/VSS pair.
AN4488 Rev 7 37/50
49
Recommended PCB routing guidelines for STM32F4xxxx devices
Figure 23. Typical layout for V
DD
/V
SS
pair
sŝĂƚŽs sŝĂƚŽs^^
AN4488
^dDϯϮ&ϰdždž ss^^
069
8.4
8.4.1
Note:
High speed signal layout
SDMMC bus interface
Interface connectivity
The SD/SDIO MMC card host interface (SDMMC) provides an interface between the APB2 peripheral bus and Multi Media Cards (MMCs), SD memory cards and SDIO cards. The
SDMMC interface is a serial data bus interface, that consists of a clock (CK), command signal (CMD) and 8 data lines (D [0:7]).
Interface signal layout guidelines:
•
Reference the plane using GND or PWR (if PWR, add 10nf switching cap between
PWR and GND)
•
Trace the impedance: 50 Ω ± 10%
•
The skew being introduced into the clock system by unequal trace lengths and loads, minimize the board skew, keep the trace lengths equal between the data and clock.
•
The maximum skew between data and clock should be below 250 ps @ 10mm
•
The maximum trace length should be below 120mm. If the signal trace exceeds this trace-length/speed criterion, then a termination should be used
•
The trace capacitance should not exceed 20 pF at 3.3V and 15pF at 1.8V
• The maximum signal trace inductance should be less than 16nH
•
Use the recommended pull-up resistance for CMD and data signals to prevent bus floating.
• The mismatch within data bus, data and CK or CK and CMD should be below 10mm.
•
Keep the same number of vias between the data signals
The total capacitance of the SD memory card bus is the sum of the bus master capacitance.
CHOST, the bus capacitance CBUS itself and the capacitance CCARD of each card connected to this line. The total bus capacitance is CL= CHost + CBus + N*CCard where
Host is STM32F4xxxx, bus is all the signals and Card is SD card.
38/50 AN4488 Rev 7
AN4488
8.4.2
Note:
8.4.3
Recommended PCB routing guidelines for STM32F4xxxx devices
Flexible memory controller (FMC) interface
Interface connectivity
The FMC controller and in particular SDRAM memory controller which has many signals, most of them have a similar functionality and work together. The controller I/O signals could be split in four groups as follow:
•
An address group which consists of row/column address and bank address.
•
A command group which includes the row address strobe (NRAS), the column address strobe (NCAS), and the write enable (SDWE).
•
A control group which includes a chip select bank1 and bank2 (SDNE0/1), a clock enable bank1 and bank2 (SDCKE0/1), and an output byte mask for the write access
(DQM).
•
A data group/lane which contains 8 signals (a): the eight D (D7–D0) and the data mask
(DQM).
It depends of the used memory: SDRAM with x8 bus widths have only one data group, while x16 and x32 bus-width SDRAM have two and four lanes, respectively.
Interface signal layout guidelines:
•
Reference the plane using GND or PWR (if PWR, add 10nf stitching cap between PWR and GND
•
Trace the impedance: 50 Ω ± 10%
•
The maximum trace length should be below 120mm. If the signal trace exceeds this trace-length/speed criterion, then a termination should be used.
•
Reduce the crosstalk, place data tracks on the different layers from the address and control lanes, if possible. Ho wever, when the data and address/control tracks coexist on the same layer they must be isolated from each other by at least 5 mm.
•
Match the trace lengths for the data group within ± 10 mm of each other to diminish the skew. Serpentine traces (back and forth traces in an “S” pattern to increase trace length) can be used to match the lengths.
•
Placing the clock (SDCLK) signal on an internal layer, minimizes the noise (EMI).
•
Route the clock signal at least 3x of the trace away from others signals. Use as less vias as possible to avoid impedance change and reflection. Avoid using serpentine routing.
•
Match the clock traces to the data /address group traces within ±10mm.
•
Match the clock traces to each signal trace in the address and command groups to within ±10mm (with maximum of <= 20mm).
•
Trace the capacitances:
– At 3.3 V keep the trace within 20 pF with overall capacitive loading (including Data,
Address, SDCLK and Control) no more than 30pF.
– At 1.8 V keep the trace within 15 pF with overall capacitive loading (including Data,
Address, SDCLK and Control) no more than 20pF.
Quadrature serial parallel interface (Quad SPI)
Interface connectivity
The QUADSPI is a specialized communication interface targeting single, dual or Quad SPI
AN4488 Rev 7 39/50
49
Recommended PCB routing guidelines for STM32F4xxxx devices
8.4.4
AN4488
FLASH memories. The QUAD SPI interface is a serial data bus interface, that consists of a clock (SCLK), a chip select signal (nCS) and 4 data lines (IO[0:3]).
Interface signal layout guidelines
•
Reference the plane using GND or PWR (if PWR, add 10nf stitching cap between PWR and GND
•
Trace the impedance: 50 Ω ± 10%
•
The maximum trace length should be below 120mm. If the signal trace exceeds this trace-length/speed criterion, then a termination should be used
•
Avoid using multiple signal layers for the data signal routing.
•
Route the clock signal at least 3x of the trace away from other signals. Use as less vias as possible to avoid the impedance change and reflection. Avoid using a serpentine routing.
•
Match the trace lengths for the data group within ± 10 mm of each other to diminish skew. Serpentine traces (back and forth traces in an “S” pattern to increase trace length) can be used to match the lengths.
Avoid using a serpentine routing for the clock signal and as less via(s) as possible for the whole path. a via alter the impedance and add a reflection to the signal.
Embedded trace macrocell (ETM)
Interface connectivity
The ETM enables the reconstruction of the program execution. The data are traced using the data watchpoint and trace (DWT) component or the instruction trace macrocell (ITM) whereas instructions are traced using the embedded trace macrocell (ETM). The ETM interface is synchronous with the data bus of 4 lines D [0:3] and the clock signal CLK.
Interface signals layout guidelines
• Reference the plane using GND or PWR (if PWR, add 10nf stitching cap between PWR and GND
•
Trace the impedance: 50 Ω ± 10%
• All the data trace should be as short as possible (<=25 mm),
•
Trace the lines which should run on the same layer with a solid ground plane underneath it without a via.
• Trace the clock which should have only point-to-point connection. Any stubs should be avoided.
•
It is strongly recommended also for other (data) lines to be point-to-point only. If any stubs are needed, they should be as short as possible. If longer are required, there should be a possibility to optionally disconnect them (e .g. by jumpers).
40/50 AN4488 Rev 7
AN4488 Recommended PCB routing guidelines for STM32F4xxxx devices
8.5.1 BGA 216 0.8 mm pitch design example
Table 9. BGA 216 0.8 mm pitch package information
Package information (mm) Design parameters (mm)
Ball pitch : 0.8
Ball size : 0.4
Number of rows/columns : 15x15
Package solder Pad: SMD
Via size : hole size ∅ = 0.2, pad size: 0.45, plane clearance: 0.65
Trace width : 0.10/0.125
Trace/trace space : 0.10/0.125
BGA land size (Ball pad):
∅
= 0.4, solder mask: 0.5
With 0.8 mm pitch BGA balls, fan-out vias are needed to route the balls to other layers on the PCB. Through-vias are used in this example, which cost less than blind, buried vias. For
four adjacent BGA land pads, it is possible to have only one via as showing in
. The traces are routed of two first row and two first colon without fan-out via. The current pitch size allows to route only one trace between two adjacent BGA land pads.
shows an example of ideal SDRAM signals fan-out vias with power and gnd signals. These signals can be optimized to achieve the routing and length matching in an another layer before connecting to an SDRAM IC.
Figure 24. BGA 0.8mm pitch example of fan-out
&
'
$
%
(
06Y9
AN4488 Rev 7 41/50
49
Recommended PCB routing guidelines for STM32F4xxxx devices
7UDFH
Figure 25. Via fan-out
PP
3DG
PP
3DGWRYLD
VSDFH
PP
9LD'ULOO
9LD
PP
PP
AN4488
8.5.2
6XUIDFH/DQG3DG
06Y9
Figure 26. FMC signal fan-out routing example
1
3
5
/
0
-
.
(
)
*
+
&
'
$
%
*1'
3:5
)0&
06Y9
WLCSP143 0.4 mm pitch design example
Table 10. Wafer level chip scale package information
Package information (mm) Design parameters (mm)
Bump pitch : 0.4
Bump size : 0.25
Number of rows/columns : 13x11
Non-solder mask defined via underbump allowed
Microvia size : hole size ∅ = 0.1, via land: 0.2
Trace width/space : 0.07/0.05 or 0.07/0.07
Bump pad size ∅ = 0.26 max – 0.22 recommended
Solder mask opening bump
∅
=0.3 min (for 0.26 diameter pad)
42/50 AN4488 Rev 7
AN4488 Recommended PCB routing guidelines for STM32F4xxxx devices
A better way to route this package and the fan-out signals is to use a through microvia technology. Microvia will route out internal bumps to a buried layers inside the PCB. To achieve this, the WLCSP package pads have to be connected to this internal layer through microvia. In case of four layers PCB, the first layer is WLCSP component, the second layer will be used as a signal layer, the third layer as the power and ground and the bottom layer for a signal layout.
shows an example of the layout for four layers PCB.
AN4488 Rev 7 43/50
49
(
)
*
+
-
.
&
'
/
0
1
$
%
Recommended PCB routing guidelines for STM32F4xxxx devices
Figure 27. 143-bumps WLCSP, 0.40 mm pitch routing example
/D\HU7RS
AN4488
/D\HU
*1'
3:5
6LJQDOV
0LFURYLD
*1'
3:5
6LJQDOV
/D\HU3:5*1' /D\HU
*1'
3:5
6LJQDOV
6LJQDOV
06Y9
44/50 AN4488 Rev 7
AN4488
9 FAQ
9.1
FAQ
Identify the STM32F4xxxx
In order to identify the STM32F4 refer to section “Part numbering” in your product datasheet.
To get the MCU’s ID you can use ST-LINK Utility, once connected, the tool identify the target, and shows the ID, sub family, revision and flash size of the device as shown below.
Figure 28. STM32 ST-LINK Utility
9.2 Hardware tools available
ST provides three different development platforms:
These boards have a wide extension capabilities with specialized shields like Arduino
™
Uno.
Nucleao boards can easily be expanded through a variety of add-on boards.
Discovery boards helps user to discover the high performance microcontrollers of the
STM32 F4 series and to develop applications easily.
Different discovery boards are available. For example the STM32F429I-DISCO includes these features:
• SDRAM 64Mbits
•
L3GD20, MEMS motion sensor, 3 axis digital output gyroscope
• USB OTG with micro AB connector…
Evaluation boards are a complete demonstration and development platform for the STM32
F4 series.
The full range of hardware features on the board is provided to help you evaluate all peripherals (USB OTG HS, USB OTG FS, Ethernet, motor control, CAN, MicroSD card, smartcard, USART, Audio DAC, RS-232, IrDA, SRAM, MEMS, EEPROM… etc.) and develop your own applications.
AN4488 Rev 7 45/50
49
FAQ
9.2.4
9.3
AN4488
Where to find IBIS models?
IBIS models describe the electrical characteristics of the digital inputs and outputs of the
STM32F4xxxx through I=f (V) and V=f (T) data.
For further information on IBIS models refer to AN4803 (High-speed SI simulations using
IBIS and board-level simulations using HyperLynx SI on STM32 32-bit Arm
®
Cortex
®
MCUs)
IBIS models are available on ST’s website.
MCU does not work properly
The table below summarizes some possible root causes that prevents the MCU from starting correctly. It presents also the most common suspects related to the possible root cause that you may need to verify.
Possible root cause
System RESET
Table 11. MCU does not work properly
What you need to verify
VDD and GND feeding the device
OSC_OUT
RESET pin
BOOT PINs
•
Power delivered to the device must be stable.
•
Monitor power supplies.
•
Check if GND is properly supplied to device.
•
Verify the GND coupling.
•
Monitor OSC_OUT with oscillator to verify if it is working properly.
•
Refer to the AN2867: Oscillator design guide for ST microcontrollers.
•
Check if RESET pin is correctly driven.
•
NRST connection includes a 100nF capacitor to ground.
•
Monitor boot pins.
•
MCU may not work properly if BOOT0 and BOOT1 are floating.
VCAPs
PVD
Temperature range
•
VCAP1 and VCAP2 should be connected to 2x2.2 µF
LowESR < 2 Ω Ceramic capacitor
(or one 4.7 µF LowESR < 1 Ω Ceramic capacitor if only
VCAP1 pin is provided on some packages).
•
When programming the MCU, verify PLS [2:0] option bits.
(you can use ST Link utility for that)
•
An interruption is generated depending of the programmed
PVD threshold.
•
Respect worst conditions of temperature guaranteed by ST in the Datasheet.
• Care must be taken when PDR_ON pin =1, in such configuration the PDR block is active, that means if VDD drops down to 1.74 Volts (Refer to STM32F4xxxx datasheets for actual value) a system reset will occur.
46/50 AN4488 Rev 7
AN4488
10 Conclusion
Conclusion
This application note should be used as a starting reference for a new design with
STM32F4xxxx device.
AN4488 Rev 7 47/50
49
Revision history AN4488
Date
20-Jun-2014
28-Oct-2014
20-Mar-2015
21-Aug-2015
Revision
Table 12. Document revision history
Changes
1
2
3
4
Initial release.
Added STM32F411xC/xE in
Added footnote in
Table 3
Updated
Table 5
and
Table 11
Updated
,
Updated
Added
Section 2.3.5
for STM32F411xC/xE
Added
Updated
;
Updated
Table 3: Regulator ON/OFF and internal power supply supervisor availability
,
,
Table 6: WLCSP
Package summary
,
Table 5: Pinout summary
and
Table 11:
Reference connection for all packages
;
Updated
Figure 9: STM32F4 family compatible board design for
LQFP64 package
,
Figure 10: STM32F4 family compatible board design for LQFP100 package
,
Figure 12: Compatible board design
STM32F10xx/STM32F4xx for LQFP64 package
,
Figure 13:
Compatible board design STM32F10xx/STM32F2xx/STM32F4xx for
LQFP100 package
,
Figure 14: Compatible board design
STM32F10xx/STM32F2xx/STM32F4xx for LQFP144 package
;
Added
Figure 11: Compatible board design STM32F4xx /
STM32F446xx for LQFP144 package
.
Updated
–
Figure 2: Power supply scheme (excluding
–
Figure 3: Power supply scheme for STM32F469xx/F479xx
and related notes.
–
;
–
Table 3: Regulator ON/OFF and internal power supply supervisor availability
–
–
Table 6: WLCSP Package summary
–
Table 17: Reference connection for all packages
Added
Figure 12: Boot mode selection implementation example
48/50 AN4488 Rev 7
AN4488 Revision history
Date
07-Oct-2016
5-Dec-2016
03-Oct-2018
Table 12. Document revision history (continued)
Revision Changes
5
6
7
Added:
– STM32F410x8, STM32F410xB, STM32F412xE, STM32F412xG,
STM32F446xx, STM32F467xx and STM32F469xx.
–
Section 8: Recommended PCB routing guidelines for
–
–
Figure 19: Reference schematic
–
–
Figure 28: STM32 ST-LINK Utility
Updated:
–
Added:
STM32F413/423 line
Updated:
–
–
–
Table 7: STM32F4xxxx bootloader communication peripherals
Added:
–
Section 8.5: Package layout recommendation
–
Section 8.5.1: BGA 216 0.8 mm pitch design example
–
Section 8.5.2: WLCSP143 0.4 mm pitch design example
Updated:
–
Section 1: Reference documents
AN4488 Rev 7 49/50
49
AN4488
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2018 STMicroelectronics – All rights reserved
50/50 AN4488 Rev 7
Advertisement