Home

Getting started with the STM32F401 Discovery kit

image

Contents

1. ci UM1660 WI life augmented User manual Getting started with the STM32F401 Discovery kit Introduction This document describes the software firmware environment and development recommendations required to build an application around the STM32F401 Discovery kit 32F401CDISCOVERY with demonstration firmware STSW STM32136 The STM32F401 Discovery kit is a low cost and easy to use development kit to quickly evaluate and start applications with an STM32F4 series ARM 32 bit Cortex M4 high performance 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 kit visit www st com stm32f4 discovery To order the STM32F401 Discovery kit use the STM32F401C DISCO order code Figure 1 STM32F401 Discovery board STM32F401C DISCO USB ST LINK STM32F401C DISCO ES Eae Lie 5 it i st Gey Sr disi 3 5 STM32F401 C Extension headers microcontroller User button Reset button Audio jack USB_OTG_FS References e STM32F401xB STM32F401xC datasheet e STM32F40xxx advanced ARM based 32 bit MCUs reference manual RM0344 e Discovery kit for STM32F401 line UM1669 e Getting started with STM32F401 Discovery software development tools UM1671 e Forum user question discussion September 2013 DociID025116 Rev 1 1 11 www st com Contents UM1660 Contents 1 Hardwa
2. up to 64 Kbytes of SRAM up to 4 Kbytes of backup SRAM and an extensive range of enhanced I Os and peripherals connected to two APB buses two AHB buses and a 32 bit multi AHB bus matrix 3 DoclD025116 Rev 1 UM1660 Hardware configuration and layout 1 3 System requirements e Windows PC XP Vista 7 e USB type A to Mini B cable e ST LINK V2 e Supported IDE are EWARM IAR Embedded Workbench MDK ARM and Atollic TrueSTUDIO Note Required information to download and install desired IDE and ST LINK V2 are detailed in Getting started with STM32F401 Discovery software development tools UM1671 1 4 Powering up the board The STM32F401C DISCO board can be powered up from three sources e USB ST LINK To power the board from the USB connector CN1 use the USB type A to Micro B cable and connect it between the host and the board USB connector CN1 e Two external sources DC power supply can be inserted in the GND and 3 V or 5 V pin Figure 2 STM32F401C DISCO power sources USB ST LINK CN1 le o 72 a oO tS q Mi N m 2 FE a MB1115B 3 DocID025116 Rev 1 5 11 Hardware configuration and layout UM1660 1 5 1 6 6 11 Reset the board There are three ways to reset the board e Push the reset button mounted on the STM32F401C DISCO e Remove and reinsert the USB cable e The MCU can also be reset by debuggers Hardware block diagram The STM32F401C
3. e STM32 USB OTG library subfolder STM32F4xx StdPeriph Driver subfolder B J CMSIS a d STM32 USB Device Library a d STM32 USB HOST Lbray a d STM32 USB OTG Driver a d STM32F4o StdPeriph Driver Projectfolder 3 J Pwed Demonstration subfolder t Templates Master Workspace subfolder t Demonstration d Master_Workspace Peripheral_Eaxmaples subfolder gt p Bam Templates subfolder Ubibes a di STM32F401 Discovery Utilities folder a di Thed_Paty STM32F401 Discovery subfolder Xi MCD ST Lberty SW License Agreement V2pdi E Release Notes html Third Party You can run examples provided within this package A set of examples for each peripheral are ready to be run 2 2 Programming firmware application To start programming user must e Install the preferred Integrated Development Environment IDE e Install the ST LINK V2 driver from the ST web site DociD025116 Rev 1 7 11 a Firmware package UM1660 2 2 1 2 2 2 8 11 Programming application To program application demonstration or example follow the sequence below Open the application folder Choose the desired IDE project Double click on the project file ex STM32F401 Discovery_Demo eww for EWARM Rebuild all files Project gt Rebuild all Load project image Project gt Debug 6 Run program Debug gt Go ak WN gt Please refer to Getting started with STM32F401 Discovery software development tools UM1
4. the board motion direction and speed When connected to a PC with a second USB type A micro B cable through CN5 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 on www st com stm32f4 discovery 5 Develop your own applications starting from the examples 3 DocID025116 Rev 1 9 11 Revision history UM1660 3 Revision history Table 1 Document revision history Date Revision Changes 11 Sep 2013 Initial release ky 10 11 DoclD025116 Rev 1 UM1660 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 All 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 granted under this document If any part of this document refers to any third party products or service
5. 671 for more details Run pre loaded demo To run and develop any firmware applications on your STM32F401 Discovery board the minimum requirements are as follows Windows PC XP Vista 7 USB type A to Mini B cable used to power the board through USB connector CN1 from host PC and connect to the embedded ST LINK V2 for debugging and programming Additional hardware accessories will be needed to run some applications USB type A to Micro B cable used to connect the board through USB connector CN5 as USB Device to host PC Establish the connection with the STM32F401 Discovery board as shown in Figure 5 Figure 5 Hardware environement a DoclD025116 Rev 1 UM1660 Firmware package The demonstration software is already preloaded in the Flash memory on the board The latest versions of the demonstration source code and associated documentation can be downloaded from www st com stm32f4 discovery Follow the sequence below to configure the STM32F401 Discovery board and launch the DISCOVER application 1 Ensure that the jumpers JP2 and CN3 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 indicate
6. DISCO is designed around the STM32F401xC microcontroller in a 100 pin LQFP package Figure 3 illustrates the connections between the STM32F401xC and its peripherals STLINK V2 pushbutton LED USB and connectors Please refer to Schematic Pack on www st com stm32f4 discovery for more details Figure 3 Hardware block diagram Mini USB Embedded ST LINK V2 SWD STM32F401VGT6 Header Header LEDs B2 LD3 LD8 RESET B1 MP45DT02 USER CS43L22 L3GD20 Mini Jack Micro USB LSM303DLHC MS31947V1 3 DoclD025116 Rev 1 UM1660 Firmware package 2 Firmware package To get started with the STM32F401 Discovery kit a firmware package that contains a set of IPs examples and demonstrations of some features are available on www st com stm32f4 discovery 2 1 Package description The STM32F401 Discovery firmware applications and related documentation are provided in one single package and supplied in one single ZIP file The extraction of the ZIP file generates one folder STM32F401 Discovery FW VX Y Z which contains the following subfolders Figure 4 Package contents Libraries folder e CMSIS subfolder Cortex M4 CMSIS files STM32F401 Discovery_FW_VXYZ l Hi hmes Libranes e STM32_USB_Device_library subfolder e STM32 USB HOST library subfolder
7. LE 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 ky DocID025116 Rev 1 11 11
8. e kit as a standalone ST LINK V2 with SWD connector for programming and debugging e Board power supply through USB bus or from an external 5 V supply voltage e External application power supply 3 V and 5 V e L3GD20 ST MEMS motion sensor 3 axis digital output gyroscope e LSM303DLHC ST MEMS system in package featuring a 3D digital linear acceleration sensor and a 3D digital magnetic sensor e MP45DT02 ST MEMS audio sensor omnidirectional digital microphone e CS43L22 audio DAC with integrated class D speaker driver e Eight LEDs LD1 red green for USB communication LD2 red for 3 3 V power on Four user LEDs LD3 orange LD4 green LD5 red and LD6 blue Two USB OTG LEDs LD7 green VBus and LD8 red over current e Two pushbuttons user and reset e USB OTG with micro AB connector e Extension header for LQFP100 I Os for a quick connection to the prototyping board and an easy probing STM32F401x microcontroller The STM32F401x device is based on the high performance ARM 32 bit Cortex M4 RISC core operating at a frequency of up to 84 MHz The Cortex M4 core features a floating point unit FPU single precision which supports all ARM single precision data processing instructions and data types It also implements a full set of DSP instructions and a memory protection unit MPU which enhances application security The STM32F401x device incorporates high speed embedded memories Flash memory up to 256 Kbytes
9. re configuration and layout a 4 1 1 AP PAA PA GA 4 1 2 STM32F401x microcontroller AA AG 4 1 3 System requirements 0 0 eee eee 5 1 4 Powering up the board Xa amag bh aah Van edhe eae eed ws oS ee eds 5 1 5 Reset the board 2s cb taw et bos Son teed bed eae KG ade ben reeves 6 1 6 Hardware block diagram 1 0 0 cece ee 6 2 Firmware package 00 0c cece eee ee eee eee eee eens 7 2 1 Package description aura haha waaa ami na Baa oh ee Oia ae toh way 7 2 2 Programming firmware application s aaaea aaa 7 2 2 1 Programming application aaua aeaaaee 8 2 2 2 Run pre loaded demo nananana 8 3 Revision hiStOry magada 8 PROBE EEETERD RT KAAGAD IRAD GLENN 10 2 11 DoclD025116 Rev 1 ky UM1660 List of figures List of figures Figure 1 STM32F401 Discovery board STM32F401C DISCO 0 0 ee 1 Figure 2 STM32F401C DISCO power sources 0 eae 5 Figure 3 Hardware block diagram ene 6 Figure 4 Package contents 0 0 ce ne ee ete enn 7 Figure 5 Hardware environement 0 000 eee eae 8 3 DocID025116 Rev 1 3 11 Hardware configuration and layout UM1660 1 1 1 2 4 11 Hardware configuration and layout Features The STM32F401 Discovery offers the following features e STM32F401VCT6 microcontroller featuring 256 KB of Flash memory 64 KB of RAM in an LQFP100 package e On board ST LINK V2 with selection mode switch to use th
10. s 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 A 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 ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS PRODUCTS FORMALLY ESCC QML OR JAN QUALIFIED ARE DEEMED SUITAB

Download Pdf Manuals

image

Related Search

Related Contents

Wireless Audio - Soundbar    DinionXF – LTC 0610 & LTC 0485 series cameras  Metra 99-7862 mounting kit  JVC XV-C3SL User's Manual  Infinity PS-12 Subwoofer  

Copyright © All rights reserved.
Failed to retrieve file