en.DM00285842.pdf - UM2052 User manual Getting started with STM32 MCU Discovery Kits software development tools Introduction The STM32 Discovery boards

en.DM00285842.pdf - UM2052 User manual Getting started with...

This preview shows page 1 - 6 out of 20 pages.

May 2016 DocID029205 Rev 1 1/19 1 UM2052 User manual Getting started with STM32 MCU Discovery Kits software development tools Introduction The STM32 Discovery boards are low-cost and easy-to-use development platforms used to quickly evaluate and start a development with an STM32 device. This document provides guidelines for beginners on STM32 MCU Discovery Kits on how to build and run a sample application and allows them to build and debug their application. It has the following structure: The first chapter presents software and hardware requirements (some toolchains supporting the STM32 families, ST-LINK/V2 installation and firmware package presentation). The second chapter provides a step by step guideline on how to build and debug an application using some toolchains: IAR Embedded Workbench ® for ARM ® (EWARM) by IAR systems ® Microcontroller Development Kit for ARM ® (MDK-ARM) by Keil ® TrueSTUDIO ® by Atollic ® System Workbench for STM32 (SW4STM32) by AC6 This manual does not cover all the topics relevant to software development environments, but it describes the first basic steps necessary to get started with the compilers and debuggers. It also offers links to the documents needed to fully understand every single step.
Image of page 1
Contents UM2052 2/19 DocID029205 Rev 1 Contents 1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1 IDEs supporting STM32 families . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2 ST-LINK/V2 installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3 Firmware package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2 Executing and debugging firmware using the software toolchains . . . 9 2.1 EWARM toolchain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2 MDK-ARM toolchain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 2.3 TrueSTUDIO toolchain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.4 SW4STM32 toolchain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Image of page 2
DocID029205 Rev 1 3/19 UM2052 List of tables 3 List of tables Table 1. Most used integrated development environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Table 2. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Image of page 3
List of figures UM2052 4/19 DocID029205 Rev 1 List of figures Figure 1. Hardware environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Figure 2. Firmware package content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Figure 3. IAR embedded workbench IDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 4. EWARM project successfully compiled. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 5. Download and Debug button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 6. IAR embedded workbench debugger screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 7. Go button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 8. uVision5 IDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 9. MDK-ARM project successfully compiled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 10. Start/Stop debug session button. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 11. MDK-ARM debugger screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 12. Run button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 13. TrueSTUDIO workspace launcher dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 14. Atollic TrueSTUDIO import source select dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 15. Atollic TrueSTUDIO import projects dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 16. TrueSTUDIO project successfully compiled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 17. TrueSTUDIO debug window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 18. SW4STM32 workspace launcher dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Figure 19. SW4STM32 import source select dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Figure 20. SW4STM32 import projects dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Figure 21. SW4STM32 project successfully compiled. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Figure 22. SW4STM32 debug window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Image of page 4
DocID029205 Rev 1 5/19 UM2052 System requirements 19 1 System requirements Before running the application, the user must: 1. Install the preferred Integrated Development Environment (IDE) 2. The ST-LINK/V2 driver is installed automatically. In case of problem, the user can
Image of page 5
Image of page 6

You've reached the end of your free preview.

Want to read all 20 pages?

  • Spring '17
  • kk

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture