![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
february 2015 docid023944 rev 4 1/34 1 AN4206 application note getting started with stm32f3 series hardware development introduction this application note is intended for system designers who require a hardware implementation overview of the development board features such as the power supply, clock management, reset control, boot mode settings and debug management. it explains how to use the stm32f3xx product lines and describes the minimum hardware resources required to develop an application based on stm32f3 series. the stm32f3x8 line devices with their disabled embedded regulator share many features/peripherals with the stm32f301, stm32f302, stm32f303 and stm32f334 line devices, which embedded regulator is enabled, with some differences. a summary of the differences between the product lines is provided in section 6 . a detailed reference design schematic is also c ontained in this document with descriptions of the main components, interfaces and modes. www.st.com
contents AN4206 2/34 docid023944 rev 4 contents 1 power supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1.1 independent analog power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.1.2 sigma delta supply voltages (only on f37x) . . . . . . . . . . . . . . . . . . . . . 11 1.1.3 battery backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.1.4 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.2 reset and power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.2.1 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.2.2 power on reset (por) / power down reset (pdr) . . . . . . . . . . . . . . . . . 14 1.2.3 programmable voltage detector (pvd) . . . . . . . . . . . . . . . . . . . . . . . . . 15 2 clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.1 high speed external clock signal (hse) osc clock . . . . . . . . . . . . . . . . . 16 2.2 lse clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.3 hsi clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.4 lsi clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.5 clock security system (css) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3 boot configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4 debug management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2 swj debug port (serial wire and jtag) . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.3 pinout and debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.3.1 swj debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.3.2 flexible swj-dp pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.3.3 internal pull-up and pull-down resistors on jtag pins . . . . . . . . . . . . . . 22 4.3.4 swj debug port connection with standard jtag connector . . . . . . . . . 23 5 recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.1 printed circuit board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.2 component position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.3 ground and power supply (v ss , v dd, v ssa , v dda, v sssd , v ddsd ) . . . . . 24 docid023944 rev 4 3/34 AN4206 contents 3 5.4 decoupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.5 other signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.6 unused i/os and features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 6 stm32f3x8 vs stm32f30x/f373 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7 reference design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.1 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.1.1 clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.1.2 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.1.3 boot mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.1.4 swj interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.1.5 power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.1.6 pinouts and pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.2 component references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 8 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 list of tables AN4206 4/34 docid023944 rev 4 list of tables table 1. boot modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 2. debug port pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 3. swj i/o pin availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 4. stm32f30x/f373 versus stm32f3x8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 5. mandatory components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 6. optional components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 7. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 docid023944 rev 4 5/34 AN4206 list of figures 5 list of figures figure 1. stm32f303/302xb/c power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 figure 2. stm32f302xd/e/stm32f303xd/e power supply sche me . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 3. stm32f373 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4. stm32f334/303/302/301x6/8 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 5. schottky diode connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 6. simplified diagram of the reset circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 7. power on reset/power down rese t waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 8. pvd thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 figure 9. hse/ lse clock sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 figure 10. host-to-board connectio n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 figure 11. jtag connector implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 12. typical layout for v dd /v ss pair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 13. stm32f30x microcontroller reference schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 14. stm32f373 microcontroller reference schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 power supplies AN4206 6/34 docid023944 rev 4 1 power supplies 1.1 power supply schemes there are a variety of power supply schemes: ? v dd = 2.0 to 3.6 v: external power supply for i/os and the internal regulator. ? provided externally through v dd pins. ? v dda = 2.0 to 3.6 v: external analog power supply for adc/dac, comparators, reset blocks, rcs and pll (in all stm32f3 seri es devices except stm32f373 line, the minimum voltage to be applied to v dda is 2.4 v when the opamp and dac are used. in stm32f373, minimum voltage to be applied to v dda is 2.4 v when the adc and dac are used). ? the v dda voltage level must always be greater than or equal to the v dd voltage level and must be provided first. ? v bat = 1.65 to 3.6 v: power supply for rt c, external clock 32 khz oscillator and backup registers (through power switch) when v dd is not present. ? v ddsd12 = 2.2 to 3.6 v: external power supply for sdadc1/2, pb2, pb10, and pe7 to pe15 i/o pins (i/o pin ground is internally connected to vss). v ddsd12 must always be kept lower or equal to v dda . if v ddsd12 is not used, it must be connected to v dda . ? v ddsd3 = 2.2 to 3.6 v: external power supply for sdadc3, pb14 to pb15 and pd8 to pd15 i/o pins (i/o pin ground is internally con nected to vss). v ddsd3 must always be kept lower or equal to v dda . if v ddsd3 is not used, it must be connected to v dda . note: v ddsd12 and v ddsd3 are available on stm32f373 only. docid023944 rev 4 7/34 AN4206 power supplies 33 figure 1. stm32f303/302xb/c power supply scheme 0 6 9 3 r z h u v z l w f k 9 % $ 7 * 3 , 2 v 2 8 7 , 1 . h u q h o o r j l f & |