Home

Discovery kit for STM32F401 line

image

Contents

1. Hardware layout UM1669 Table 6 MCU pin description versus board function page 5 of 8 MCU pin Board function S S PE 8 2 2 Main Alternate ela e Z Z K function functions ti il ala slala q 6 gt 5 n MCO 2 TIM3 CH4 PC9 I2C3 50 1252 CKIN 66 46 SDIO D1 I2S3ext CK PC10 SPI3 253 CK 78 37 SDIO 02 o I2S3ext SD SPI3 MISO SDIO 03 ie 38 I2S3ext_MISO gt 12 SPI3 MOSI 2S3 SD 80 4 35 SDIO CK oh PC13 _1 7 12 z 14 OSC32 IN 8 9 9 0 E PC15 OSC32 OUT 9 10 0 81 36 PD1 82 33 PD2 TIM3 SDIO CMD 83 34 SPI2 SCK I282 CK PES USART2 CTS n 31 IT PD4 USART2_RTS 85 32 X PD5 USART2 TX 86 m 29 5 SPI3 MOSI I283 SD PDS USART2_RX 87 26 39 DoclD025174 Rev 1 Ly UM1669 Hardware layout Table 6 MCU pin description versus board function page 6 of 8 MCU pin Board function s gl s 8 Alternate a lt Z g 2 Z Z K function functions u O0 9 20 9 7 m d 5 USART2 CK 88 2
2. I I I 102 red LED e LD1 red green LED Ewi E e a CN2 u2 SWD connector CN3 ST LINK DISCOVERY selector z We 5 MB1115B P2 5 V power supply input output 3 V power supply output JP2 outpi 155 measurement DD e PCL 388 581 2 STM32F401VCT6 LD3 orange LED B2 reset button B1 user button LD5 red LED LD4 green LED LD6 blue LED LD7 green LED LD8 red LED MS32361V1 10 39 00 10025174 Rev 1 Ly UM1669 Hardware layout Figure 3 Bottom layout SB2 584 586 588 RESERVED SB3 585 SB7 589 DEFAULT SB15 SWO SB16 X2 crystal 817 crystal SB18 X3 crystal SB19 BOOTO DEFAULT RESERVED USB ST LINK ssa ma 5818 USB USER SB10 SB11 RX TX SB12 STM RST 5813 NRST SB14 X2 crystal SB20 BOOT1 SB21 B1 USER MS32362V1 00 0025174 Rev 1 11 39 Hardware layout UM1669 4 1 STM32F401VCT6 microcontroller This ARM Cortex M4 32 bit MCU with FPU has 105 DMIPS up to 256 KB Flash 64 KB RAM USB OTG FS 10 TIMs 1 ADC 11 comm interfaces Figure 4 STM32F401VCT6 microcontroller STM32F401VCT6 LQFP100 14 x 14 mm 256 Kbytes of Flash memory 64 Kbytes of RAM MS32365V1 This dev
3. UM1669 Hardware layout Table 6 MCU pin description versus board function page 8 of 8 MCU pin Board function 5 SISI 9 S ola Main Alternate 1 2 p function functions u O0 9 20 9 7 m d 5 n a z 49 49 a z 50 50 Ly DoclD025174 Rev 1 29 39 Mechanical drawing UM1669 5 Mechanical drawing Figure 9 STM32F401 Discovery board mechanical drawing 66 00mm 6 33 6 33 E 53 34mm m m e b 8 S u 2 5 29 588 8 FEL 2 Emme e 5 amp x amp 5 e gt m m E 9 E m N N com stm32f4 discovery MB1115B EN 2 15 8 PA2 T e 4 8 g PAG a ie e mo sa PBS P89 E m 1 PBO m coc 98 VD E E pp2 37 IR 7 5 10 e e ie e e e 0 Emm ist Co WM mu z ma lt id 15 mmm ee ie e E E e T 9 e 2285 e ec i in wm 2 54 2 54 53 34 6 33 6 3
4. 98 lt qa 88 lt dd v8 8 8 SIHd 9 lt ed tr Hud 0 lt Old Ir C 6Hd OP 88d 6 lt Lad _ gt gt 96 68d gt s6 8ad_ gt 6 ga gt 6 98d 16 gt 06 68 9 06 68 gt Le gt 9 _ 184 gt 4L 9L vIVd gt gt gt gt 69 gt 839 6Vd gt 19 8Vd gt t gt 1 __ 0t svd gt 6t gt oz tVd gt St gt fc gt 33 39 DoclD025174 Rev 1 UM1669 Electrical schematics Figure 13 Audio 9 jo pious LOZ zWg wd dLLLgiWioqunv AYFAOISIG ILOvVAZEWLS 9 15 NI JTO Wad 201850 Wad 554 4901 49001 43001 Sto SAC au li tru 00 52 15 SA JS OW 108 oipny vas 154 DoclD025174 1 34 39 Electrical schematics UM1669 14 USB OTG FS Figure 9 Jo amp lOZ ZLS wa qhiLLSW oqunN S4 210 SN AHJAOOSIG OLOFJZEWLS dd S31U0J 29 90
5. guano Dan AU ea d Ursi E sed eme 15 Table 4 Debug connector SWD 5 5 17 Table 5 Solder bridges a ied 21 Table 6 MCU pin description versus board function 22 Table 7 Document revision history 37 4 39 DoclD025174 Rev 1 q UM1669 List of figures List of figures Figure 1 Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 q STM32F401 Discovery board 1 Hardware block diagram 1 2 9 NOLUERIT 10 Cr 11 STM32F401VCT6 microcontroller 12 STM32F401VCT6 block diagram 14 Typical configuration o ccc 2 eee 15 STM32F401 Discovery board connections image 16 ST Link connections image i sawas sassa akanan siasa 17 STM32F401 Discovery board mechanical drawing 30 STM32F401 Discovery 31 ST LINK V2 SWD n 32 STM32F401VCT6 33 34 USB FS UE 35 Peripherals oer aetna aire sates
6. Cor UM1669 life qugmented User manual Discovery kit for STM32F401 line Introduction The STM32F401 Discovery kit 32F401CDISCOVERY helps you to discover the entry level of the STM32F4 series and to develop your applications It is based on an STM32F401VCT6 and includes an ST LINK V2 embedded debug tool interface ST MEMS Gyroscope ST MEMS accelerometer magnetometer ST MEMS digital microphone audio DAC with integrated class D speaker driver LEDs pushbuttons and a USB OTG micro AB connector Figure 1 STM32F401 Discovery board lal September 2013 DoclD025174 Rev 1 1 39 www st com Contents UM1669 Contents 1 lt 6 2 Quick start ku Ee ey tabi ees 7 2 1 Getting started 16 i wae 7 2 2 System requirements 7 2 3 Development toolchain supporting the STM32F401 Discovery kit 7 2 4 Order code xa RR aR RRR 7 3 Features ewan sy bos eee Rea ego Skee RR M NE 8 4 Hardware layout 9 4 1 STM32F401VCT6 microcontroller 12 4 2 Embedded ST LINK V2 15 4 2 1 Using ST LINK V2 to program debug the STM32F401 on board 16 4 2 2 Using ST LINK V2 to program debug
7. tlO0Z z e wqd Ajuo GMS ZAMNIT 1S AMFAOISIG ILOPATEWLS 15 gt 001 atoor 012 40 LX ej Lise PIMA ION E df 01 25012 _ ES 5 A 2414 10 001 T FON XL 45915 fare 5 2g dz XA ANITLS eum cO E al AE 28 vH WOJ Fat z 5 PPI apis 4opjog uo pou XU PACEWLS NI OlaQMS 1 ION 5 YNIT LS lt 430 Sueduing AH3AOOSIG lt NO sdedwing ugor 2185 END 05 65 0 2500 12a 24 ISAW DU 091 OMS 1 3001 E zc dd asn P aN OMS 1 TE SWIM WIS _ 895 688 7 zt 9 AE a SWr WIS ISAN 1 STA IX 985 188 2 lt SWIFI I vas sas q 9 18D 01JCEIALLS gs eas m zn act Xuri ora WILY ee WN wy 4 x 95 gt 0 1
8. PC15 are only connected to P2 Remove only R21 R22 ON B2 pushbutton is connected to the NRST pin of the STM32F401VCT6 MCU SB1 B2 RESET OFF B2 pushbutton is not connected to the NRST pin of the STM32F401VCT6 MCU ON B1 pushbutton is connected to PAO SB21 B1 USER OFF B1 pushbutton is not connected to PAO ON NRST signal of the CN2 connector is connected to the NRST pin of the STM32F401VCT6 MCU SB13 NRST OFF NRST signal of the CN2 connector is not connected to the NRST pin of the STM32F401VCT6 MCU ON SWO signal of the CN2 connector is connected to PB3 SB15 SWO OFF SWO signal is not connected OFF Reserved do not modify SB10 11 RX TX ON Reserved do not modify OFF No incidence on STM32F103C8T6 ST LINK V2 signal SB12 STM RST ON STM32F103C8T6 ST LINK V2 NRST signal is connected to GND ON BOOTO signal of the STM32F401VCT6 MCU is held low through a 510 pull down resistor SB19 BOOTO OFF BOOTO signal of the STM32F401VCT6 is held high through a 10 pull up resistor OFF The 1 signal of the STM32F401VCT6 MCU is held high through a 10 KO pull up resistor SB20 BOOT1 ON The 1 signal of the STM32F401VCT6 is held low through a 510 pull down resistor DoclD025174 Rev 1 21 39 Hardware layout UM1669 1 Default SBx state is shown in bold 4 13 Extension connectors The male headers P1 and P2 can connect the STM32F401 Discovery board to a standard prototyping wrapping board
9. PC In this case the STM32F401 Discovery board must be powered by a power supply unit or by an auxiliary equipment complying with standard EN 60950 1 2006 A11 2009 and must be Safety Extra Low Voltage SELV with limited power capability 4 4 LEDs LD1 COM LD1 default status is red LD1 turns to green to indicate that communications are in progress between the PC and the ST LINK V2 e LD2 PWR The red LED indicates that the board is powered e User LD3 The orange LED is a user LED connected to the PD13 of the STM32F401VCT6 e UserLD4 The green LED is a user LED connected to the I O PD12 of the STM32F401VCT6 e UserLD5 The red LED is a user LED connected to the PD14 of the STM32F401VCT6 e UserLD6 The blue LED is a user LED connected to the PD15 of the STM32F401VCT6 e USB LD7 The green LED indicates when VBUS is present on CN5 and is connected to PA9 of the STM32F401VCT6 USB LD8 The red LED indicates an overcurrent from VBUS of CN5 is connected to the I O PD5 of the STM32F401VCT6 4 5 Pushbuttons B1USER User and Wake Up button connected to the I O PAO of the STM32F401VCT6 B2 RESET The pushbutton connected to NRST is used to RESET the STM32F401VCT6 q 18 39 DocID025174 Rev 1 UM1669 Hardware layout 4 6 4 7 4 8 4 9 q On board audio capability The STM32F401 uses an audio DAC CS43L22 to output sounds through the audio mini jack connector The STM32F
10. TIM11 166 RX TX CK smcard cts Rts asak pA TX Seer USARTG MOSI MISO 83 S MOSI MISO SCK NSS as AF SPH VDDREF_ADC Temperature sensor ADC1 IF VDDA AHB APB2 AHB APB1 APB2 84 MHz XTAL OSC 4 16MHz b IN OSC OUT WDG 32K interface PWR lt 1 65 to 3 6 V 32kHz OSC32 IN K gt OSC32 OUT Kc e TIM3 16 lt RTC AWU Backup register K ALARM OUT STAMP1 TIM2 32b TIM4 16b 4 channels ETR as AF lt 4 channels ETR as AF K gt 4 channels ETR as AF 5 320 4 channels smcard USART2 RX TX as AF CTS RTS as AF 2 2 2 MOSI SD MISO SD ext SCK CK NSS WS MCK as AF APB1 42 MHz max lt gt I2C3 SMBUS KL SCL SDA SMBA as AF SP3 I283 lt s MOSI SD MISO SD ext SCK CK NSS WS MCK as AF I2C1 SMBUS gt SCL SDA SMBA as AF I2C2 5MBUS SCL SDA SMBA as AF MS31144V2 14 39 DoclD025174 Rev 1 UM1669 Hardware layout 4 2 q Embedded ST LINK V2 The ST LINK V2 programming and debugging tool is integrated on the STM32F401 Discovery board The embedded ST
11. an external STM32 application 17 4 3 Power supply and power selection 18 4 4 cc nya alse a Ki 18 4 5 Pushbuttons uses ee RR AC RR OX ROCA SYN d 18 4 6 On board audio capability 19 4 7 USB OTG supported 19 4 8 E compass MEMS ST MEMS LSM303DLHC 19 4 9 Gyroscope MEMS ST MEMS 130020 19 4 10 20 441 atra ded uama Qu baa ced Pete 20 4111 OSCclocksupply 2 20 4 11 2 OSC32KHzclocksupply 20 412 Solder bridges 21 4 13 Extension connectors 22 5 Mechanical drawing 30 6 Electrical schematics 31 2 39 DoclD025174 Rev 1 Ly UM1669 Contents 7 Revision history 37 q DocID025174 Rev 1 3 39 List of tables UM1669 List of tables Table 1 ON OFF conventloBs oem p RU hank VPs EU LEUTE RI heed 6 Table 2 Features and 12 Table 3 Jumper States nu con Ee
12. ened 36 DoclD025174 Rev 1 5 39 Conventions UM1669 1 Conventions Table 1 provides the definition of some conventions used in the present document Table 1 ON OFF conventions Convention Definition Jumper JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Solder bridge SBx ON SBx connections closed by solder Solder bridge SBx OFF SBx connections left open 6 39 DoclD025174 Rev 1 Ky UM1669 Quick start 2 2 1 2 2 2 3 24 q Quick start The STM32F401 Discovery is a low cost and easy to use development kit to quickly evaluate and start a development with an STM32F4 entry level microcontroller Before installing and using the product please accept the Evaluation Product License Agreement from www st com stm32f4 discovery For more information on the STM32F401 Discovery board and for demonstration software visit www st com stm32f4 discovery Getting started Follow the sequence below to configure the STM32F401 Discovery board and launch the DISCOVER application 1 Ensure that the jumpers JP2 and are set to on Discovery mode 2 Connect the STM32F401 Discovery board to a PC using a USB cable type A mini B through the USB ST LINK connector CN1 to power the board The LED LD2 PWR will light up and the four LEDs between the buttons B1 and B2 start blinking 3 Press the user button B1 to enable the MEMS sensor The four LEDs will i
13. granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT ST PRODUCTS ARE NOT AUTHORIZED FOR USE IN WEAPONS NOR ARE ST PRODUCTS DESIGNED OR AUTHORIZED FOR USE IN SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS B AERONAUTIC APPLICATIONS C AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS AND OR D AEROSPACE APPLICATIONS OR ENVIRONMENTS WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE THE PURCHASER SHALL USE PRODUCTS AT PURCHASER S SOLE RISK EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR AUTOMOTIVE AUTOMOTIVE SAFETY OR MEDICAL INDUSTRY DOMAINS ACCORDIN
14. high processing and low power performance when running at low voltage or on a rechargeable battery 12 39 DoclD025174 Rev 1 q UM1669 Hardware layout Table 2 Features and benefits continued Features Superior and innovative peripherals and connectivity 1x USB OTG Up to 11 communication interfaces including USART 4x SPI with digital filter 1 SDIO USART at up to 10 5 Mbit s SPI at up to 42 Mbit s Benefits New possibilities to connect and communicate high speed data Audio dedicated audio 2 12 High quality audio support Analog 1x 12 bit ADC reaching 2 4 MSPS Up to 10 timers 16 and 32 bits running up to 84 MHz More precision thanks to high resolution High integration WLCSP49 3 x 3 mm STM32F401 256 Kbyte Flash 64 Kbyte SRAM Smaller board space allowing for smaller applications Extensive tools and software solutions Hardware sector protection with execute only access Various IDE starter kits libraries RTOS and stacks either open source or provided by ST or 3rd parties including the ARM CMSIS DSP library optimized for 4 instructions Software IP protection A wide choice within the STM32 ecosystem to develop your applications q DocID025174 Rev 1 13 39 Hardware layout UM1669 Figure 5 STM32F401VCT6 block diagram JTCK SWCLK JTDO
15. ias vas 045105 8 1 9 5 v T 1 Ln LLNI SWAN ZLNI SWAIN 145 021 SO OSIW_IIdS 18071 114 305 TdS 8 Gana 5 e 49020 T amor vl ON Aqua 4185 2188 5 vas t 1 sn DoclD025174 Rev 1 36 39 UM1669 Revision history 7 q Revision history Table 7 Document revision history Date 10 Sep 2013 Revision 1 Initial release Changes DocID025174 Rev 1 37 39 UM1669 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is
16. 0d 3 E 1 xor cra I GAS OIGAS SALL OX IOMSPIOL DoclD025174 Rev 1 32 39 Electrical schematics UM1669 Figure 12 STM32F401VCT6 MCU 9 jo 519945 LO0Z zL g9 d 4 NIW AS3AOOSIG OLOFJCEWLS 1S JON ATE mee gnec 550 850 44001 1 foor t foor fuoor 1 650 750 cto 500 001 001 0001 T NILOA LOPATEWLLS seo 900 055 ANN 44001 x40 vCO 44001 Mit aag AAA ETA TI L Ed gt gt 6L gt 8L _ 0104 gt 110 c OSO SIOd 59 804 Q 2489 n T w OSO IHd NI OSO FIOd 9 90d tod gt 101541 21g 01 25012 24 snp 9 1008 NI OSO 0Hd 8 9 604 8 e gt cOd gt Ll Zd L 08 6L L 9 59 9 104 gt 9 tE 1 1 _ 104 gt 09 19 09 65 bs sidd 7184 ts 1 594 19 09 65 86 omg LS lt 6dd 95 lt saa 55 qa 88 18
17. 3 66 00 30 39 00 0025174 1 ky Electrical schematics UM1669 Electrical schematics 6 Figure 10 STM32F401 Discovery board peus LOZ zg owd AS3AOOSIQ OLOFJCEWIS 5 LS TXST PLH 124 924 60d 80d 8Vd Tod 0194 Tod tad Edd Sad Lad Sad rad Lad 98d 01004 68d 88d 189 ead Tad Sad rad plod D pc s nU At As ooquos 51 n ooquos ompny opny n 01008 90quos XATEWLS XJTENLS N PLH N sida oad 51 4 lad 2184 ON 0194 7194 Tad 0199 Std Lad 11008 Odd Tad tod Sod 9vd Lyd SVd aad tod fod 004 124 ISAN OMS L ISUN L OIAMS SNL OCIOMS SOL 14 DLO 450 sd 1 gsn n ANITIS 15 HATEN XL 31 39 00 0025174 1 UM1669 Figure 11 ST LINK V2 SWD only Electrical schematics 9 jo zweus
18. 401 controls the audio DAC through the I2C interface and processes digital signals through 125 connection or analog input signal e The sound can come independently from different inputs ST MEMS microphone 450 02 digital using protocol or analog when using the low pass filter USB connector from external mass storage such as a USB key USB HDD and 0 on Internal memory of the STM32F401 e The sound can be output in different ways through audio DAC Using the 12 protocol Using the microphone output directly via a low pass filter to analog input AINAx of the CS43L22 USB OTG supported The STM32F401 is used to drive only USB full speed on this board The USB micro AB connector CN5 allows the user to connect a host or device component such as a USB key mouse and so on Two LEDs are dedicated to this module 07 green LED indicates when VBUS is active e 108 red LED indicates an overcurrent from a connected device E compass MEMS ST MEMS LSM303DLHC The LSM303DLHC is an ultra compact low power system in package featuring a 3D digital linear acceleration sensor and a 3D digital magnetic sensor It includes a sensing element and an IC interface able to provide the measured acceleration to the external world through I2C serial interface The LSM303DLHC has dynamically user selectable full scales of 2g 8g and is capable of measuring the acceleration and a magnetic fie
19. 7 PD8 55 40 PD9 56 41 PD10 57 42 PD11 58 43 z PD12 59 44 c PD13 TIM4_CH2 60 lt 45 a PD14 TIM4_CH3 61 E 46 LLI PD15 TIM4_CH4 62 5 47 ta PEO TIM4_ETR 97 E 17 N PE1 98 E 18 gt TRACECLK 5 14 1 E 15 a 0 TRACEDO 2 S 16 Fi 4 TRACED1 SPI4_NSS 3 13 TRACED2 TIM9 N PES SPI4 MISO 4 14 TIM9 CH2 5 4 MOSI 3 11 PE7 1_ 38 25 Ly 00 0025174 Rev 1 27 39 Hardware layout UM1669 Table 6 MCU pin description versus board function page 7 of 8 MCU pin Board function 5 i 8 Main Alternate 3n m o i algio o8 2 9 z x m function functions 5 5 lt lt 5 O O 9 5 2 lt o 2 TIM1 CH1N 39 26 PE9 TIM1 CH1 40 27 PE10 TIM1 CH2N 41 28 PE11 TIM1 CH2 NSS 42 29 TIM1 CH3N PE12 SPI4 SCK 43 30 PE13 TIM1_CH3 SPI4_MISO 44 31 PE14 1 SPI4_MOSI 45 32 PE15 TIM1 BKIN 46 33 z PHO OSC IN 12 7 2 PH1 OSC OUT 13 8 D gt i 3 gt i 4 gt 5 gt 5 6 3 22 gt a a 4 gt ala a 2 Z 2151311 1 O O 2 212 a z 5 a 2 23 28 39 DoclD025174 Rev 1 Ly
20. G TO ST PRODUCT DESIGN SPECIFICATIONS PRODUCTS FORMALLY ESCC QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2013 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com 38 39 DoclD025174 Rev 1 Ly
21. J9IIN 1 TAEOASN COAINGA L INO R and lt 1 1 4 RI 14 S 2 8gv owonm asn Pens 2g E 3 aa gt na SngA 3191015405 _ Has 0 4 lt AW 1 1 qonmji 0 ST 910 sad Me r z R I AE 029 sow AE GI S4 DIO dd 54 DIO Wd Sd DIO Sd SOA UOYMMSIOMOd 54 DIO 35 39 DoclD025174 Rev 1 UM1669 Electrical schematics 9 JO gius iOZ zL g owd Vg LLLSMW SquinN AH3AOOSIQ OLOPAZEWLS LS Figure 15 Peripherals 015 9q1 per qq1 ET zl ngo ET ogy 12218 m ga 13535 o E 9 E g 39001 r 650 5 o g 185 gt ISUN vN Mee uong 3 YISN MOTZ ue OEE 1 95 Wy 7 vN 950 ani8 SWO HSnd MS zy LEA SWAN gaset HH INI CLINI AGMNG 145 21 SO OGS 0VS oas
22. LINK V2 can be used in 2 different ways according to the jumper states see Table 3 e Program debug the MCU on board e Program debug an MCU in an external application board using a cable connected to SWD connector CN2 The embedded ST LINK V2 supports only SWD for STM32 devices For information about debugging and programming features refer to user manual UM1075 ST LINK V2 in circuit debugger programmer for STM8 and STM32 which describes in detail all the ST LINK V2 features Figure 6 Typical configuration Hardware requirements USB cable type A to mini B Computer with Windows XP Vista or 7 Development toolchains Altium TASKING VX Toolset Atollic TrueSTUDIO IAR EWARM MS31115V1 Table 3 Jumper states Jumper state Description Both CN3 jumpers ON ST LINK V2 functions enabled for on board programming default ST LINK V2 functions enabled for application through external Both CN3 jumpers OFF CN2 connector SWD supported DoclD025174 Rev 1 15 39 Hardware layout UM1669 4 2 1 16 39 Using ST LINK V2 to program debug the STM32F401 on board To program the STM32F401 on board simply plug in the two jumpers on as shown in Figure 7 in red but do not use the CN2 connector as that could disturb communication with the STM32F401VCT6 of the STM32F401 Discovery board Figure 7 STM32F401 Discovery board connections image CN2 SWD c
23. STM32F401VCT6 GPI Os are available on these connectors P1 and P2 can also be probed by an oscilloscope logical analyzer or voltmeter Table 6 MCU pin description versus board function page 1 of 8 MCU pin Board function a 2 ej S Alternate 21 5 2 ossi a i i 2 Q 2 9 z 9 function functions eo lt 3 o d 5 Le 2 BOOTO 94 21 NRST 14 n 5 6 2 TIM2 CH1 TIM2 ETR 5 95 a i WKUP USART2 CTS 2 ADC1_0 WKUP TIM2_CH2 TIM5_CH2 PA1 USART2_RTS 24 11 ADC1 1 TIM2 CH3 TIM5 CH3 PA2 TIM9 25 14 USART2 TX ADC1 2 TIM2 CH4 TIM5 PA3 TIM9 CH2 26 13 USART2 RX ADC1 3 x SPI NSS z PA4 SPI3 NSS 2S3 WS 29 5 16 USART2 CK ADC1 4 O 2 CH1 TIM2 D RAS SPI1 SCK ADC1 5 19 N TIM1_BKIN PA6 TIM3 31 18 SPI1 MISO ADC1 6 22 39 DoclD025174 Rev 1 Ly UM1669 Hardware layout Table 6 MCU pin description versus board function page 2 of 8 MCU pin Board function Main function Alternate functions TIM1 CH1N TIM3 CH2 SPI1 MOSI ADC1 7 LQFP100 32 CS43L22 MP45DTO2 L3GD20 LSM303DLHC Pushbutton LED SDA SDI SDO SWD USB OSC Free I O Power supp
24. SWD JTDO TRACECLK TRACED 3 0 NJTRST JTAG amp SW MPU Mu ETM NVIC ARM Cortex M4 P BUS 8 Streams FIFO AHB bus matrix 754M Flash up to 256 KB SRAM 64 KB 8 Streams FIFO PA 15 0 lt gt PB 15 0 mp PC 15 0 PD 15 0 15 0 lt gt GPIO PORTA GPIO PORT B GPIO PORT GPIO PORT D GPIO PORT E GPIO PORT H AHB2 84 MHz USB i AHB1 84 MHz VDDA a OTGFS 4 Power managml Voltage regulator 3 310 12V GVDD RC HS Supply supervision RCLS PLL1 amp 2 POR PDR BOR DP gt ID VBUS SOF VDD 17 to 3 6 V PDR OFF 1 810 3 6 V vss VCAP VDDA VSSA PVD VDDA VDD NRST Reset amp clock control 4 4 4 4 HCLK APB2CLK APB1CLK AHB2PCLK AHB1PCLK 16 analog inputs up to81AF C EXT IT WKUP D 7 0 CK as SDIO compl channels TIM1 CH1 1 4 N 4 channels TIM1 CH1 1 4 ETR 1 5 TIM1 PWM 16b BKIN as AF 2 channels as AF 16b 1 channel as AF lt s TIM10 16b 1 channel as AF C
25. WS USB FS SDA SDIO D5 TIM2 CH3 12C2 SCL SPI2 SCK I282 PB1 36 21 PB3 89 28 SWO 4 90 25 5 91 26 23 SCL SCL 7 93 24 PB9 96 20 SDA SDA PB10 47 34 CLK VCAP1 48 35 VDD q 24 39 DocID025174 Rev 1 UM1669 Hardware layout Table 6 MCU pin description versus board function page 4 of 8 MCU pin Board function 5 42 2 Main Alternate a ajo ZIZI function functions ala slala 5 O O 31 5 n TIM1 BKIN I2C2 SMBAL SPI2 NSS I282 WS 2 1252 WS TIM1 CH1N PB13 SPI2 SCK I282 CK 52 37 1252 TIM1 CH2N PB14 SPI2 MISO 53 38 1252 SD RTC 50Hz TIM1 CH3N PBIS SPI2_MOSI I2S2_SD x d I282ext MISO PCO ADC1_10 15 g 8 o 1 ADC1 11 16 7 SPI2 MISO PC2 1252 50 ADC1 12 16 SPI2 MOSI I282 SD PES 13 18 ADC1_14 33 20 PC5 ADC1_15 34 19 TIM3 CH1 1282 PED USART6 SDIO 06 in ar TIM3_CH2 12 3_ x dod USART6 RX SDIO D7 9 48 8 _ 65 45 USART6 CK SDIO DO Ly DoclD025174 1 25 39
26. digital microphone CS43L22 audio DAC with integrated class D speaker driver Eight LEDs 101 red green for USB communication 102 red for 3 3 V power on Four user LEDs LD3 orange 104 green LD5 red and 106 blue Two USB OTG LEDs LD7 green VBus and LD8 red over current Two pushbuttons user and reset USB OTG with micro AB connector Extension header for LQFP100 I Os for a quick connection to the prototyping board and an easy probing q DocID025174 Rev 1 UM1669 Hardware layout 4 Hardware layout The STM32F401 Discovery board has been designed around the STM32F401VCT6 microcontroller in a 100 pin LQFP package Figure 1 illustrates the connections between the STM32F401VCT6 and its peripherals ST LINK V2 pushbutton LED Audio DAC USB ST MEMS gyroscope ST MEMS accelerometer magnetometer ST MEMS microphone and connectors Figure 2 and Figure 3 help you to locate these features on the STM32F401 Discovery board Figure 1 Hardware block diagram Mini USB Embedded ST LINK V2 a z STM32F401VCT6 5 gal 9 T LEDs B2 LD3 LD8 RESET MP45DTO2 B1 USER CS43L22 L3GD20 Mini Jack Micro USB LSM303DLHC MS31947V2 Ly DoclD025174 Rev 1 9 39 Hardware layout UM1669 Figure 2 Top layout
27. ice provides the following benefits see Table 2 Table 2 Features and benefits Features High performance Up to 84 MHz 105 DMIPS Cortex M4 with single cycle DSP MAC and floating point unit CoreMark 285 at 84 MHz CoreMark MHz 3 39 Benefits Boosted execution of control algorithms More features for your applications Ease of use Better code efficiency Faster time to market Elimination of scaling and saturation Easier support for meta language tools Maximum integration Up to 256 of on chip Flash 64k B of SRAM reset circuit internal RCs PLLs ultra small packages WLCSP More features in space constrained applications Designed for high performance and ultra fast data transfers ART Accelerator memory accelerator Performance equivalent to zero wait execution from Flash 32 bit 7 layer bus matrix with 6 masters and 5 slaves including 1 block of SRAM Multi DMA controllers 2 general purpose Concurrent execution and data transfer Outstanding power efficiency Ultra low dynamic power Run mode 140 uA MHz at 84 MHz running CoreMark benchmark from Flash memory peripherals off RTC 1 pA typ in mode Down to 11 pA typ in Stop mode 3 6 V down to 1 7 V Vpp 1 2 V voltage regulator with power scaling capability Extra flexibility to reduce power consumption for applications requiring both
28. ld full scale from 1 3 g to 8 1 g with an output data rate of 100 Hz or 400 Hz The STM32F401VCT6 MCU controls this motion sensor through the I2C interface Gyroscope MEMS ST MEMS L3GD20 The L3GD20 is an ultra compact low power three axis angular rate sensor It includes a sensing element and an IC interface able to provide the measured angular rate to the external world through the I2C SPI serial interface The L3GD20 has dynamically user selectable full scales of 250 dps 500 dps 2000 dps and is capable of measuring rates DoclD025174 Rev 1 19 39 Hardware layout UM1669 4 10 4 11 4 11 1 4 11 2 20 39 The STM32F401VCT6 MCU controls this motion sensor through the SPI interface JP2 Idd Jumper JP2 labeled 199 allows the consumption of STM32F401VCT6 to be measured by removing the jumper and connecting an ammeter e Jumper on STM32F401VCT6 is powered default Jumper off ammeter must be connected to measure the STM32F401VCT6 current if there is no ammeter the STM32F401VCT6 is not powered OSC clock OSC clock supply If PHO and PH1 are only used as GPIOs instead of as a clock then SB14 and SB16 are closed and R24 R25 and R66 are removed MCO from ST LINK from MCO of the STM32F103 This frequency cannot be changed it is fixed at 8 MHz and connected to PHO OSC IN of the STM32F401VCT6 The configuration needed is SB14 5816 OPEN R25 removed R66 soldered Oscillator
29. ly CN5 CN2 P1 P2 17 1 TIM1 I2C3 SCL CK USB FS SOF 67 43 PA9 PA10 TIM1 CH2 I2C3 SMBAL USART1 TX USB FS VBUS TIM1_CH3 USART1_RX USB FS ID 68 69 GREEN VBUS ID PA11 PA12 TIM1 USART1 CTS 6 USB FS DM TIM1 ETR USART1_RTS USART6_RX USB_FS_DP 70 71 DM DP PA13 JTMS SWDIO 72 PA14 JTCK SWCLK 1253 WS 76 SWCLK SWDIO PA15 JTDI TIM2 CH1 TIM2 ETR NSS NSS I283 WS 77 40 PBO TIM1 TIM3 CH3 ADC1 8 35 22 q DocID025174 Rev 1 23 39 Hardware layout UM1669 Table 6 MCU pin description versus board function page 3 of 8 MCU pin Board function Main Alternate function functions LQFP100 CS43L22 MP45DTO2 L3GD20 LSM303DLHC Pushbutton LED SWD USB OSC Free I O Power supply CN5 CN2 P1 P2 TIM1 CH3N ADC1 9 PB2 37 24 JTDO SWO TIM2 CH2 SPI1 SCK SCK I283 CK 12 2 SDA JTRST TIM3_CH1 MISO SPI3_MISO I2S3ext SD I2C3 SDA TIM3 CH2 I2C1 SMBAL SPI1 MOSI SPI3 253 SD TIM4 CH1 I2C1 SCL PB6 USART1 TX 92 USB FS INT TIM4 CH2 12C1 SDA USART1 RX TIM4 CH3 TIM10 CH1 PB8 I2C1 SCL 95 19 USB FS SCL SDIO D4 TIM4 CH4 TIM11 I2C1 SDA SPI2 NSS I2S2
30. ndicate the board motion direction and speed When connected to a PC with a second USB type A micro B cable through 5 the board will be recognized as a standard mouse 4 The demo software as well as other software examples that allow you to discover the STM32 F4 series features are available www st com stm32f4 discovery 5 Develop your own applications starting from the examples System requirements e Windows PC XP Vista 7 e USB type A to mini B cable Development toolchain supporting the STM32F401 Discovery kit e Altium TASKING VX Toolset e Atollic TrueSTUDIO JAR EWARM e MDK ARM Order code To order the STM32F401 Discovery kit use the STM32F401C DISCO order code DoclD025174 Rev 1 7 39 Features UM1669 3 8 39 Features The STM32F401 Discovery board offers the following features STM32F401VCT6 microcontroller featuring 256 KB of Flash memory 64 KB of RAM in an LQFP100 package On board ST LINK V2 with selection mode switch to use the kit as a standalone ST LINK V2 with SWD connector for programming and debugging Board power supply through USB bus or from an external 5 V supply voltage External application power supply 3 V and 5 V L3GD20 ST MEMS motion sensor 3 axis digital output gyroscope LSM303DLHC ST MEMS system in package featuring a 3D digital linear acceleration sensor and a 3D digital magnetic sensor MP45DT02 ST MEMS audio sensor omnidirectional
31. onboard from X2 crystal For typical frequencies and its capacitors and resistors please refer to the STM32F401VCT6 Datasheet The configuration needed is SB14 5816 OPEN R25 soldered R66 removed Oscillator from external PHO from external oscillator through pin 7 of the P2 connector The configuration needed is SB14 closed SB16 closed 25 R66 removed OSC 32 KHz clock supply If PC14 and PC15 are only used as GPIOs instead of as a clock then SB17 and SB18 are closed and R21 and R22 are removed Oscillator onboard from X1 Crystal not provided The configuration needed is SB17 SB18 OPEN C20 C28 R21 and R22 soldered q DocID025174 Rev 1 UM1669 Hardware layout Oscillator from external PC14 from external oscillator trough the pin 9 of P2 connector The configuration needed is SB17closed SB18 closed R21 and R22 removed 4 12 Solder bridges Table 5 Solder bridges Bridge State 1 Description X2 C18 C19 R24 and R25 provide a clock Ly OFF PHO PH1 are disconnected from P2 SB14 16 X2 crystal ON PH1 are connected to P2 R24 R25 and R66 must not be fitted SB3 5 7 9 Default ON Reserved do not modify SB2 4 6 8 Reserved OFF Reserved do not modify OFF X3 C20 C28 R21 and R22 deliver a 32 KHz clock SB17 18 X3 crystal PC14 PC15 are not connected to P2 ON PC14
32. onnector CN3 jumpers q DocID025174 Rev 1 UM1669 Hardware layout 4 2 2 Note q Using ST LINK V2 to program debug an external STM32 application It is very easy to use the ST LINK V2 to program the STM32 on an external application Simply remove the 2 jumpers from CN3 as shown in Figure 8 and connect your application to the CN2 debug connector according to Table 4 SB13 must be OFF if you use CN2 pin 5 in your external application Table 4 Debug connector CN2 SWD Pin CN2 Designation 1 VDD TARGET VDD from application 2 SWCLK SWD clock 3 GND Ground 4 SWDIO SWD data input output 5 NRST RESET of target MCU 6 SWO Reserved Figure 8 ST Link connections image CN2 SWD connector DISCOVERY CN3 jumpers OFF DoclD025174 Rev 1 17 39 Hardware layout UM1669 4 3 Power supply and power selection The power supply is provided either by the host PC through the USB cable or by an external 5 V power supply The D1 and D2 diodes protect the 5 V and 3 V pins from external power supplies 5Vand3 V can be used as output power supplies when another application board is connected to pins P1 and P2 In this case the 5 V and 3 V pins deliver a 5 V or 3 V power supply and the power consumption must be lower than 100 mA 5Vcan also be used as input power supplies e g when the USB connector is not connected to the

Download Pdf Manuals

image

Related Search

Related Contents

Infotainment  取扱説明書 - イメージニクス  HYDRO MPC (CU351搭載型)  Installation and Service Manual  Página principal > Apoio ao Cliente > Manual do Condutor  Tripp Lite B012-000 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file