background image

Page 11

STM32F407VGT6

- 1.25 DMIPS/MHz, 32-bit Cortex

-M4 Core;

- 1 MB flash memory;

- 192 + 4 KB of SRAM;

- 83 I/O pins;

- SPI, I2C, CAN, USB, Ethernet;

- USART, UART;

- 16-bit and 32-bit Timers, up to 168Mhz;

- Internal Oscillator 16MHz, 32kHz, PLL;

- ADC, DAC, etc.

APB2 84MHz

3 x ADC

temperature sensor

1 x SPI

1 x USART

3 x TIMER 16-bit

3 x TIM/PWM 16-bit

SDIO/MMC

2 x CAN

3 x I2C 

2 x SPI

2 x UART

2 x USART

5 x TIMER 16-bit

2 x TIMER 32-bit

APB1 42MHz

2 x DAC

3 x TIMER 16-bit

WWDG

RTC

IWDG

SRAM  176 KB

FLASH 1MB

EXT. MEM. CONTR

DMA 2

ETH. MAC 10/100

JTAG & SW

USB OTG FS

CAM. INTERFACE

RNG

DMA 1

SRAM  16KB

USB OTG HS

AHB BUS - MATRIX

POWER / RESET

GPIO PORT

(A,B,C,D,E,F,G,H,I)

ARM

 

Cortex™-M4

STM32F407VGT6 

The mikromedia for STM32

®

 M4 development system comes 

with the STM32F407VGT6 microcontroller, which can deliver 
even more processing power. With up to 168MHz operation, 
this  32-bit microcontroller with other on-board modules is a 
perfect choice for performance-demanding applications.

Summary of Contents for mikromedia Series

Page 1: ...Compact multimedia development system rich with on board peripherals for all round development on STM32F207VGT6 and STM32F407VGT6 devices for STM32 mikromedia ...

Page 2: ...any is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs 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 TO OUR VALUED CUSTOMERS Nebojsa Matic General Manager ...

Page 3: ...onnecting mikromedia 14 step 2 Browsing for hex file 15 step 3 Selecting hex file 15 step 4 Uploading hex file 16 step 5 Finish upload 17 Programming with mikroProg programmer 18 mikroProg Suite for ARM software 19 Programming with ST LINK V2 programmer 20 4 Reset button 22 5 Oscillators 24 6 MicroSD card slot 26 7 Touch screen 28 8 Audio module 30 9 USB connection 32 10 Accelerometer 34 11 Flash ...

Page 4: ...troller 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 It comes pre programmed with USB bootloader but can also be programmed with external programmers such as mikroProg for STM32 or ST LINK Mikromedia is compact and slim and perfectly fits in ...

Page 5: ...PD11 PB12 PD12 PB13 PD13 PB14 PE13 PB15 PE14 PD0 PD6 PC10 PD5 PC11 PB6 PC12 PB7 3 3V 3 3V 3 3V power supply GND GND Reference Ground Pin functions Pin functions audio out Digital I O lines SPI Lines Interrupt Lines Analog Lines RX TX SCK SCL SDI SDA SDO UART Lines I2 C Lines PWM lines Digital I O lines 3 3V power supply Reference Ground 01 Damage resistant protective box 04 USB cable headers and S...

Page 6: ...ay USB MINI B connector Charge indication LED LI Polymer battery connector 3 5mm headphone connector Power supply regulator Crystal oscillator VS1053 Stereo mp3 coder decoder STM32F207VGT6 or STM32F407VGT6 microcontroller Accelerometer Serial flash memory microSD card slot Power indication LED JTAG SWD programmer connector ...

Page 7: ...U when on board modules are inactive CAUTION Electrostatic sensitive device Permanent damage may occur on devices subjected to high energy electrostatic discharges which readily accumulate on the human body or test equipment and can discharge without detection class B product Product complies with the Class B limit of EN 55022 and can be used in the domestic residential commercial and industrial e...

Page 8: ...the presence of power supply YoucanalsopowertheboardusingaLi Polymer battery via on board battery connector On board battery charger circuit MCP73832 enables you to charge the battery over a USB connection LED diode RED will indicate when the battery is charging Charging current is 250mA and charging voltage is 4 2V DC Battery power supply USB power supply Figure 1 1 Connecting USB power supply Fi...

Page 9: ...T VDD PROG U5 MCP73832 Q4 BC846 Q5 BC846 C28 10nF FP2 FERRITE 1 2 3 4 5 GND ID D D VBUS CN3 USB MINIB VCC USB C29 2 2uF VCC 3 3 R46 22K E10 10uF R47 120K VCC 1 8 VCC 1 8 R50 12K1 1 2 3 5 4 Vin GND EN ADJ Vout U3 AP7331 ADJ DATA BUS LD2 CHARGE LD1 POWER VCC BAT 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 HDR1 M1X26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46...

Page 10: ...CAN 3 x I2C 2 x SPI 2 x UART 2 x USART 5 x TIMER 16 bit 2 x TIMER 32 bit A P B 1 3 0 M H z 2 x DAC 3 x TIMER 16 bit WWDG RTC IWDG SRAM 112KB FLASH 1MB EXT MEM CONTR DMA 2 ETH MAC 10 100 JTAG SW USB OTG FS CAM INTERFACE RNG DMA 1 SRAM 16KB USB OTG HS AHB BUS MATRIX POWER RESET GPIO PORT A B C D E F G H I ARM Cortex M3 STM32F207VGT6 The mikromedia for STM32 M3 development system comes with the STM32...

Page 11: ...RT 5 x TIMER 16 bit 2 x TIMER 32 bit A P B 1 4 2 M H z 2 x DAC 3 x TIMER 16 bit WWDG RTC IWDG SRAM 176 KB FLASH 1MB EXT MEM CONTR DMA 2 ETH MAC 10 100 JTAG SW USB OTG FS CAM INTERFACE RNG DMA 1 SRAM 16KB USB OTG HS AHB BUS MATRIX POWER RESET GPIO PORT A B C D E F G H I ARM Cortex M4 STM32F407VGT6 The mikromedia for STM32 M4 development system comes with the STM32F407VGT6 microcontroller which can ...

Page 12: ...3 Programming the microcontroller Figure 3 1 STM32F207VGT6 Microcontroller Figure 3 2 STM32F407VGT6 Microcontroller Page 12 ...

Page 13: ...g programmer 03 Using external ST LINK V2 programmer The mikromedia for STM32 development system can be programmed in three different ways 01 Using the bootloader which is preprogrammed into the device by default or via external programmers 02 mikroProg or 03 ST LINK V2 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ...

Page 14: ...nter the bootloader mode otherwise existing microcontroller program will execute You can program the microcontroller with bootloader which is preprogrammed 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 Upon download unzip it to desired location and start the mikroBootloader application www mikroe c...

Page 15: ...g HEX 01 01 01 step 3 Selecting HEX file step 2 Browsing for HEX file 01 01 02 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 Select HEX file using open dialog window Click Open ...

Page 16: ...6 Figure 3 6 Begin uploading Figure 3 7 Progress bar 01 01 step 4 Uploading HEX file 01 01 To start HEX file bootloading click the Begin uploading button Progress bar enables you to monitor HEX file uploading ...

Page 17: ...3 8 Restarting MCU Figure 3 9 mikroBootloader ready for next job 01 step 5 Finish upload 01 Click OK after uploading is finished and wait for 5 seconds Board will automatically reset and your new program will execute ...

Page 18: ...ming with mikroProg programmer mikroProg is a fast USB 2 0 programmer with mikroICD hardware In Circuit Debugger It supports over 180 ARM Cortex M3 and Cortex M4 microcontrollers from STM32 family Outstanding performance easy operation and elegant design are its key features Figure 3 10 Connecting mikroProg to mikromedia 01 02 Via JTAG interface Via Serial wire debug SWD interface Before attaching...

Page 19: ...tractthepackageanddoubleclicktheexecutablesetupfile tostartinstallation Figure 3 11 mikroProg Suite for ARM window Quick guide Click the Detect MCU button in order to recognize the device ID Click the Read button to read the entire microcontroller memory You can click the Save button to save it to the target HEX file If you want to write the HEX file into the microcontroller first make sure to loa...

Page 20: ...djust 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 2x5 male headers should be first soldered on the CN5 connector pads Then you should plug the adapter into the ST LINK V2 programmer 2x10 header and plug an IDC10 flat cable in headers Figure 3 13 Figure 3 13 Connecting ST LINK V2 p...

Page 21: ...3 PE12 PB13 PB14 PB15 PD8 PE14 PE15 PB5 PB4 PB3 PB7 PD7 PD6 PE5 PE4 PE1 PE0 PB9 PB8 BOOT0 PB6 OSC_IN PA0 WKUP VDDA VREF GNDA VDD PC3 PA12 PA11 PB12 PC8 NRST VDD GND PE7 PDR_ON RFU VDD PE2 PE3 PA2 PA1 VCAP VDD PC9 PD13 PB10 PB11 PD10 PE8 PB2 PD11 PD14 PD5 PC2 PC1 PC0 PB1 PE9 PD12 PC7 OSC_OUT PC15 OSC32_OUT PD15 PC6 PA13 PC10 PA14 VCAP GND VDD PA15 PC11 PC12 PD0 PA6 PA5 PC4 PA7 PC5 PB0 GND VDD PA3 P...

Page 22: ...ill generate a 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 4 Reset button Figure 4 2 Frontal reset button Figure 4 1 Location of additional reset button You can also solder additional reset button on the appropriate place at the back side of the board Figure 4 1 NOTE ...

Page 23: ...E6 VBAT PC13 TAMPER_RTC PC14 OSC32_IN PA10 PA9 PA8 PD9 PE13 PE12 PB13 PB14 PB15 PD8 PE14 PE15 PB5 PB4 PB3 PB7 PD7 PD6 PE5 PE4 PE1 PE0 PB9 PB8 BOOT0 PB6 OSC_IN PA0 WKUP VDDA VREF GNDA VDD PC3 PA12 PA11 PB12 PC8 NRST VDD GND PE7 PDR_ON RFU VDD PE2 PE3 PA2 PA1 VCAP VDD PC9 PD13 PB10 PB11 PD10 PE8 PB2 PD11 PD14 PD5 PC2 PC1 PC0 PB1 PE9 PD12 PC7 OSC_OUT PC15 OSC32_OUT PD15 PC6 PA13 PC10 PA14 VCAP GND VD...

Page 24: ...llers are equipped with an internal 16MHz RC oscillator that provides a stable clock signal Since the chips have an integrated PLL this base frequency is suitable for further clock multiplication Board also contains a 32 768kHz Crystal oscillator X1 which provides an external clock for internal RTCC module ...

Page 25: ...B6 OSC_IN PA0 WKUP VDDA VREF GNDA VDD PC3 PA12 PA11 PB12 PC8 NRST VDD GND PE7 PDR_ON RFU VDD PE2 PE3 PA2 PA1 VCAP VDD PC9 PD13 PB10 PB11 PD10 PE8 PB2 PD11 PD14 PD5 PC2 PC1 PC0 PB1 PE9 PD12 PC7 OSC_OUT PC15 OSC32_OUT PD15 PC6 PA13 PC10 PA14 VCAP GND VDD PA15 PC11 PC12 PD0 PA6 PA5 PC4 PA7 PC5 PB0 GND VDD PA3 PA4 PD1 PD2 PD3 PD4 U1 OSC32_IN OSC32_OUT VREF 1 8 R65 100K C41 2 2uF C42 2 2uF R66 100K dec...

Page 26: ...a 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 ...

Page 27: ...RTC PC14 OSC32_IN PA10 PA9 PA8 PD9 PE13 PE12 PB13 PB14 PB15 PD8 PE14 PE15 PB5 PB4 PB3 PB7 PD7 PD6 PE5 PE4 PE1 PE0 PB9 PB8 BOOT0 PB6 OSC_IN PA0 WKUP VDDA VREF GNDA VDD PC3 PA12 PA11 PB12 PC8 NRST VDD GND PE7 PDR_ON RFU VDD PE2 PE3 PA2 PA1 VCAP VDD PC9 PD13 PB10 PB11 PD10 PE8 PB2 PD11 PD14 PD5 PC2 PC1 PC0 PB1 PE9 PD12 PC7 OSC_OUT PC15 OSC32_OUT PD15 PC6 PA13 PC10 PA14 VCAP GND VDD PA15 PC11 PC12 PD0...

