Home
STM32 M4 clicker User Manual
Contents
1.
2. EE mash 8 SS 5 a l VCC 3 3 VCC 5V Neo PB8 1004 NR PAO AN S AN own IR PBO PWM PB6 MESSI EAN A Ny HD2 I I EE e NSS E RX E SO PB14 MISO E o ae z PB10 SCL CN2 NPBISIMOSI 7 MOST un Ed 8 PBLUSDA SDA 1 2 TMS SWD 7 i 3 Moo aoli E 1007 Figure 1 2 omer STM32 M4 clicker schematic 500mA of current which is more than enough for the operation of all on board and additional modules When the board is powered up the power indication LED will be automatically turned on The USB connection can provide up to Connecting USB power supply through CN1 connector Figure 2 1 M A E 2 Power supply 3 3V VOLTAGE REGULATOR VCC 3 3 TN 1 VCC 3 3 CN1 VCC 3 3 VCC 5V FERRITE 3 4 R10 5 470 6 287K 4 8 4 PUR T us C5 9 OTT 100nF 10 HD2 1 Figure 2 2 Power supply schematic 3 STM32F415RG microcontroller The STM32 M4 clicker development tool comes with the STM32F415RG microcontroller This 32 bit high performance microcontroller is rich with on chip peripherals and features 1024KB of Flash and 192KB of SRAM It has integrated full speed USB 2 0 support SRAM 192 KB SRAM 4KB AHB BUs MATRIX GPIO PORT ABC Du A R M SDIOMMC Cortex yg ex TIM PWM 16 bit STM32F41 5RG 3x TIMER 16 bit Key microcontroller features Up to 168 MHz operation 32 bit ARMS Cortex M4 architecture
3. 1024KB of Flash memory 192KB SRAM 64 pin LOFP 3x 16 ch 12 bit ADC USB 2 0 UART RTC SPI 1C etc POWER RESET STM32F415RG microcontroller The microcontroller can be programmed in two ways o9 Using USB HID mikroBootloader Using external mikroProg for STM32 programrner Programming with mikroBootloader You can program the microcontroller with a step 1 Connecting STM32 M4 clicker bootloader which is preprogrammed by default To transfer hex file from a PC to MCU you need CB mikroBektronika USB HID Bootloader v2 3 0 0 bootloader software mikroBootloader USB HID mikroBootioater which can be downloaded from Wait for cT USB link e MCUType ka www mikroe com downloads get 2144 mikrobootloader_usb_hid_STM32F415RG zip Connect istory Window to MCU ach USB HID device or reset if attached After the mikroBootloader software is downloaded unzip it to desired location and Start it Choose Browse HEX file for HEX TIS I Start Begin mm pic18f47 j bootloader uploading WinRAR ZIP archive mikroBootloader USB HID STM32 M4 clicker File folder No files opened Software Windows File folder Figure 4 2 USB HID mikroBootloader window mikroBootloader USB HID v2 30 CE eu irure o To start connect the USB cable or if already connected press BS remeare the Reset button on your STM32 M4 clicker Click the Connect button
4. to MCU Attach USB HID device or reset if attached Waiting MCU response Connected Choose Browse Opened C ProjectlPIC dicker hex HEX file eae ee Start Begin bootloader uploading Bootloading progress bar Choose Browse 0 C N i 2 pened C Project PIC_cicker hex HEX file Pr for FEX Uploading Flash Erase Flash Write Start Stop bootloader uploading Bootloading progress bar C Project PIC_dicker hex F LED Blinking LedBlinking hex Figure 4 5 Begin uploading Figure 4 6 Progress bar To start HEX file bootloading click the 9 Progress bar enables you to monitor HEX file uploading Begin uploading button Page 12 step 5 Finish upload cp mikroElektronika USB HID Bootloader 0 CE mikroElektronika USB HID Bootloader 0 mi 0 00 0d er levice mi 0 00 0a er Wait for 1 ICU Tune Wait for e USB link w i USB link Connect Connect History Window Restarting MCU Connect to MCU ng to MCU Opened C Project PIC_cicker hex 8 Uploading Uploading program completed successfully Flash Erase Choose Browse Flash Write HEX file for HEX Completed successfully Disconnected Reset Start Jaa l maw ax Start Begin Reset device to reenter bootloader mode bootloader d bootloader uploading C ProjectPIC_dicker hex C Project PIC_dicker hex Figure 4 7 Restarting MCU Figure 4 8 mikroBootloader ready for next
5. IR RST PB5 PB1 INT CS PB12 E PC11 RX SCK PB13 PC10 TX MISO PB14 PB10 SCL MOSI PB15 PB11 SDA 3 3V 5V Eu RESET R6 mod mm fart far fl ma 8525 3 8 Pimms MLB Ri R8R9 n2 B 8 m fare 5 SE I ai 77 IS Wom LD1 PA1 LD2PA2 ggg C 571132 MHI clicker O Uu N L i HI CH Be gz 2 o EE E Su QU 9 gt IMeENSIONS 8 D 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 The manual PDF edition can be printed for private or local use but not for distribution Any modification of this manual is prohibited MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limited to the implied warranties or conditions of merchantability or fitness for a particular purpose MikroElektronika shall assume no responsibility or liability for any errors omissions and inaccuracies that may appear in this manual In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental o
6. connector d R8R9 pa KE E J 32 768 KHz crystal oscillator RTC battery pads Power indication LED Additional buttons Additional LEDs J MISO PB14 PB10 SCL MOSI PB15 PB11 SDA L CS PB12 K PC11 RX SCK PB13 RST PBS Zi LD1 PA1 LDA PA2 Fa YE ETE A cl STM32 M4 clicker is an amazingly compact starter development kit which brings the innovative mikroBUS socket to your favorite microcontroller It features STM32F415RG a 32 bit ARM Cortex M4 microcontroller two indication LEDs two general purpose buttons a reset button a USB Mini B connector and a single mikroBUS socket A JTAG connector and pads for interfacing with external electronics are provided as well The mikroBUS connector consists of two 1x8 female headers with SPI IC UART RST PWM Analog and Interrupt lines as well as 3 3V 5V and GND power lines STM32 M4 clicker board can be powered over a USB cable 3 3V VOLTAGE REGULATOR rhe eae VCC33 VERE 4K7 47 VCC 3 3 VCC 5V IH j 1 R10 2 470 3 287K LN Pwr 5 AP7331 AD VCC 5V A ge 55 CN1 220 FERRITE USB DET Rue uf E t 8 La P li USB D P 3 32 768KHz mE USED 4 5 22pF USB D P my 10 C4 1 U LE 100nF RST xi I SCHU 16MHz I PC1 T2 STM32F415RG 22pF LD2 5 PB15 MOS NPA2 LED2 li VCC3 3 FPBI4 MISO MISO a ED SES R6 ED SC ba 10K PA1 LED1 1 0 RST E 4K7 T3 IK NS VCC 3 3 LD1 rst B C8 Be e N
7. job 00 Click OK button after the uploading process is finished Press Reset button on STM32 M4 clicker board and wait for 5 seconds Your program will run automaticallv Page 13 Programming with mikroProg programmer ul seri H fi I I FTT ji Figure 4 9 mikroProg connector The microcontroller can be programmed with external mikroProg for STM32 programmer and mikroProg Suite for ARM software The external programmer is connected to the development system via 2x5 JTAG connector soldered on the CN2 connector pads Figure 4 9 mikroProg is a fast USB 2 0 programmer with hardware debugger support It supports STM32 M3 and M4 devices from STMicroelectronics Outstanding performance easy operation and elegant design are its key features Page 14 Oa mikroProg Ele About History Device Detect MCU HEX File Load Save Reload CODE Options Progress 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 The software has an intuitive interface and SingleClick programming technology To begin first locate the installation archive on the link bellow ka http www mikroe com downloads get 1809 mikroprog_suite_for_arm zip After
8. within 5s to enter the bootloader mode otherwise HID a eelere existing microcontroller program will execute Page 10 step 2 Browsing for HEX file step 3 Selecting HEX file CE mikroElektronika USB HID Bootloader 0 mikroBootloader E E Date modified Type 1 Libraries z Wait for e MCU Type 3 Documents IA a Music fig Pictures Connect History Window Bl Videos to MCU Attach USB HID device or reset if attached USB link Waiting MCU response Connected dj Homegroup Choose Browse HEX file for HEX illl Computer amp Local Disk C Start Begin cs Local Disk D 4 bootloader uploading File name PIC clicker hex Bootloading progress bar No files opened Figure 4 3 Browse for HEX Figure 4 4 Selecting HEX 9 Click the Browse for HEX button and from a o Select HEX file using open dialog window pop up window Figure 3 4 choose the HEX file 09 Click the Open button which will be uploaded to MCU memory Page 11 step 4 Uploading HEX file CH mikroElektronika USB HID Bootloader v2 3 0 0 El CH mikroElektronika USB HID Bootloader v2 3 0 0 O beh mikroBootioader Device STM32 M4 Clicker mikroBootloader Device STM32 M4 Clicker hard e MCU Type E MCUType Connect Disconnect History Window to MCU Attach USB HID device or reset if attached Waiting MCU response Connected Connect History Window
9. ED1 SEE j li E 47 16MHz STM32F415RG 22pF VCC 3 3 Ti VCC 3 3 VCC 3 3 R7 4K7 4K7 RST T3 1K d 851 T I PCO T1 Figure 5 2 Other modules connection schematic 6 RTC batter AN PAO STM32 M4 clicker features RTC battery pads for i 1 RST PB5 CS PB12 Bal PC11 RX powering microntroller s internal RTC module Battery battery pads SCHEBIS Conx i is used as an alternative source of power so the and jumper J1 MISO PB14 PB10 5CL RTC module can keep track of time while primary MOSI PB15 PB11 SDA source of power is OFF or unavailable In order to 3 3V use this option it is necessary to connect solder od external battery type CR2032 voltage range from 1 65 to 3 6 V and unsolder jumper J1 Figure 6 1 f leq WB Make sure that orientation of the battery is correct El i A LN TN RERO e g o B B G one LD1 PA1 LD2 PA2 511132 Rafe qO plus on VBAT and minus on GND pad otherwise it won t work properly VCC 3 3 C2 2 2UF 5 22pF 32 768KHz i C3 16MHz STM32F415RG x o ie ba pes ln ens m A VCC 3 3 Figure 6 2 RTC battery schematic 7 click boards are plug Up to now MikroElektronika has released more than 90 mikroBUS compatible click Boards On the average one click board is released per week It is our intention to provide you with as many add on boards as possible s
10. F sone 10e a x2 M 32 768KHz 22pF C4 22pF FEE STM32F415RG 22pF NOTE Before attaching the programming connector you VCC 3 3 have to solder the CN2 1 2 TMS SWD provided 2x5 male 3 GE header to the JTAG SD E INE CN2 pads Figure 4 13 mikroProg connection schematic 5 Buttons and LEDs urs am cil 4 EI uk Ene e Sr gazal 5vd tal XS SCHIER OVd NV 25 XU LLOd Root rak STESSO 95 0924 tL8d OSIIN 1 piro He G 2 d 6 lt NE 705 94 SLEd ISOW XL 0LOd ANI L8d WMd 08d 24212 Fam zens Figure 5 1 Two buttons two LEDs and a reset button The board also contains a 01 reset button and a pair of buttons and LEDs Each of these additional peripherals are located in the bottom area of the board Reset button is used to manually reset the microcontroller Pressing the reset button will generate a low voltage level on microcontroller s reset pin LEDs can be used for visual indication of the logic state on two pins RA0 and RA1 An active LED indicates that a logic high 1 is present on the pin Pressing any of these buttons can change the logic state of the microcontroller pins RD2 and RD3 from logic high 1 to logic low 0 VCC 3 3 LD2 KS KR LD1 T2 ZH Si PC1 T2 VCC 3 3 JIA C1 X2 d l SA 32 768KHz Le 5 i PA2 LED2 22pF a 407 D RB a N PA1 L
11. a ae qes ve gaco A compact starter kit with vour favorite microcontroller and a socket for click add on boards New ideas are just a click away DEVELOPMENT TOOLS I COMPILERS 1 BOOKS LEL ES 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 12 13 14 15 16 18 20 22 24 Table of contents step 4 Uploading HEX file Step 5 Finish upload Programming with mikroProg programmer mikroProg Suite for ARM software Programming with ST LINK V2 programmer 5 Buttons and LEDs 6 RTC battery 7 click boards are plug and play 8 Dimensions 0 om 00 10 10 11 11 1 What is STM32 M4 clicker 2 Power supply 3 STM32F415RG microcontroller Key microcontroller features 4 Programming the microcontroller Programming with mikroBootloader Step 1 Connecting STM32 M4 clicker step 2 Browsing for HEX file Step 3 Selecting HEX file 1 What is STM32 M4 clicker 64 pin STM32F415RG MCU Connection pads 16 MHz crystal oscillator mikroBUS socket ep dE T Sie RESET button mx USB Mini B connector 2 3 3V Voltage regulator x 2 PB1 INT PC10 TX AR 1 Sie 5 JTAG Programmer
12. downloading extract the package and double click the executable setup file to start installation Quick guide 01 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 make sure to load the target HEX file using the Load button Then click the Write button to begin programming Figure 4 10 mikroProg Suite If you want to write the HEX file into the microcontroller first Click the Erase button to clear the microcontroller memory for ARM window Page 15 In order to adjust the ST LINK V2 programmer The microcontroller can also to be connected to the development system it be programmed with the is necessary to provide the appropriate adapter ST LINK V2 programmer such as the mikroProg to ST LINK V2 adapter and mikroProg Suite for 2x5 male headers should be first soldered on ARM software Figure 5 1 the CN2 connector pads Then you should plug This programmer connects the adapter into the ST LINK V2 programmer with mikromedia board via 2x10 header and plug an IDC10 flat cable in mikroProg to ST LINK V2 headers Figure 4 12 adapter Figure 4 11 ST LINK Ve 2 P E HW R Ta 5 ie mikr V 1 00 oPro g Figure 4 12 Connecting ST LINK V2 programmer Figure 4 11 mikroProg to ST LINK V2 adaper VCC 3 3 C9 10 Cll Ci4 C15 C16 100nF 100nF toon
13. o you will be able to expand your development board with additional functionality Each board comes with a set of working example code Please visit the click boards webpage for the complete list of currently available boards www mikroe com click Y Y 3 A mt Figure 7 1 STM32 M4 clicker driving a GSM click board Page 22 USB SPI click z c1 i9 pa Des Sg CS 02047 Help Se z R2 lt ELS ve sr COMM I2C ADD ze CR m x w e xL LET kee LE You T SPI c E y cda click Pressure click E ei ii EE KS Te eren UK UK OR ROU ami H GO H H t LPl1AALS8 VEZLS Ol LpLADOD dI 993 EE SENSOR IC LE n LI NC oft eee E R Lan Sr LE T NV t Thunder click ub JAAHA RRN ctfi dlelelelelelele felelelelels NC RIA 8 GNO 8x8 Elclick FM click Bluetooth click Thunder click J V S n NI 30VW ADR SEL Haa olen SIE es E gt LE E NC coe ree e E P UTI 2 OUTPUT lO Level of En ETA ae CR AN ADC 33V 5V z Light click PWR IRA EEN Kl en 3V 5V click LI Dal GND THERMO click EEPROM click LightHz click verre gl sell uVro lick TE E zm C3 z dd REID BarGraph click seg click 25 4 1000 17 2 679 b EE E o NN Q mikro E AN PAO PBO PWM
14. r consequential damages including damages for loss of business profits and business information business interruption or any other pecuniary loss arising out of the use of this manual or product 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 6351 8051 click boards and mikromedia are trademarks of MikroElektronika All other trademarks mentioned herein are property of their respective companies All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe Copyright O 2014 MikroElektronika All Rights Reserved use If you want to learn more about our products please visit our web site 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 i i i STM32 M4 click do not hesitate to contact us at office mikroe com iim 0 100000 III 027011
Download Pdf Manuals
Related Search
Related Contents
Guide d`entretien et manuel d`installation User Manual - Accurate Technology, Inc. Use the Sleepform User Instructions and get the most out of Model One™ - Tivoli Audio UK User Guide Wegleitung Arbeitssicherheit EKAS Mode d`emploi du détournement (avec Gil J. Wolman) 取扱説明書 - 有限会社 図工 Copyright © All rights reserved.
Failed to retrieve file