background image

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, so 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:

10. click

 boards are plug and play!

Figure 10-1: 

clicker 2 for STM32 

driving click

 boards

Page 29

 www.mikroe.com/click

Содержание CLICKER 2 STM32

Страница 1: ...A compact starter kit with your favorite microcontroller and two mikroBUS sockets ...

Страница 2: ... 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 The PIC and Windows logos and product names are trademarks of Microchip Technology and Microsoft in the U S A and other countries TO OUR VALUED CUSTOMERS Nebojsa Matic General Manager ...

Страница 3: ...cker 2 for STM32 11 step 2 Browsing for HEX file 12 step 3 Selecting HEX file 12 step 4 Uploading HEX file 13 step 5 Finish upload 14 3 2 Programming with mikroProg programmer 15 mikroProg Suite for ARM software 16 3 3 Programming with ST LINK V2 programmer 17 4 Buttons and LEDs 19 5 Power management and battery charger 21 6 Oscillators 22 7 USB connection 24 8 Pads 26 9 Pinout 27 9 1 mikroBUS pin...

Страница 4: ...two general purpose buttons a reset button an on off switch a li polymer battery connector a USB Mini B connector and two mikroBUS socket A JTAG connector and a 2x26 pinout for interfacing with external electronics are also provided The mikroBUS connector consists of two 1x8 female headers with SPI I2 C UART RST PWM Analog and Interrupt lines as well as 3 3V 5V and GND power lines Clicker 2 for ST...

Страница 5: ...or 5 32 768 KHz crystal oscillator 6 2x26 connection pads 7 mikroBUS sockets 1 and 2 8 Pushbuttons 9 Additional LEDs 10 LTC3586 USB power manager IC 11 Indication LEDs 12 RESET button 13 USB mini B connector 14 STM32F407VGT6 15 Battery connector 16 JTAG programmer connector 12 13 14 6 7 8 9 15 16 1 2 3 4 5 6 7 8 9 11 10 Key features ...

Страница 6: ...SPI2_SCK PB14 SPI2_MISO PB15 SPI2_MOSI PD8 UART3_TX PD9 UART3_RX PB10 I2C2_SCL PB11 I2C2_SDA PE11 MB2_CS PE14 MB2_INT PE13 MB2_RST PD12 MB2 PWM PA3 MB2_AN PC5 VSENSE R14 100K R12 100K VCC BAT R13 100K C13 100nF M1 DMP2305U R10 1M R11 1K VCC BAT PB12 SENSEL PC5 VSENSE PE10 MB1_INT AN RST CS SCK MISO MOSI 3 3V GND PWM INT RX TX SCL SDA 5V GND VCC 3 3V VCC 5V 1 PC10 SPI3_SCK PC11 SPI3_MISO PC12 SPI3_...

Страница 7: ...he presence of power supply You can also power the board using a Li Polymer battery via on board battery connector On board battery charger circuit enables you to charge the battery over USB connection LED diode RED will indicate when battery is charging Charging current is 300mA and charging voltage is 4 2V DC Battery power supply USB power supply Figure 1 1 Connecting USB power supply Figure 1 2...

Страница 8: ...HRG 30 GATE 31 BAT 32 EN4 33 VOUT 34 VBUS 35 VBUS 36 SW 37 FAULT 38 LTC3586 U2 LTC3586 L1 3 3uH L2 2 2uH M2 DMP2305U R15 2K2 C22 22uF C31 22uF VCC USB VCC USB C32 10uF VCC 3 3V C23 10pF R21 15K C24 300pF R19 324K R22 105K C14 22uF C21 33pF VCC 3 3V VCC 3 3V VCC 3 3V C19 2 2uF VSYS VSYS L3 2 2uH VSYS R27 16K9 C29 10pF C30 22uF VCC 5V VCC 5V VCC 5V VCC 5V R18 3K3 R26 88K7 C25 100nF R23 2K94 LD4B RED...

Страница 9: ...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 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 Key microcontroller features 16 bit and 32 bit...

Страница 10: ...oBootloader Using external mikroProg for STM32 programmer Using external ST LINK V2 programmer Figure 3 1 STM32F407VGT6 microcontroller The microcontroller can be programmed in three ways 3 Programming the microcontroller Page 10 ...

Страница 11: ...eset button on your clicker 2 for STM32 Click the Connect button within 5s to enter the bootloader mode otherwise existing microcontroller program will execute After the mikroBootloader software is downloaded unzip it to desired location and start it www mikroe com downloads get 2153 mikrobootloader_usb_hid_STM32F407VGT6 zip clicker 2 for STM32 Bootloader WinRAR ZIP archive clicker 2 for STM32 Boo...

Страница 12: ...ile Figure 3 3 Browse for HEX Figure 3 4 Selecting HEX 01 01 02 01 01 02 Click the Browse for HEX button and from a pop up window Figure 3 4 choose the HEX file which will be uploaded to MCU memory Select HEX file using open dialog window Click the Open button ...

Страница 13: ...3 step 4 Uploading HEX file Figure 3 5 Begin uploading Figure 3 6 Progress bar 01 01 01 01 To start HEX file bootloading click the Begin uploading button Progress bar enables you to monitor HEX file uploading ...

Страница 14: ... 3 7 Restarting MCU Figure 3 8 mikroBootloader ready for next job 01 01 02 Click OK button after the uploading process is finished Press Reset button on clicker 2 for STM32 board and wait for 5 seconds Your program will run automatically ...

Страница 15: ...pment system via 2x5 JTAG connector soldered on the CN3 connector pads Figure 3 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 3 2 Programming with mikroProg programmer Figure 3 9 mikroProg connector Page 15 ...

