ST STM3221G-EVAL User Manual
Hide thumbs Also See for STM3221G-EVAL:

Advertisement

Quick Links

UM1065
User manual
STM3221G-EVAL evaluation board
Introduction
The STM3221G-EVAL evaluation board is a complete demonstration and development
platform for the STM32F2 series and includes an embedded STM32F217IGH6 high-
®
performance ARM
Cortex™-M3 32-bit microcontroller with a cryptographic acceleration
cell.
The full range of hardware features on the board is provided to help you evaluate all
peripherals (USB OTG HS, USB OTG FS, ethernet, motor control, CAN, MicroSD Card™,
smartcard, USART, Audio DAC, RS-232, IrDA, SRAM, MEMS, EEPROM... etc.) and
develop your own applications. Extension headers make it possible to easily connect a
daughter board or wrapping board for your specific application.
The in-circuit ST-LINK tool can be easily used for JTAG and SWD interface debugging and
programming.
Figure 1.
STM3221G-EVAL evaluation board
October 2011
Doc ID 018640 Rev 4
1/65
www.st.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM3221G-EVAL and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST STM3221G-EVAL

  • Page 1 Extension headers make it possible to easily connect a daughter board or wrapping board for your specific application. The in-circuit ST-LINK tool can be easily used for JTAG and SWD interface debugging and programming. Figure 1.
  • Page 2: Table Of Contents

    Contents UM1065 Contents Overview ..........4 Features .
  • Page 3 STM3221G-EVAL pinout ........36...
  • Page 4: Overview

    Demonstration software is preloaded in the board's Flash memory for easy demonstration of the device peripherals in standalone mode. For more information and to download the latest version, please refer to STM3221G-EVAL demonstration software available on web: www.st.com/mcu. Order code To order the STM32F217IGH6 MCU evaluation board, use the order code STM3221G-EVAL.
  • Page 5: Delivery Recommendations

    UM1065 Overview Delivery recommendations Several verifications are needed before using the board for the first time to make sure that nothing has been damaged during shipment and no components are unplugged and lost. When the board is extracted from its plastic bag, please check that no component remains in the bag.
  • Page 6: Hardware Layout And Configuration

    Hardware layout and configuration UM1065 Hardware layout and configuration The STM3221G-EVAL evaluation board is designed around the STM32F217IGH6 microcontroller with a cryptographic acceleration cell in the UFBGA176 package. The hardware block diagram Figure 2 illustrates the connection between STM32F217IGH6 and...
  • Page 7 UM1065 Hardware layout and configuration Figure 2. Hardware layout and configuration Doc ID 018640 Rev 4 7/65...
  • Page 8 Hardware layout and configuration UM1065 Figure 3. STM3221G-EVAL evaluation board layout 8/65 Doc ID 018640 Rev 4...
  • Page 9: Power Supply

    Hardware layout and configuration Power supply The STM3221G-EVAL evaluation board is designed to be powered by 5 V DC power supply and to be protected by PolyZen from a wrong power plug-in event. It is possible to configure the evaluation board to use any of following five sources for the power supply:...
  • Page 10: Boot Option

    To connect Vbat to 3.3 V power, set JP19 as shown: (Default setting) Note: LED LD9 is lit when the STM3221G-EVAL evaluation board is powered by 5 V correctly. Boot option The STM3221G-EVAL evaluation board is able to boot from:...
  • Page 11: Clock Source

    X4, 25 MHz crystal with socket for STM32F217IGH6 microcontroller (it can be removed from socket when internal RC clock is used) Reset source The reset signal of STM3221G-EVAL evaluation board is low active and the reset sources include: Reset button B1...
  • Page 12: Eeprom

    JP24 Default setting: Not fitted. The STM3221G-EVAL evaluation board enables two channels of CAN2.0A/B compliant CAN bus communication based on a 3.3 V CAN transceiver on one DB9 connector (CN10). The two CAN buses can be disconnected by jumpers from the relevant STM32F217IGH6 I/Os which are shared with FSMC and USB OTG HS.
  • Page 13: Rs-232 And Irda

    Both RS-232 and IrDA communication is enabled by D-type 9-pin RS-232 connector (CN16) and IrDA transceiver U11 which are connected to USART3 of STM32F217IGH6 on the STM3221G-EVAL evaluation board. For ISP support, two signals are added on the RS-232 connector CN16:...
  • Page 14: Motor Control

    UM1065 Motor control The STM3221G-EVAL evaluation board enables a three-phase brushless motor control via a 34-pin connector (CN5), which provides all required control and feedback signals to and from the motor power-driving board. Available signals on this connector include emergency...
  • Page 15: Smartcard

    Hardware layout and configuration 2.10 Smartcard STMicroelectronics smartcard interface chip ST8024 is used on STM3221G-EVAL board for asynchronous 3 V and 5 V smartcards. It performs all supply protection and control functions based on the connections with STM32F217IGH6 listed in Table Table 8.
  • Page 16: Mems

    Hardware layout and configuration UM1065 2.12 MEMS A ST MEMS device LIS302DL is connected to I2C1 bus of STM32F217IGH6 on the board. 2.13 Potentiometer There is one 10 Kohm potentiometer RV1 connected to PF9 of STM32F217IGH6 on the board. 2.14 Two test points (TP3 AIN-) and (TP4 AIN+) are placed close to port PC1 of the MCU allowing precise measurements on ADC1, ADC2 or ADC3 channel 11.
  • Page 17: Ethernet

    Hardware layout and configuration 2.16 Ethernet The STM3221G-EVAL evaluation board enables 10/100M ethernet communication by a PHY DP83848CVV (U5) and integrated RJ45 connector (CN7). Both MII and RMII interface modes can be selected by setting jumpers JP5, JP6 and JP8 as listed below: Table 11.
  • Page 18: Usb Otg Hs

    5 V DC with a 500 mA current limitation. LED LD7 indicates that power switch (U4) is ON and the STM3221G-EVAL is working as a USB host or that VBUS is powered by another USB host when the STM3221G-EVAL is working as a USB device.
  • Page 19: Sram

    UM1065 Hardware layout and configuration Figure 4. Pin 1 camera plug The camera extension connector CN23 is available on the boards to connect the ST camera plug-in board. 2.19 SRAM The 16 Mbit SRAM is connected to FSMC bus of the STM32F217IGH6 which shares the same I/Os with CAN1 bus.
  • Page 20: Development And Debug Support

    2.20 Development and debug support Version 2 of the ST-LINK, called ST-LINK/V2, is embedded on the board. This tool allows onboard program loading and debugging of the STM32F using the JTAG or SWD interface. Third-party debug tools are also supported by the JTAG (CN14) or Trace (CN13) connectors.
  • Page 21: Display And Input Devices

    UM1065 Hardware layout and configuration 2.21 Display and input devices The 3.2” TFT color LCD connected to FSMC bus and 4 general purpose color LEDs (LD 1, 2, 3, 4) are available as display devices. A touchscreen connected to an I/O expander (U24), 4-direction joystick with selection key, general purpose button (B4), wakeup button (B2) and tamper detection button (B3) are available as input devices.
  • Page 22: Connectors

    Daughter board extension connectors CN1, 2, 3 and 4 Four male headers, CN1, 2, 3 and 4, can be used to connect with a daughterboard or standard wrapping board to STM3221G-EVAL evaluation board. A total number of 140 GPIOs are available on the board.
  • Page 23 UM1065 Connectors Table 17. Daughter board extension connector CN1 (continued) How to disconnect with function block on Description Alternative function STM3221G-EVAL board Trace_CLK Trace_D1 & FSMC_A20 Keep JP1 on 2<->3 Trace_D3 PC13 Anti-Tamper Remove R143 LED3 Remove R141 PI11 ULPI_DIR...
  • Page 24 Connectors UM1065 Table 18. Daughterboard extension connector CN2 (continued) How to disconnect with function block on Description Alternative Function STM3221G-EVAL board ULPI_D1 BOOT1 PF12 FSMC_A6 PF14 FSMC_A8 FSMC_A11 FSMC_D5 PE10 FSMC_D7 PE12 FSMC_D9 PE14 FSMC_D11 PE15 FSMC_D12 PB11 ULPI_D4 MII_RXD3...
  • Page 25 Connectors Table 18. Daughterboard extension connector CN2 (continued) How to disconnect with function block on Description Alternative Function STM3221G-EVAL board Remove camera module from CN15. PH10 DCMI_D1 &MC Disconnect motor control board from CN5. Remove camera module from CN15. PH11 DCMI_D2 &MC...
  • Page 26 Connectors UM1065 Table 19. Daughter board extension connector CN3 (continued) How to disconnect with function block on Description Alternative Function STM3221G-EVAL board EMU_5V IO_Expandor_INT Remove R136 I2S_CMD Remove camera module from CN15. PH14 DCMI_D4 & MC Disconnect motor control board from CN5.
  • Page 27 Table 20. Daughter board extension connector CN4 How to disconnect with function block on Description Alternative Function STM3221G-EVAL board Remove camera module from CN15. DCMI_D6 & MC Disconnect motor control board from CN5. Remove camera module from CN15. DCMI_D5 & MC...
  • Page 28: Motor Control Connector Cn5

    Connectors UM1065 Table 20. Daughter board extension connector CN4 How to disconnect with function block on Description Alternative Function STM3221G-EVAL board PG14 MII_TXD1 Remove RS6 PG13 MII_TXD0 Remove RS6 PG11 MII_TX_EN Remove RS6 FSMC_NE2 Remove R47 FSMC_NWAIT Remove R54 FSMC_NOE FSMC_D3 &...
  • Page 29: Microsd Connector Cn6

    UM1065 Connectors Table 21. Motor Control connector CN5 (continued) STM32F217IGH6 STM32F217IGH6 Description CN5 pin CN5 pin Description Phase A current Phase B current Phase C current NTC bypass relay Dissipative brake Heatsink +5V power temperature PFC SYNC PH10 and PH11 VDD_Micro PFC PWM PH12...
  • Page 30: Ethernet Rj45 Connector Cn7

    Connectors UM1065 Ethernet RJ45 connector CN7 Figure 7. Ethernet RJ45 connector CN7 Table 23. RJ45 connector CN7 Description Description number number TxData+ TxData- RxData+ Shield Shield RxData- Shield Shield USB OTG FS Micro-AB connector CN8 Figure 8. USB OTG FS Micro-AB connector CN8 Table 24.
  • Page 31: Usb Otg Hs Micro-Ab Connector Cn9

    Pin number Description Pin number Description 1,4,8,9 CANH 3,5,6 CANL Audio connector CN11 A 3.5 mm stereo audio jack CN11 is available on the STM3221G-EVAL board to support a headset (headphone & microphone integrated). Doc ID 018640 Rev 4 31/65...
  • Page 32: Trace Debugging Connector Cn13

    Connectors UM1065 Trace debugging connector CN13 Figure 11. Trace debugging connector CN13 Table 27. Trace debugging connector CN13 Pin number Description Pin number Description 3.3 V power TMS/PA13 TCK/PA14 TDO/PB3 TDI/PA15 RESET# TraceCLK/PE2 TraceD0/PE3 or SWO/PB3 TraceD1/PE4 or nTRST/PB4 TraceD2/PE5 TraceD3/PE6 3.10 JTAG debugging connector CN14...
  • Page 33: Camera Module Connector Cn15

    UM1065 Connectors Table 28. JTAG debugging connector CN14 Pin number Description Pin number Description PA14 RTCK RESET# DBGRQ DBGACK 3.11 Camera module connector CN15 Figure 13. Camera module connector CN15 Table 29. Camera module connector CN15 Pin number Description Pin number Description DGND XCLK1...
  • Page 34: Rs-232 Connector Cn16

    RS232_TX (PC10) Bootloader_RESET 3.13 Power connector CN18 The STM3221G-EVAL evaluation board can be powered from a 5 V DC power supply via the external power supply jack (CN18) shown in Figure 15. The central pin of CN18 must be positive.
  • Page 35: Smartcard Connector Cn20

    Card presence detection pin Card presence detection pin 3.16 ST-LINK/V2 connector CN21 The USB type B connector CN21 is for ST-LINK/V2 connected between the STM3221G-EVAL evaluation board and the PC for board debugging. Doc ID 018640 Rev 4 35/65...
  • Page 36: Camera Extension Connector Cn23

    DCMI_D2 DCMI_D3 DCMI_D4 DCMI_D5 DCMI_D6 DCMI_D7 HSYSC VSYSC PIXCLK +2V8 +2V8 3.18 STM3221G-EVAL pinout Table 33. STM3221G-EVAL pinout Pin no. Pin name Description TRACE_CLK / FSMC_A23 TRACE_D0 / FSMC_A19 TRACE_D1 / FSMC_A20 TRACE_D2 / FSMC_A21 TRACE_D3 / FSMC_A22 VBAT VBAT...
  • Page 37 UM1065 Connectors Table 33. STM3221G-EVAL pinout (continued) Pin no. Pin name Description PC14-OSC32_IN 32K_OSC PC15-OSC32_OUT 32K_OSC LED2 PI10 ETHER_RX_ER PI11 USB_HS_DIR VSS_13 VDD_13 FSMC_A0 FSMC_A1 FSMC_A2 FSMC_A3 FSMC_A4 FSMC_A5 VSS_5 VDD_5 SmartCard_OFF SmartCard_RESET LCD_CS POTENTIOMETER PF10 Audio_IN PH0 - OSC_IN...
  • Page 38 Connectors UM1065 Table 33. STM3221G-EVAL pinout (continued) Pin no. Pin name Description ETHER_COL USB_HS_NXT USB_FS_POWER_ON USB_HS_D0 BYPASS BYPASS VDD_4 Audio_DAC_OUT USB_HS_CK CAM_PIXCK ETHER_DV ETHER_RXD0 / MC_ADC12_14 pin 14 (Bus voltage) ETHER_RXD1 / MC_ADC12_15 pin 26 (Heatsink temperature) USB_HS_D1 USB_HS_D2 BOOT1 /...
  • Page 39 UM1065 Connectors Table 33. STM3221G-EVAL pinout (continued) Pin no. Pin name Description PE15 FSMC_D12 PB10 USB_HS_D3 PB11 ULPI_D4 VCAP1 VCAP / 1.2V VDD_1 ETHER_RXD2 ETHER_RXD3 CAM_HSYNC / MC_NTC_bypass CAM_D0 PH10 CAM_D1 / MC_TIM5_ETR pin 27 (PFC SYNC) PH11 CAM_D2 / MC_TIM3_CH2 pin 27 (PFCSYNC)
  • Page 40 Connectors UM1065 Table 33. STM3221G-EVAL pinout (continued) Pin no. Pin name Description VDD_9 SmartCard_IO / Audio_I2S_ MCK LED3 SDIO_D0/ MC_TIM3_CH3 pin23 (Dissipative Brake) SDIO_D1 I2S_CKIN USB_FS_VBUS PA10 USB_FS_ID PA11 USB_FS_DM PA12 USB_FS_DP PA13 JTAG_TMS VCAP2 VCAP / 1.2V VSS 2...
  • Page 41 UM1065 Connectors Table 33. STM3221G-EVAL pinout (continued) Pin no. Pin name Description VDD_10 FSMC_NWAIT FSMC_NE1 FSMC_NE2 PG10 FSMC_NE3 PG11 ETHER_TXEN PG12 SmartCard_CMDVCC PG13 ETHER_TXD0 PG14 ETHER_TXD1 VSS_11 VDD_11 PG15 USER_BUTTON JTAG_TDO JTAG_TRST CAN2_RX / ETHER_PPS_OUT / ULPI_D7 I2C1_SCL FSMC_NL BOOT0...
  • Page 42: Schematics

    Schematics UM1065 Schematics The following schematic diagrams are listed: Figure 17: STM3221G-EVAL on page 43 Figure 18: MCU on page 44 Figure 19: USB OTG HS on page 45 Figure 20: Camera on page 46 Figure 21: Ethernet on page 47...
  • Page 43: Figure 17: Stm3221G-Eval

    UM1065 Schematics Figure 17. STM3221G-EVAL Doc ID 018640 Rev 4 43/65...
  • Page 44: Figure 18: Mcu

    Schematics UM1065 Figure 18. MCU 44/65 Doc ID 018640 Rev 4...
  • Page 45: Figure 19: Usb Otg Hs

    UM1065 Schematics Figure 19. USB OTG HS Doc ID 018640 Rev 4 45/65...
  • Page 46: Figure 20: Camera

    Schematics UM1065 Figure 20. Camera 46/65 Doc ID 018640 Rev 4...
  • Page 47: Figure 21: Ethernet

    UM1065 Schematics Figure 21. Ethernet Doc ID 018640 Rev 4 47/65...
  • Page 48: Figure 22: Audio

    Schematics UM1065 Figure 22. Audio 48/65 Doc ID 018640 Rev 4...
  • Page 49: Figure 23: Usb Otg Fs

    UM1065 Schematics Figure 23. USB OTG FS Doc ID 018640 Rev 4 49/65...
  • Page 50: Figure 24: Sram

    Schematics UM1065 Figure 24. SRAM 50/65 Doc ID 018640 Rev 4...
  • Page 51: Figure 25: Lcd

    UM1065 Schematics Figure 25. LCD Doc ID 018640 Rev 4 51/65...
  • Page 52: Figure 26: Rs-232 And Irda

    Schematics UM1065 Figure 26. RS-232 and IrDA 52/65 Doc ID 018640 Rev 4...
  • Page 53: Figure 27: Can

    UM1065 Schematics Figure 27. CAN Doc ID 018640 Rev 4 53/65...
  • Page 54: Figure 28: I/O Peripherals

    Schematics UM1065 Figure 28. I/O peripherals 54/65 Doc ID 018640 Rev 4...
  • Page 55: Figure 29: I/O Expander

    UM1065 Schematics Figure 29. I/O expander Doc ID 018640 Rev 4 55/65...
  • Page 56: Figure 30: Microsd Card

    Schematics UM1065 Figure 30. MicroSD Card 56/65 Doc ID 018640 Rev 4...
  • Page 57: Figure 31: Motor Control

    UM1065 Schematics Figure 31. Motor control Doc ID 018640 Rev 4 57/65...
  • Page 58: Figure 32: Smartcard

    Schematics UM1065 Figure 32. Smartcard 58/65 Doc ID 018640 Rev 4...
  • Page 59: Figure 33: Jtag And Trace

    UM1065 Schematics Figure 33. JTAG and trace Doc ID 018640 Rev 4 59/65...
  • Page 60: Figure 34: Power

    Schematics UM1065 Figure 34. Power 60/65 Doc ID 018640 Rev 4...
  • Page 61: Figure 35: Usb_Otg_Fs

    UM1065 Schematics Figure 35. USB_OTG_FS Doc ID 018640 Rev 4 61/65...
  • Page 62: Figure 36: Stlink/V2

    Schematics UM1065 Figure 36. STLINK/V2 62/65 Doc ID 018640 Rev 4...
  • Page 63: Figure 37: 3.2" Lcd Module With Spi And 16-Bit Interface

    UM1065 Schematics Figure 37. 3.2” LCD module with SPI and 16-bit interface Doc ID 018640 Rev 4 63/65...
  • Page 64: Revision History

    Revision history UM1065 Revision history Table 34. Document revision history Date Revision Changes 15-Apr-2011 Initial release. 23-May-2011 Updated preliminary watermarks. Added Section 1.4: Delivery recommendations. 26-July-2011 Updated Section 2.16: Ethernet, Section 2.17: USB OTG HS Section 4: Schematics. Updated Table 1 JP4 description, Table 4 JP24 description and...
  • Page 65 No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.

Table of Contents