Page 28: ...red 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 graphics in 262 144 diffe rent colors 7 Touch screen Figure 7 1 Touch Screen ...

Page 29: ...2 32 4 3 7 7 24 23 18 17 16 15 14 13 5 6 7 8 10 7 8 1 2 22 21 20 19 38 39 40 41 47 31 26 25 7 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 10 PE11 PE10 PE6 VBAT PC13 TAMPER_RTC PC14 OSC32_IN PA10 PA9 PA8 PD9 PE13 PE12 PB13 PB14 PB15 PD8 PE14 PE15 PB5 PB4 PB3 PB7 PD7 PD6 PE5 PE4 PE1 PE0 PB9 PB8 BOOT0 PB6 OSC_IN PA0 WKUP VDDA VREF GNDA VDD PC3 PA12 PA11 PB12 PC8 NRST VDD GND PE7 PDR_ON RFU VDD PE2 PE3 PA2 ...

Page 30: ...ia for STM32 features a 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 ...

Page 31: ... AGND2 AGND3 LN2 LEFT RCAP AVDD1 GBUF RIGHT VS1053 U2 VCC 1 8 VCC 3 3 MP3 CS MP3 RST VCC 3 3 AVCC MP3 DCS MP3 DCS MP3 RST MP3 DREQ MP3 CS MISO3 PC11 SCK3 PC10 MOSI3 PC12 30 29 28 27 34 33 46 36 35 42 43 44 45 37 50 9 48 49 11 12 32 4 3 7 7 24 23 18 17 16 15 14 13 5 6 7 8 10 7 8 1 2 22 21 20 19 38 39 40 41 47 31 26 25 7 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 10 PE11 PE10 PE6 VBAT PC13 TAMPER_RTC PC1...

Page 32: ...dule which enables you to implement USB communication functionality to your mikromedia board Connection with target USB host is done over a Mini B USB connector which is positioned next to the battery connector 9 USB connection Figure 9 1 Connecting USB cable to programming connector ...

Page 33: ...B13 PB14 PB15 PD8 PE14 PE15 PB5 PB4 PB3 PB7 PD7 PD6 PE5 PE4 PE1 PE0 PB9 PB8 BOOT0 PB6 OSC_IN PA0 WKUP VDDA VREF GNDA VDD PC3 PA12 PA11 PB12 PC8 NRST VDD GND PE7 PDR_ON RFU VDD PE2 PE3 PA2 PA1 VCAP VDD PC9 PD13 PB10 PB11 PD10 PE8 PB2 PD11 PD14 PD5 PC2 PC1 PC0 PB1 PE9 PD12 PC7 OSC_OUT PC15 OSC32_OUT PD15 PC6 PA13 PC10 PA14 VCAP GND VDD PA15 PC11 PC12 PD0 PA6 PA5 PC4 PA7 PC5 PB0 GND VDD PA3 PA4 PD1 P...

Page 34: ...ess 1 position by default Figure 10 1 Accelerometer module 10 Accelerometer On board ADXL345 accelerometer is used to measure acceleration in three axes 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 ...

Page 35: ...9 9 9 9 10 PE11 PE10 PE6 VBAT PC13 TAMPER_RTC PC14 OSC32_IN PA10 PA9 PA8 PD9 PE13 PE12 PB13 PB14 PB15 PD8 PE14 PE15 PB5 PB4 PB3 PB7 PD7 PD6 PE5 PE4 PE1 PE0 PB9 PB8 BOOT0 PB6 OSC_IN PA0 WKUP VDDA VREF GNDA VDD PC3 PA12 PA11 PB12 PC8 NRST VDD GND PE7 PDR_ON RFU VDD PE2 PE3 PA2 PA1 VCAP VDD PC9 PD13 PB10 PB11 PD10 PE8 PB2 PD11 PD14 PD5 PC2 PC1 PC0 PB1 PE9 PD12 PC7 OSC_OUT PC15 OSC32_OUT PD15 PC6 PA13...