Страница 16: ...tractthepackageanddoubleclicktheexecutablesetupfile tostartinstallation Figure 3 10 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...

Страница 17: ...ure 3 11 mikroProg to ST LINK V2 adaper Page 17 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 2x5 headers should be first soldered on the CN3 connector pads Then you should plug the adapter into the ST LINK V2 programmer 2x10 header and plug an IDC10 flat cable in...

Страница 18: ... 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 AVCC OSC32_OUT X1 C5 22pF C6 22pF OSC_IN OSC_OUT X2 32 768KHz C34 10pF C33 10pF OSC32_IN C7 2 2uF R33 100K VCC 3 3 TDO TCK TMS TDI RESET 6 8 10 9 7 5 1 2 3 4 CN3 TRST JTAG TCK TMS TDO TDI RESET TRST C9 100nF C10 100nF ...

Страница 19: ...rates a low voltage levelonthemicrocontroller s reset pin LEDs can be used for visual indication of the logic state on two pins PE12 and PE15 An active LED indicates that a logic high 1 is present on the pin Pressing any of the two buttons can change the logic state of the microcontroller pins PE0 and PA10 from logic high 1 to logic low 0 In addition to the onboard ON OFF switch two pads EXT and P...

Страница 20: ...D 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 VCC 3 3V AVCC OSC32_OUT X1 C5 22pF C6 22pF OSC_IN OSC_OUT X2 32 768KHz C34 10pF C33 10pF OSC32_IN LDO3V3 ...

Страница 21: ...h manager When you solder the onboard zero ohm J1 jumper to the LDO position Figure 6 1 the LTC 3586 2 will provide an independent steady power supply to the MCUs RTC from the li polymer battery or USB even when the rest of the system is turned off or reset LTC 3586 also enables battery charging over a USB connection Figure 5 1 zero ohm J1 jumper Figure 5 2 power management and battery charger IC ...

Страница 22: ...ntroller is 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 an additional 25MHz crystal oscillator as well as a 32 768kHz one which provides an external clock for the internal RTCC module ...

Страница 23: ...A2 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 VCC 3 3V AVCC OSC32_OUT X1 C5 22pF C6 22pF OSC_IN OSC_OUT X2 32 768KHz C34 10pF C33 10pF OSC32_IN LDO3V3 J1 VCC 3 3V R7 100K C4 2 2uF C7 2 2uF R33 100K 3V3 25MHz C9 100nF ...

Страница 24: ...enables you to implement USB communication functionality to your clicker 2 board Connection with target USB host is done over a Mini B USB connector which is positioned next to the battery connector 7 USB connection Figure 7 1 Connecting USB cable to clicker 2 Page 24 ...

Страница 25: ...P 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 VCC 3 3V AVCC OSC32_OUT OSC_IN OSC_OUT OSC32_IN USB D_P USB D_N R29 R30 LDO3V3 J1A VCC 3 3V R7 100K C4 2 2uF C7 2 2uF R33 100K 3V3 USB DET C26 10nF FP2 FERRITE R24 100 1 2 3 4 5 GND...

Страница 26: ... 100K C4 2 2uF C7 2 2uF R33 100K RESET 3V3 PE2 GPIO PE3 GPIO PE4 GPIO PE6 GPIO PC8 GPIO PD15 GPIO PD14 GPIO PD13 GPIO PD11 GPIO PD10 GPIO PD3 INT PD2 INT PD1 INT PD0 INT PC13 GPIO PE1 GPIO PB7 GPIO PC3 AN PC2 AN PC1 AN PC0 AN PA4 AN PC4 AN PB1 AN P C9 100nF C10 100nF C11 100nF VCC 3 3V VCC 3 3V VCC 3 3V C12 100nF 3V3 C35 100nF VCC 3 3V C36 100nF VCC 3 3V C37 100nF VCC 3 3V C38 100nF VCC 3 3V VCC 3...

Страница 27: ... PB1 PE5 PA4 PB0 PC4 PA5 PD3 PA6 PD1 PA7 PD2 PE1 PD0 PE2 PC8 PE3 PD15 PE4 PD14 PE6 PD13 PB6 PB7 PB5 PC7 PD7 PD11 PC13 PD10 PA1 PB13 PA0 PB14 PB10 PB15 PB11 3 3V 3 3V 3 3V power supply GND GND Reference Ground Pin functions Pin functions Digital I O lines SPI2 Lines Interrupt Lines Analog Lines RX TX SCK SCL SDI SDA SDO UART4 Lines I2 C2 Lines PWM lines Digital I O lines 3 3V power supply Reference...

Страница 28: ...ional connection pad clicker 2 for STM32 utilizes all of the STM32F407VGT6 s I Os Each of the three UART outputs has its own separate connection pin either on mikroBUS 1 or 2 or on the 2x26 connection pad Of the two SPI lines one is routed to mikroBUS 1 the other is shared between mikroBUS 2 and the pins on the connection pad Same goes for the two available I2 C lines Figure 9 1 mikroBUS individua...

Страница 29: ...th as many add on boards as possible so 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 10 click boards are plug and play Figure 10 1 clicker 2 for STM32 driving click boards Page 29 www mikroe com click ...

Страница 30: ...Page 30 Relay click Gyro click LightHz click 7seg click Bluetooth2 click EEPROM click THERMO click RFid click Thunder click Pressure click 8x8 click FM click BarGraph click USB SPI click ...

Страница 31: ...Page 31 11 Dimensions ...

Страница 32: ...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...

Страница 33: ...e 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 ver 1 00 clicker 2 for STM32 manual 0 100000 027103 ...

Страница 34: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Mikroe MIKROE 1685 ...

Отзывы: