mikroProg mikroProg™ is a fast USB programmer with hardware debugger support. Smart engineering allows mikroProg™ to support all STM32® ARM® Cortex™-M3 and Cortex™-M4 microcontrollers in a single programmer.
TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and for having confidence in MikroElektronika. The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs. Nebojsa Matic General Manager The STM32®, ARM® and Windows® logos and product names are trademarks of STMicroelectronics®, ARM® Holdings and Microsoft® in the U.S.A. and other countries.
Table of Contents Introduction to mikroProg™ 4 4. Connecting with a target device 12 Key features 5 5. Connector Pinout 13 1. D river installation 6 6. mikroProg™ to 20-pin JTAG connector 14 step 1 – Start installation 7 7. Connection schematics examples 16 step 2 – Accept EULA 7 64-pin STM32® schematic 17 step 3 – Installing the drivers 8 100-pin STM32® schematic 18 step 4 – Finish installation 8 144-pin STM32® schematic 20 9 176-pin STM32® schematic 21 2.
Introduction to mikroProg™ mikroProg™ for STM32® is a fast programmer and hardware debugger. Smart engineering allows mikroProg™ to support all STM32® ARM® Cortex™-M3 and Cortex™-M4 devices in a single programmer! Outstanding performance, easy operation, elegant design and low price are it’s top features. It is supported in mikroElektronika, as well as in other ARM® compilers.
Key features - Hardware Debugging - No need for firmware update - New microcontrollers supported via latest version of mikroProg Suite™ for ARM® software 01 02 03 04 05 What you see 06 01 Flat cable 02 USB MINIB connector 03 DATA transfer indication LED 04 ACTIVE indication LED 05 LINK indication LED 06 POWER indication LED Page 5
1. Driver installation On-board mikroProg™ requires drivers in order to work. Drivers can be found on the link bellow: http://www.mikroe.com/downloads/get/2053/mikroprog_suite_for_arm_drivers.zip When you download the drivers, please extract files from the ZIP archive. Folder with extracted files contains folders with drivers for different operating systems. Depending on which operating system you use, choose adequate folder and open it.
step 1 – Start installation step 2 – Accept EULA 02 01 01 03 In welcome screen click the Next> button 02 Click Change button to select new destination folder or use the suggested installation path 03 Click the Next> button Page 7
step 3 – Installing the drivers step 4 – Finish installation 04 05 05 Click the Finish button to end installation process 04 Drivers are installed automatically Page 8
2. Connecting to a PC After driver installation is complete, you can connect the programmer with your PC using USB cable provided with the package. Green POWER LED should turn ON, indicating the presence of power supply. Amber-colored LINK LED will turn ON when link between mikroProg™ for STM32® and PC is established. Link can be established only when correct drivers are installed on your PC.
3. mikroProg Suite™ for ARM® software mikroProg™ for STM32® programmer requires special programming software called mikroProg Suite™ for ARM®. This software is used for programming all of STM32® ARM® Cortex™-M3 and Cortex™-M4 microcontroller families. It features intuitive interface and SingleClick™ programming technology. Software installation is available on following link: http://www.mikroe.com/downloads/get/1809/mikroprog_suite_for_arm.
Software installation wizard 01 Start Installation 02 Accept EULA and continue 03 Install for All users or Current user 04 Choose destination folder 05 Installation in progress 06 Finish installation Page 11
4. Connecting with a target device Figure 4-1: IDC10 JTAG connector For connection with a target device mikroProg™ uses IDC10 JTAG connector, as shown on Figure 4-1. In order to make proper connection with the target board it is necessary to pay attention to IDC10 connector pinout. Every pin has a different purpose and for easy orientation IDC10 connector is marked with a little knob and incision between pins number 9 and 7, Figure 5-1.
5. Connector Pinout 01 VCC-3.
6. mikroProg™ to 20-pin JTAG connector Figure 6-1: mikroProg™ to ST-LINK V2 adaper In order to connect mikroProg to 20-pin male JTAG connector it is necessary to use appropriate adapter, such as the mikroProg™ to ST-LINK V2 adaper, Figure 6-1. This adapter should be first placed on 2x10 male connector. Then you should plug in the mikroProg™ into 2x5 male header, Figure 6-2.
VCC-3.3V TRST TDI TMS TCK TDO RESET# VCC-3.3V 1 3 5 7 9 11 13 15 17 19 HD1 2 4 6 8 10 12 14 16 18 20 VCC-3.3V GND GND GND ST- Link V2 VCC-3.
7. Connection schematics examples Following examples demonstrate connections with some of the most popular supported microcontrollers. Each one is carefully selected as a representative of the entire family. All MCUs use TMS, TCK, TDO, TDI, TRST, #RESET lines for JTAG programming or SWDIO, SWCLK for SWD (Serial Wire Debug) programming. These lines are located on same microcontroller pins within a family.
VCC- 3.3 PA2 PA1 PA0 VDDA GNDA PC3 PC2 PC1 PC0 NRST OSC_OUT OSC_IN PC15/OSC32_OUT PC14/OSC32_IN PC13 VBAT 64pin TQFP STM32F10x STM32L15x 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 C1 22pF C2 22pF X1 25MHz X2 32.768KHz C3 22pF C4 22pF 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 TRST TMS/SWDIO TCK/ SWCLK TDO TDI RESET# PB12 PB13 PB14 PB15 PC6 PC7 PC8 PC9 PA8 PA9 PA10 PA11 PA12 PA13 GND VDD PA14 PA15 PC10 PC11 PC12 PD2 PB3 PB4 PB5 PB6 PB7 BOOT0 PB8 PB9 GND VDD VCC- 3.
100K 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 VCC- 3.
C1 2.2uF R2 100K 100pin TQFP STM32F20x STM32F40x PA2 PA1 PA0-WKUP VDDA VREF+ GNDA VDD PC3 PC2 PC1 PC0 NRST OSC_OUT OSC_IN VDD GND PC15/OSC32_OUT PC14/OSC32_IN PC13/TAMPER_RTC VBAT PE6 PE5 PE4 PE3 PE2 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 C3 22pF C4 22pF X1 25MHz X2 32.
C1 2.
C1 2.2uF R2 100K 176pin TQFP STM32F20x STM32F40x PH3 PH2 PA2 PA1 PA0 VDDA VREF+ GNDA VDD PC3 PC2 PC1 PC0 NRST OSC_OUT OSC_IN PF10 PF9 PF8 PF7 PF6 VDD GND PF5 PF4 PF3 PF2 PF1 PF0 VDD GND PI11 PI10 PI9 PC15/OSC32_OUT PC14/OSC32_IN PC13 PI8 VBAT PE6 PE5 PE4 PE3 PE2 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 C3 22pF C4 22pF X1 25MHz X2 32.
Notes: Page 22
DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika.
If you want to learn more about our products, please visit our website at www.mikroe.com If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/support/ If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com mikroProg for STM32® Manual ver. 1.