Page 36: ...ary to provide additional memory space to be used for storing more data The flash memory module enables the microcontroller to use additional 8Mbit flash memory It is connected to the microcontroller via the Serial Peripheral Interface SPI Figure 11 1 Flash memory module 11 Flash memory ...

Page 37: ...0 PA9 PA8 PD9 PE13 PE12 PB13 PB14 PB15 PD8 PE14 PE15 PB5 PB4 PB3 PB7 PD7 PD6 PE5 PE4 PE1 PE0 PB9 PB8 BOOT0 PB6 OSC_IN PA0 WKUP VDDA VREF GNDA VDD PC3 PA12 PA11 PB12 PC8 NRST VDD GND PE7 PDR_ON RFU VDD PE2 PE3 PA2 PA1 VCAP VDD PC9 PD13 PB10 PB11 PD10 PE8 PB2 PD11 PD14 PD5 PC2 PC1 PC0 PB1 PE9 PD12 PC7 OSC_OUT PC15 OSC32_OUT PD15 PC6 PA13 PC10 PA14 VCAP GND VDD PA15 PC11 PC12 PD0 PA6 PA5 PC4 PA7 PC5 ...

Page 38: ...1 8 PD0 PA7 PA8 PA10 PD14 PC1 PC2 PC3 PC4 PC5 SCL2 PB10 SDA2 PB11 PB12 SCK2 PB13 MISO2 PB14 MOSI2 PB15 PB5 PD1 PD2 PD4 PD8 PD9 PD10 PD11 PD12 PD13 R65 100K C41 2 2uF C42 2 2uF R66 100K RST RX TX SCK SDI SDO SDA SCL AN INT PWM 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 HDR1 M1X26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 HDR2 M1X26 VCC 3...

Page 39: ...5 PA10 PA6 PD14 PC0 PB5 PC1 PD1 PC2 PD2 PC3 PD4 PC4 PD8 PC5 PD9 PB10 PD10 PB11 PD11 PB12 PD12 PB13 PD13 PB14 PE13 PB15 PE14 PD0 PD6 PC10 PD5 PC11 PB6 PC12 PB7 3 3V 3 3V 3 3V power supply GND GND Reference Ground Pin functions Pin functions audio out Digital I O lines SPI lines Interrupt lines Analog lines RX TX SCK SCL SDI SDA SDO UART lines I2 C lines PWM lines Digital I O lines 3 3V power supply...

Page 40: ...73 66 mm 81 15 mm 63 5 mm 2 67 mm 2 54 mm 36 58 mm 55 88 mm 60 45 mm 2 03 mm 3195 mils 2900 mils 2380 mils 2200 mils 2500 mils 1440 mils 105 mils 100 mils 80 mils 8 89 mm 350 mils 7 62 mm 300 mils 14 Dimensions ...

Page 41: ...le you to easily expand your board s basic functional ity We call them mikromedia shields But we also offer other accessories such as a Li poly mer battery stacking headers wire jumpers and more 04 01 05 06 07 02 03 Gaming shield Connect shield Li Polimer battery Wire jumpers Stacking headers BatteryBoost shield PROTO shield ...

Page 42: ...d the journey through each and every feature of mikromedia for STM32 You got to know its 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 Find useful projects and tutorials on the Libstock website www libstock com Join our Forum www mikroe com forum and get help from a large ecosystem of users You stil...

Page 43: ...ct even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice if necessary TRADEMARKS The MikroElektronika name and logo mikroC mikroBasic mikroPascal Visual TFT Visual GLCD mikroProg Ready MINI mikroBUS EasyPIC EasyAVR Easy8051 click boardsandmikromedia aretrademar...

Page 44: ...eriencing 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 ver 1 00d mikromedia for STM32 M3 M4 manual 0 100000 027240 ...

Page 45: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information MikroElektronika MIKROE 1101 MIKROE 1102 MIKROE 1397 MIKROE 1398 MIKROE 1575 ...

Reviews: