mikromedia for STM32 ™ ® Compact multimedia development system rich with on-board peripherals for all-round development on STM32F207VGT6 and STM32F407VGT6 devices
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 mikromedia for STM32® 4 Programming with mikroProg™ programmer 18 Package Contains 5 mikroProg Suite™ for ARM® Software 19 Key Features 6 Programming with ST-LINK V2 programmer 20 7 4. Reset buttons 22 System Specification 1. Power supply USB power supply Battery power supply 8 5. Oscillators 24 8 6. MicroSD Card Slot 25 8 7. Touch Screen 26 10 8. Audio Module 28 STM32F207VGT6 10 9. USB connection 30 STM32F407VGT6 11 10.
Introduction to mikromedia for STM32® The mikromedia for STM32® is a compact development system with lots of on-board peripherals which allow development of devices with multimedia contents. The central part of the system is a 32-bit STM32F207VGT6 or STM32F407VGT6 microcontroller. The mikromedia for STM32® features integrated modules such as stereo MP3 codec, TFT 320x240 touch screen display, accelerometer, USB connector, MMC/SD card slot, 8 Mbit flash memory, 2x26 connection pads and other.
Package Contains 20122011 www.mikroe.com Copyright ©2011 Mikroelektronika. All rights reserved. Mikroelektronika, Mikroelektronika logo and other Mikroelektronika trademarks are the property of Mikroelektronika. All other tradmarks are the property of their respective owners. Unauthorised copying, hiring, renting, public performance and broadcasting of this DVD prohibited.
Key Features 01 Connection Pads 02 TFT 320x240 display 03 USB MINI-B connector 04 Charge indication LED 05 LI-Polymer battery connector 06 3.
04 03 05 System Specification 06 power supply 07 Via USB cable (5V DC) power consumption 09 08 46.5 mA with erased MCU 10 (when on-board modules are inactive) board dimensions 11 81.2 x 60.5 mm (3.19 x 2.38 inch) 12 weight ~45 g (0.
1. Power supply USB power supply Figure 1-1: Connecting USB power supply You can apply power supply to the board using MINI-B USB cable provided with the board. On-board voltage regulators provide the appropriate voltage levels to each component on the board. Power LED (GREEN) will indicate the presence of power supply. Battery power supply You can also power the board using Li-Polymer battery, via on-board battery connector.
VCC-SYS AVCC VCC-3.3 DATA BUS FP4 C36 2.2uF VCC-USB DMP2160UW M1 C25 100nF + - CN1 BATT CONN VREF-1.8 C30 2.2uF E10 VCC-1.8 VCC-1.8 2.2uF FP3 R34 4K7 1 2 3 C34 100nF 10uF U3 Vout Vin GND EN ADJ R47 120K 5 4 AP7331-ADJ R46 22K R50 12K1 VCC-3.3 R35 10K VCC-1.8 C29 R49 4K7 HDR1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 M1X26 USB MINIB VCC-3.3 R6 4K7 VCC-SYS VBUS DD+ ID GND R43 10K VCC-BAT VCC-3.
2. Key microcontrollers features JTAG & SW EXT. MEM. CO NTR ETH. MAC 10 /100 FLASH 1MB DMA 2 SRAM 112K B DMA 1 GPIO PORT (A,B,C,D,E,F,G ,H,I) - 128 + 4 Kbytes of SRAM; - 83 I/O pins; - SPI, I2C, CAN, USB, Ethernet; 3 x TIM/PW M 16-bit 3 x TIMER 16 -bit 1 x USART 1 x SPI - USART, UART - 16-bit and 32-bit Timers, up to 120Mhz; - Internal Oscillator 16MHz, 32kHz, PLL; temperature sensor 3 x ADC - ADC, DAC, etc.
DMA 2 - 83 I/O pins; GPIO PORT (A,B,C,D,E,F,G ,H,I) - SPI, I2C, CAN, USB, Ethernet; 1 x SPI - USART, UART - 16-bit and 32-bit Timers, up to 168Mhz; - Internal Oscillator 16MHz, 32kHz, PLL; temperature sensor 3 x ADC - ADC, DAC, etc. Page 11 Cortex™-M 4 STM32F407 VGT6 POWER / RE SET WWDG 3 x TIMER 16 -bit 2 x DAC USB OTG HS IWDG RTC z 3 x TIM/PW M 16-bit 1 x USART MATRIX ARM SDIO/MMC 3 x TIMER 16 -bit USB OTG FS SRAM 16KB AHB BUS - RNG CAM.
3.
The microcontroller can be programmed in three ways: 01 Via USB mikroBootloader 02 Using external mikroProg™ programmer 03 Using external ST-LINK V2™ programmer The mikromedia for STM32® development system can be programmed in three different ways. 01 Using bootloader which is pre-programmed into device by default or via external programmers ( 02 mikroProg™ or 03 ST-LINK V2™) .
Programming with mikroBootloader step 1 – Connecting mikromedia You can program the microcontroller with bootloader which is pre-programmed into the device by default. To transfer .HEX file from a PC to MCU you need bootloader software (mikroBootloader USB HID) which can be downloaded from: 01 http://www.mikroe.com/eng/products/view/853/ mikromedia-for-stm32/ 02 After software is downloaded unzip it to desired location and start mikroBootloader USB HID software.
step 2 – Browsing for .HEX file step 3 – Selecting .HEX file 01 01 01 Figure 3-4: Browse for HEX Figure 3-5: Selecting HEX 01 Click the ”Browse for HEX” button and from a pop-up window (Figure 3.5) choose the .HEX file which will be uploaded to MCU memory. 01 Select .HEX file using open dialog window. 02 Click the ”Open” button.
step 4 – Uploading .HEX file 01 01 Figure 3-6: Begin uploading Figure 3-7: Progress bar 01 To start .HEX file bootloading click the ”Begin uploading” button. 01 You can monitor .
step 5 – Finish upload 01 Figure 3-9: mikroBootloader ready for next job Figure 3-8: Restarting MCU 01 Click the ”OK” button after uploading is finished and wait for 5 seconds. Board will automatically reset and your new program will execute.
Programming with mikroProg™ programmer The microcontroller can be programmed with external mikroProg™ for STM32® programmer and mikroProg Suite™ for ARM® software. The mikroProg™ programmer is connected to the development system via the CN5 (JTAG) connector. You can choose between two ways to program microcontrollers , Figure 3-14: 01 Via JTAG interface 02 Via Serial wire debug (SWD) interface Figure 3-10: Connecting mikroProg™ to mikromedia™ mikroProg™ is a fast USB 2.
mikroProg Suite™ for ARM® Software On-board mikroProg™ programmer requires special programming software called mikroProg Suite™ for ARM®. This software is used for programming of all supported microcontroller families with ARM® Cortex™-M3 and Cortex™-M4 cores. Software has intuitive interface and SingleClick™ programming technology. To begin, first locate the installation archive on the Product DVD: 20122011 www.mikroe.com Av ai lab Copyright ©2011 Mikroelektronika. All rights reserved.
Programming with ST-LINK V2 programmer The microcontroller can be also programmed with ST-LINK V2 programmer and mikroProg Suite™ for ARM® software, Figure 3-11 . This programmer connects with mikromedia board via mikroProg to ST-LINK V2 adapter. Figure 3-12: mikroProg™ to ST-LINK™ V2 adaper In order to adjust the ST-LINK™ V2 programmer to be connected to the development system, it is necessary to provide the appropriate adapter such as the mikroProg to ST-LINK V2 adapter.
VCC-3.3 TRST C41 CN5 1 3 5 7 9 2 TMS/ SWDIO 4 TCK/ SWCLK 6 TDO TDI 8 RESET# 10 2.2uF VCC-3.3 R65 AVCC 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 JTAG (SWD) E8 C5 C6 10uF 100nF 100nF VCC-3.3 VCC-3.3 VCC-3.3 C7 C8 C31 100nF 100nF 100nF TMS/SWDIO C42 2.
4. Reset Buttons Board is equipped with two reset buttons. First is located at the back side of the board (Figure 4-1), and second one is at the top of the front side (Figure 4-2). If you want to reset the circuit, press either of two buttons. It will generate low voltage level on microcontroller reset pin (input). In addition, a reset can be externally provided through pin 27 on side headers (Figure 4-3).
VCC-3.3 C41 VCC-3.3 2.
5. Oscillators STM32F207VGT6 and STM32F407VGT6 microcontrollers are equipped with internal 16MHz RC oscillator that provides stable clock signal. Since the chips have an integrated PLL, this base frequency is suitable for further clock multiplication. Board also contains 32.768kHz Crystal oscillator (X1) which provides external clock for internal RTCC module. C41 2.2uF VCC-3.
6. MicroSD Card Slot Board contains microSD card slot for using microSD cards in your projects. It enables you to store large amounts of data externally, thus saving microcontroller memory. MicroSD cards use Serial Peripheral Interface (SPI) for communication with the microcontroller. C41 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3 2.2uF VCC-3.
7. Touch Screen The development system features a TFT 320x240 display covered with a resistive touch panel. Together they form a functional unit called a touch screen. It enables data to be entered and displayed at the same time. The TFT display is capable of showing data in 262.144 different colors.
R65 VCC-3.3 LCD-XL LCD-YD LCD-RS PMWR PMRD LCD-BLED LCD-RST T-D7 2.2uF LCD-CS# VCC-SYS VCC-3.3 C41 VCC-3.
8. Audio Module Figure 8-1: On-board VS1053 MP3 codec Figure 8-2: Inserting 3.5mm headphones jack The mikromedia for STM32® features stereo audio codec VS1053. This module enables audio reproduction by using stereo headphones connected to the system via a 3.5mm connector CN2. All functions of this module are controlled by the microcontroller over Serial Peripheral Interface (SPI).
2.2uF VCC-3.3 VCC-3.3 R65 AVCC 100K C12 C23 C24 C26 C27 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF VREF-1.8 J3 13 14 15 16 17 18 19 20 21 22 23 24 MP3-CS# C19 22pF XDCS/BSYNC IOVDD1 VC0 DGND1 XTAL0 XTAL1 IOVDD2 DGND2 DGND3 DGND4 XCS CVDD2 VS1053 GPIO5 RX TX SCLK SI SO CVDD3 XTEST GPIO0 GPIO1 GND GPIO4 12.288MHz C20 22pF C6 C7 C8 C31 10uF 100nF 100nF 100nF 100nF 100nF R20 10K decoupling capacitors VCC-3.
9. USB connection STM32F207VGT6 and STM32F407VGT6 microcontrollers have integrated USB module, which enables you to implement USB communication functionality to your mikromedia board. Connection with target USB host is done over MINI-B USB connector which is positioned next to the battery connector.
C41 2.2uF VCC-3.3 R65 AVCC 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 100K C42 2.
10. Accelerometer On board ADXL345 accelerometer is used to measure acceleration in three axis: x, y and z. The acceleromer’s function is defined by the user in the program loaded into the microcontroller. Communication between the accelerometer and the microcontroller is performed via the I2C interface. 2.2uF VCC-3.
11. Flash Memory C41 2.2uF VCC-3.
PA3 PC5 PC4 PA7 PA6 PA5 PA4 2.2uF R65 PE14 PE13 C41 SDA2-PB11 SCL2-PB10 12. Pads VCC-3.3 RX TX SCL SDA U1 PB12 SCK2-PB13 MISO2-PB14 MOSI2-PB15 PD8 PD9 PD10 PD11 PD12 PD13 PD14 PA8 PA10 VCC-3.3 C42 2.
13. Pinout System power supply Reference Ground Analog Lines Interrupt Lines Digital I/O lines SCK SDI SPI Lines SDO 3.3V power supply Reference Ground VSYS GND PA1 PA2 PA3 PA4 PA5 PA6 PC0 PC1 PC2 PC3 PC4 PC5 PB10 PB11 PB12 PB13 PB14 PB15 PD0 PC10 PC11 PC12 3.3V GND RST GND L R PA7 PA8 PA10 PD14 PB5 PD1 PD2 PD4 PD8 PD9 PD10 PD11 PD12 PD13 PE13 PE14 PD6 PD5 PB6 PB7 3.3V GND Reset pin Reference Ground left ch. audio out right ch. PWM lines Digital I/O lines RX TX UART Lines SCL I2C Lines SDA 3.
14. Dimensions 81.15 mm (3195 mils) 73.66 mm (2900 mils) 36.58 mm (1440 mils) 2.03 mm (80 mils) 7.62 mm (300 mils) 55.88 mm (2200 mils) 60.45 mm (2380 mils) 8.89 mm (350 mils) 63.5 mm (2500 mils) 2.54 mm (100 mils) Page 36 2.
15. Mikromedia accessories We have prepared a set of extension boards pin-compatible with your mikromedia, which enable you to easily expand your board basic functionality. We call them mikromedia shields. But we also offer other accessories, such as Li-polymer battery, stacking headers, wire jumpers and more.
What’s next? You have now completed the journey through each and every feature of mikromedia for STM32® board. You got to know it’s modules and organization. Now you are ready to start using your new board. We are suggesting several steps which are probably the best way to begin. We invite you to join the users of mikromedia™ brand. You will find very useful projects and tutorials and can get help from a large ecosystem of users.
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/esupport If you have any questions, comments or business proposals, mikromedia for STM32® M3/M4 Manual ver. 1.00 do not hesitate to contact us at office@mikroe.