You are on page 1of 67

UM1461

User manual
STM3240G-EVAL evaluation board

Introduction
The STM3240G-EVAL evaluation board is a complete demonstration and development
platform for the STM32F4 Series and includes an embedded STM32F407IGH6 high-
performance ARM®Cortex®-M4F 32-bit microcontroller.
The full range of hardware features provided on the board is described to evaluate all
peripherals (USB-OTG HS, USB-OTG FS, Ethernet, motor control, CAN, microSD™ card,
smartcard, USART, Audio DAC, RS-232, IrDA up to version C07 of the board, SRAM,
ST MEMS, EEPROM etc.) before developing applications. Extension headers are used to
easily connect a daughterboard or a wrapping board for any specific application.
The in-circuit ST-LINK/V2 tool provides easy JTAG and SWD interface debugging and
programming.

Figure 1. STM3240G-EVAL evaluation board

1. Picture is not contractual

October 2016 DocID022138 Rev 5 1/67


www.st.com 1
Contents UM1461

Contents

1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.4 Delivery recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7


2.1 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 Boot option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
2.3 Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4 Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5 Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.6 EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.7 CAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.8 RS-232 and IrDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.9 Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.10 Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.11 microSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.12 ST MEMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.13 Potentiometer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.14 ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.15 USB-OTG FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.16 Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.17 USB-OTG HS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.18 Camera module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.19 SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.20 Development and debug support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.21 Display and input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

3 Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.1 Daughterboard extension connectors CN1, 2, 3 and 4 . . . . . . . . . . . . . . 23

2/67 DocID022138 Rev 5


UM1461 Contents

3.2 Motor control connector CN5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30


3.3 microSD connector CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.4 Ethernet RJ45 connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.5 USB-OTG FS Micro-AB connector CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.6 USB-OTG HS Micro-AB connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.7 CAN D-type 9-pin male connectors CN10 (CAN1 or CAN2) . . . . . . . . . . 33
3.8 Audio connector CN11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.9 Trace debugging connector CN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.10 JTAG debugging connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.11 Camera module connector CN15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.12 RS-232 connector CN16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.13 Power connector CN18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.14 TFT LCD connector CN19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.15 Smartcard connector CN20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.16 ST-LINK/V2 connector CN21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.17 Camera extension connector CN23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.18 STM3240G-EVAL pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Appendix A Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

DocID022138 Rev 5 3/67


67
List of tables UM1461

List of tables

Table 1. Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7


Table 2. Power related jumpers and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 3. Boot related jumpers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 4. Audio related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 5. EEPROM related jumper and solder bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 6. CAN-related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 7. RS-232 and IrDA related jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 8. Motor control solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 9. Connection between ST8024 and STM32F407IGH6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 10. Smartcard related jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 11. microSD card related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 12. Ethernet related jumpers and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 13. microSD card related jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 14. Camera module related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 15. SRAM related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 16. Third-party toolchain support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 17. LCD modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 18. Daughterboard extension connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 19. Daughterboard extension connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 20. Daughterboard extension connector CN3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 21. Daughterboard extension connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Table 22. Motor control connector CN5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Table 23. microSD connector CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Table 24. RJ45 connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Table 25. USB-OTG FS Micro-AB connector CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Table 26. USB-OTG HS Micro-AB connector CN9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Table 27. CAN D-type 9-pin male connector CN10 (CAN1 or CAN2) . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 28. Trace debugging connector CN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 29. JTAG debugging connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 30. Camera module connector CN15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 31. RS-232 connector CN16 with ISP support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Table 32. Smartcard connector CN20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Table 33. Camera extension connector CN23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table 34. STM3240G-EVAL pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table 35. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

4/67 DocID022138 Rev 5


UM1461 List of figures

List of figures

Figure 1. STM3240G-EVAL evaluation board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1


Figure 2. Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 3. STM3240G-EVAL evaluation board layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 4. Pin 1 camera plug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 5. Motor control connector CN5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 6. microSD connector CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 7. Ethernet RJ45 connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 8. USB-OTG FS Micro-AB connector CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 9. USB-OTG HS Micro-AB connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 10. CAN D-type 9-pin male connector CN10 (CAN1 or CAN2) . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 11. Trace debugging connector CN13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 12. JTAG debugging connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 13. Camera module connector CN15 (front view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 14. RS-232 connector CN16 with ISP support (front view). . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 15. Power supply connector CN18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 16. Smartcard connector CN20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 17. STM3240G-EVAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 18. MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 19. USB-OTG HS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 20. Camera . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Figure 21. Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 22. Audio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Figure 23. USB-OTG FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 24. SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 25. LCD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Figure 26. RS-232 and IrDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Figure 27. CAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Figure 28. I/O peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Figure 29. I/O expander . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Figure 30. microSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Figure 31. Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Figure 32. Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Figure 33. JTAG and Trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Figure 34. Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Figure 35. Extension connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Figure 36. STLINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Figure 37. 3.2” LCD module with SPI and 16-bit interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

DocID022138 Rev 5 5/67


67
Overview UM1461

1 Overview

1.1 Features
• STM32F407IGH6 microcontroller.
• 16 Mbit SRAM
• 1 Gbyte or more microSD card
• Boot from user Flash, system memory or SRAM
• Both ISO/IEC 14443 type A and B smartcard support
• I2C compatible serial interface 8 Kbyte EEPROM, ST MEMS and I/O expander
• IEEE 802.3-2002 compliant Ethernet connector
• Two CAN 2.0 A/B channels on the same DB connector
• RS-232 communication
• IrDA transceiver (only supported up to the C07 version of the board, no more
supported from version C08)
• USB-OTG (HS and FS) with Micro-AB connector
• Inductor motor control connector
• I2S Audio DAC, stereo audio jack for headset
• 3.2" 240x320 TFT color LCD with touchscreen
• 4 color LEDs
• Camera module and extension connector for ST camera plug-in
• Joystick with 4-direction control and selector
• Reset, wakeup, tamper and user button
• RTC with backup battery
• Extension connector for daughterboard or wrapping board
• JTAG, SWD and trace debug support
• Embedded ST-LINK/V2
• Five 5 V power supply options: Power jack, USB FS connector, USB HS connector,
ST-LINK/V2 or daughterboard

1.2 Demonstration software


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 STM3240G-EVAL demonstration software available on the web at
www.st.com/mcu

6/67 DocID022138 Rev 5


UM1461 Hardware layout and configuration

1.3 Ordering information


To order the STM3240G-EVAL evaluation board, refer to Table 1:
.
Table 1. Ordering information
Order code Board

STM3240G-EVAL STM32F407IGH6

1.4 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. Main components to verify are:
1. The 25 MHz crystals (X1 and X4) may have been removed by a shock.
2. The camera connected on socket CN15 located on the right side of the board under the
JTAG connector may be unplugged. If this is the case, please refer to the note in
Section 2.18: Camera module to make sure to plug it in the correct position.
3. The microSD card may have been ejected from its connector CN6 (top left corner of the
board).
The plastic protection on the camera should be removed carefully as the connection is very
fragile.

2 Hardware layout and configuration

The STM3240G-EVAL evaluation board is designed around the STM32F407IGH6 in the


UFBGA176 package.
The hardware block diagram Figure 2 illustrates the connection between the
STM32F407IGH6 and the peripherals (camera module, LCD, SRAM, EEPROM, ST MEMS,
USART, IrDA up to version C07 of the board, USB-OTG HS, USB OTG FS, Ethernet, Audio,
CAN bus, smartcard, microSD card and motor control). Figure 3 locates these features on
the board.
Note that for every figure (layouts and schematics) in this user manual, IrDA is only
significant for board versions up to C07; IrDA has not been populated on later versions from
C08 boards onwards.

DocID022138 Rev 5 7/67


Hardware layout and configuration UM1461

Figure 2. Hardware layout and configuration

9UHJXODWRU
86%SRZHU
VZLWFK
9UHJXODWRU
86%+6 86%0LFUR$%
27*+6
3+< FRQQHFWRU
9UHJXODWRU

0LFURSKRQH
9UHJXODWRU $'&
$PSOLILHU

$XGLR-DFN
'$&

,6
$XGLR'$&

,&
0(06

((3520

-R\VWLFN
/('V.H\ *3,2
,2H[SDQGRU

([WHQVLRQ 670),*+ 7RXFKVFUHHQ


FRQQHFWRUIRU
*3,2V
&DPHUD &DPHUDH[WHQVLRQ
'&0, PRGXOH FRQQHFWRU
65$0

)60& 86%0LFUR$%
27*)6
FRQQHFWRU
86%SRZHU
7)7/&'
VZLWFK

0LFUR6' ,QWHJUDWHG5-
6',2 0,,50,, 3+<
&DUG FRQQHFWRU
05[[[[[9

0&FRQWURO &$1
0& &$1 &$1
FRQQHFWRU
WUDQVFHLYHU '%FRQQHFWRU
&$1
-7$*
'HEXJ 56 56
7UDFH WUDQVFHLYHU '%FRQQHFWRU
86$57
,U'$
67/,1.9 WUDQVFHLYHU

6PDUWFDUG 6PDUWFDUG
86$57
3RWHQWLRPHWHU $'& LQWHUIDFH FRQQHFWRU

069

2. The IrDA transceiver is present up to version C07 of the board

8/67 DocID022138 Rev 5


UM1461 Hardware layout and configuration

Figure 3. STM3240G-EVAL evaluation board layout

8 &1 &1


670),*+ 0LFUR6'&DUG 0RWRUFRQWURO

&1
5- 8
FRQQHFWRU ,U'$

&1
86%27*)6

&1
&1 86%27*+6
&$1

&1
&1 67/,1.9
86$57

&1
&1&1
7UDFH
([WHQVLRQ
CONNECTOR $4" &1
-7$*

&1
&RORU/&'
&1
$XGLRMDFN

&1
&DPHUDPRGXOH

&1
9SRZHUMDFN &1
&DPHUDH[WHQVLRQ
FRQQHFWRU

59
3RWHQWLRPHWHU

%
% 8 8VHUNH\
% &1 %
5HVHW -R\VWLFN
:DNHXS 6PDUWFDUG 7DPSHU 06  9

3. IrDA is not populated on the board from version C08 of the board

DocID022138 Rev 5 9/67


Hardware layout and configuration UM1461

2.1 Power supply


The STM3240G-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:
• 5 V DC power adapter connected to CN18, the power jack on the board
• 5 V DC power with 500 mA limitation from CN8, the USB-OTG FS Micro-AB connector
• 5 V DC power with 500 mA limitation from CN9, the USB-OTG HS Micro-AB connector
• 5 V DC power with 500 mA limitation from CN21, the ST-LINK/V2 USB connector
• 5 V DC power from both CN1 and CN3, the extension connector for daughterboard
(DTB for daughterboard on silkscreen)
The power supply is configured using jumpers JP4, JP32, JP18 and JP19 as described
inTable 2.

Table 2. Power related jumpers and solder bridges


Jumper Description

JP4 should be fitted to enable power down reset (PDR). PDR is disabled when JP4
JP4 is not fitted.
Default setting: Fitted.
MCU_VDD is connected to 3.3V power when JP32 is closed and MCU current
JP32 consumption measurement is done manually by multi-meter when JP32 is open.
Default setting: Fitted.
JP18 is used to select one of the five possible power supply sources.
To select the ST-LINK/V2 USB connector (CN21) power
supply, set JP18 as shown: HS
(Default setting) FS
DTB
PSU
STlk

To select power supply jack (CN18) power supply, set


JP18 as shown: HS
FS
JP18
DTB
PSU
STlk

To select daughterboard connector (CN1 and CN3)power


supply, set JP18 as shown: HS
FS
DTB
PSU
STlk

10/67 DocID022138 Rev 5


UM1461 Hardware layout and configuration

Table 2. Power related jumpers and solder bridges (continued)


Jumper Description

To select USB-OTG FS (CN8) power supply, set JP18 as


shown: HS
FS
DTB
PSU
STlk

To select USB-OTG HS (CN9)power supply, set JP18 as


shown: HS
FS
JP18
DTB
(cont.)
PSU
STlk

To select power supply jack (CN18) power supply to both


STM3240G-EVAL and daughterboard connected on CN1 HS
and CN3, set JP18 as shown (daughterboard must not FS
have its own power supply connected) DTB
PSU
STlk

To connect Vbat to the battery, set JP19 as shown: 1 2 3

JP19
To connect Vbat to 3.3V power, set JP19 as shown:
1 2 3
(Default setting)

Note: LED LD9 is lit when the STM3240G-EVAL evaluation board is correctly 5V powered.

2.2 Boot option


The STM3240G-EVAL evaluation board is able to boot from:
• Embedded user Flash
• System memory with boot loader for ISP
• Embedded SRAM for debugging
The boot option is configured by setting switches SW1 (BOOT1) and SW2 (BOOT0).
BOOT0 can also be configured via RS-232 connector CN16.

Table 3. Boot related jumpers


BOOT 0 BOOT 1 Boot source

0 Don’t care STM3240G-EVAL boots from User Flash (Default setting)


1 1 STM3240G-EVAL boots from Embedded SRAM
1 0 STM3240G-EVAL boots from System Memory

DocID022138 Rev 5 11/67


Hardware layout and configuration UM1461

2.3 Clock source


Four clock sources are available on the STM3240G-EVAL evaluation board for
STM32F407IGH6 and RTC embedded:
• X1, 25 MHz crystal for Ethernet PHY with socket. It can be removed when clock is
provided by the MCU MCO pin
• X2, 26 MHz crystal for USB-OTG HS PHY
• X3, 32 kHz crystal for embedded RTC
• X4, 25 MHz crystal with socket for the,STM32F407IGH6 microcontroller (it can be
removed from socket when internal RC clock is used)

2.4 Reset source


The reset signal of the STM3240G-EVAL evaluation board is low active and the reset
sources include:
• Reset button B1
• Debugging tools from JTAG connector CN14 and trace connector CN13
• Daughterboard from CN3
• RS-232 connector CN916 for ISP
• ST-LINK/V2

2.5 Audio
The STM3240G-EVAL evaluation board enables stereo audio play and microphone
recording by an external headset connected on audio jack CN11. An audio DAC CS43L22 is
connected to both I2S2 port and a DAC channel and a microphone amplifier is connected to
the ADC of the STM32F407IGH6. CS43L22 can be configured via I2C1 and the external
PLL (U36) can be used to provide external clock which is connected to I2S_CKIN pin (PC9).
Note: To avoid speaker damage it is mandatory to connect the headphone to the board on CN11
during debug of audio code. When the program is stopped on a breakpoint, a DC voltage
may be applied to the speaker which induces power consumption incompatible with the
speaker.

Warning: Signal I2S_SD (PI3) is close to signal TCK/SWCLK of the


JTAG/SWD interface, so to avoid possible communication
issues on JTAG/SWD when the I2S interface is used the
recommendations are to:
1) Prefer usage of embedded ST-LINK/V2 to external tool
connected on CN14.
2) Configure PI3 GPIO in low speed (2 MHz or 10 MHz).

12/67 DocID022138 Rev 5


UM1461 Hardware layout and configuration

Table 4. Audio related jumpers


Jumper Description

JP16 Description of JP16 is in Table 11 on page 16.


JP33 The microphone amplifier can be disabled when JP33 is fitted.Default setting: Not fitted

2.6 EEPROM
A 64 Kbit EEPROM is connected to the I2C1 bus of the STM32F407IGH6.

Table 5. EEPROM related jumper and solder bridge


Jumper Description

The EEPROM is in Write Protection mode when JP24 is not fitted.


JP24
Default Setting: Not fitted

2.7 CAN
The STM3240G-EVAL evaluation board enables two channels of CAN2.0A/B compliant
CAN bus communication based on a 3.3V CAN transceiver on one DB9 connector (CN10).
The two CAN buses can be disconnected by jumpers from relevant STM32F407IGH6 I/Os
which are shared with FSMC and USB-OTG HS. Jumpers JP3 and JP10 must be refit to
enable CAN1 or CAN2 as listed in Table 6.
High-speed, Standby and Slope Control modes are available and are selected by setting
jumper JP7.

Table 6. CAN-related jumpers


Jumper Description

To connect CAN1_TX to CAN transceiver, set JP3 as shown: 1 2 3

JP3
To connect CAN2_TX to CAN transceiver, set JP3 as shown:
1 2 3

To connect CAN1_RX to CAN transceiver, set JP10 as shown: 1 2 3

To connect CAN2_RX to CAN transceiver, set JP10 as shown:


JP10 1 2 3

PD0 and PB5 are disconnected from the CAN transceiver and used for
FSMC and USB_OTG_HS when jumper JP10 is not fitted (default setting).

DocID022138 Rev 5 13/67


Hardware layout and configuration UM1461

Table 6. CAN-related jumpers (continued)


Jumper Description

To enable the selected CAN transceiver to work in Standby mode, 1 2 3


set JP7 as shown:

To enable the selected CAN transceiver to work in High-speed


JP7 1 2 3
mode, set JP7 as shown (default setting):

To enable the selected CAN transceiver to work in Slope Control mode, do


not fit a jumper on JP7.
To enable the terminal resistor for the selected CAN, fit a jumper on JP9.
JP9
(Default setting: not fitted)

2.8 RS-232 and IrDA


Both RS-232 and IrDA communication are enabled by D-type, 9-pin RS-232 connectors
(CN16) and IrDA transceiver U11 which are connected to USART3 of the STM32F407IGH6
on the STM3240G-EVAL evaluation board.
The IrDA transceiver (TFDU6300) is not populated on STM3240G-EVAL evaluation board
from version C08. The version of the board is written on sticker on the bottom side of the
board (ex: MB786-C08). For boards version C08 or newer, it is possible to solder manually
the TDFU6300 on U11 footprint to support IrDA feature.
For ISP support, two signals are added on the RS-232 connector CN16:
• Bootloader_RESET (shared with CTS signal)
• Bootloader_BOOT0 (shared with DSR signal)
RS-232 or IrDA is selected via JP22. The position 2-3 of jumper JP22 is unused from
version C08 of the board. ISP is enabled via JP29 and JP34.

Table 7. RS-232 and IrDA related jumper


Jumper Description

To connect USART3_RX to IrDA transceiver and enable IrDA communication, 1 2 3


set JP22 as shown (this configuration is useless from version C08 of the board):

JP22 To connect USART3_RX to RS-232 transceiver and enable RS-232


1 2 3
communication, set JP22 as shown (Default setting):

To enable microSD card, which shares same I/Os with RS-232, JP22 is not fitted.
Bootloader_BOOT0 is managed by pin 6 of CN16 (RS-232 DSR signal) when JP29 is
JP29 closed. This configuration is used for boot loader application only.
Default setting: Not fitted.
Bootloader_RESET is managed by pin 8 of CN16 (RS-232 CTS signal) when JP34 is
JP34 fitted. This configuration is used for boot loader application only.
Default setting: Not fitted.

14/67 DocID022138 Rev 5


UM1461 Hardware layout and configuration

2.9 Motor control


The STM3240G-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
stop, motor speed, 3-phase motor current, bus voltage, heatsink temperature coming from
the motor driving board and 6 channels of PWM control signal going to the motor driving
circuit.
The solder bridge (SB18) allows to choose two kinds of synchronization methods for PFCs
(Power Factor Correction) while the SB17 can be set for different signals on pin 31 of CN5.
The I/O pins used on motor control connector CN5 are multiplexed with some peripherals on
the board; either motor control connector or multiplexed peripherals can be enabled by the
setting of solder bridges SB10, SB11, SB12, SB14, SB15 and SB16.

Table 8. Motor control solder bridges


Solder Multiplexed
Description
bridge peripherals

When closed, SB18 redirects the PFC synchronized signal to the


timer 3 input capture pin 2 in addition to the timer 3 external trigger
SB18 -
input.
Default setting: Open
For CN5 encoder signal input (pin 31), SB17 must be open.
For CN5 special motor analog signal input (pin 31), SB17 must be
SB17 -
closed.
Default setting: Open
Camera module
To connect MC_EmergencySTOP to PI4, close SB16.
SB16 connected to
Default setting: Open CN15
To connect MC_EnIndex to PB8, close SB10.
SB10
Default setting: Open
To connect MC_CurrentA to PC1, close SB11.
SB11 Ethernet
Default setting: Open
To connect MC_CurrentB to PC2, close SB12.
SB12
Default setting: Open
To connect MC_EnB to PD13, close SB14.
SB14
Default setting: Open
FSMC
To connect MC_EnA to PD12 close SB15.
SB15
Default setting: Open

Note: 1 Some 0 Ω resistors have to be removed or soldered to enable motor control application
except the solder bridges configurations mentioned above:
– R34, R58 & R51 to be removed
– R66, R204 & R205 to be soldered
2 microSD card must be removed from CN6 for motor control application.

DocID022138 Rev 5 15/67


Hardware layout and configuration UM1461

2.10 Smartcard
STMicroelectronics smartcard interface chip ST8024 is used on the STM3240G-EVAL
board for asynchronous 3V and 5V smartcards. It performs all supply protection and control
functions based on the connections with the STM32F407IGH6 listed in Table 9:

Table 9. Connection between ST8024 and STM32F407IGH6


Connect to
ST8024 signals Description
STM32F407IGH6

5V/3V Smartcard power supply selection pin PH15


I/OUC MCU data I/O line PC6
XTAL1 Crystal or external clock input PG7
Detect presence of a card, MCU interrupt, share same pin
OFF PF6
with motor controller
RSTIN Card reset input from MCU PF7
Start activation sequence input (Active Low), share same pin
CMDVCC PG12
with I2S DAC and Motor control

Smartcard shares some I/Os with I2S bus for Audio. Some jumper settings need to be
reconfigured to enable smartcard as indicated below:

Table 10. Smartcard related jumper


Jumper Description

To connect smartcard_IO to PC6, JP21must be fitted.


JP21 JP21 must not be fitted for Audio DAC connection to I2S.
Default setting: Not fitted

2.11 microSD card


A 1 Gbyte or more microSD card connected to the STM32F407IGH6 SDIO is available on
the board. microSD card detection is managed by the standard I/O port PH13. The microSD
card shares I/Os with motor control, RS-232 and audio. The jumpers JP22 and JP16 must
be refitted and motor control connector (CN5) must be disconnected for microSD card
function.

Table 11. microSD card related jumpers


Jumper Description

JP22 Description of JP22 is in Section 2.8: RS-232 and IrDA


PC9 is connected to microSDCard_D1 when JP16 is set as shown to the
1 2 3
right: (Default setting):
JP16
PC9 is connected to I2S_CKIN when JP16 is set as show to the right: 1 2 3

16/67 DocID022138 Rev 5


UM1461 Hardware layout and configuration

2.12 ST MEMS
The ST MEMS device LIS302DL is connected to the STM32F407IGH6 I2C1 bus on the
board.

2.13 Potentiometer
A 10 kΩ potentiometer RV1 is connected to PF9 of STM32F407IGH6 on the board.

2.14 ADC
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. As PC1 is also used
as current A input on the motor control connector it is recommended to remove R219 to
optimize noise immunity on this input.
A potentiometer RV1 is connected to PF9 of STM32F407IGH6. If needed, a low pass filter
(R74 and C59) can be placed on this input to reduce the bandwidth of the analog input PF9.
It is also possible to place the Ethernet PHY (U5) in low power mode in order to reduce the
noise induced by this high frequency peripheral. Power down pin (MII_INT in the schematic)
is connected to PB14 of the MCU, so this I/O can be configured as output low during analog
precision measurement.

2.15 USB-OTG FS
The STM3240G-EVAL evaluation board enables USB-OTG full speed communication via a
USB Micro-AB connector (CN8) and USB power switch (U1) connected to VBUS. The
evaluation board can be powered by this USB connection at 5V DC with a 500 mA current
limitation.
The LED LD6 indicates that the power switch (U1) is ON and STM3240G-EVAL functions as
a USB host or that the VBUS is powered by another USB host while STM3240G-EVAL
functions as a USB device. The LED LD5 indicates an over-current.

2.16 Ethernet
The STM3240G-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 12. Ethernet related jumpers and solder bridges


Jumper Description

JP8 is used to select MII or RMII interface mode.


JP8 To enable MII, JP8 is not fitted. To enable RMII interface mode, JP8 is fitted.
Default setting: Not fitted

DocID022138 Rev 5 17/67


Hardware layout and configuration UM1461

Table 12. Ethernet related jumpers and solder bridges (continued)


Jumper Description

To enable MII interface mode, set JP6 as shown (Default setting): 1 2 3

JP6
To enable RMII interface mode, set JP6 as shown: 1 2 3

To provide 25 MHz clock for MII or 50 MHz clock for RMII by MCO at PA8, set 1 2 3
JP5 as shown (Default setting):

JP5 To provide 25 MHz clock by external crystal X1 (for MII interface mode only) set
1 2 3
JP5 as shown:

When clock is provided by external oscillator U3, JP5 must not be fitted.
SB1 is used to select clock source only for RMII mode.
To connect the clock from oscillator U3 to RMII_REF_CLK, close SB1.
SB1
The resistor R212 has to be removed in this case.
Default setting: Closed.

Note: 1 A test point (TP2) is available on the board for the PTP_PPS feature test.
2 The Ethernet PHY (U5) can be powered down by regulating PB14.
3 In RMII mode the 50 MHz clock must be provided to Ethernet PHY by an external oscillator.
This oscillator (ref SM7745HEV-50.0M or equivalent) must be soldered on the U3 footprint
(located under CN3) and jumper JP5 must be removed. This oscillator is not provided with
the board.

2.17 USB-OTG HS
The STM3240G-EVAL evaluation board enables USB-OTG high speed communication via
a USB Micro-AB connector (CN9), USB high speed PHY (U8) and USB power switch (U4)
connected to VBUS. The evaluation board can be powered by this USB connector (CN9) at
5V DC with a 500 mA current limitation.
LED LD7 indicates that power switch (U4) is ON and the STM3240G-EVAL is working as a
USB host or that VBUS is powered by another USB host when the STM3240G-EVAL is
working as a USB device. The LD8 indicates an over-current. The USB ULPI bus is shared
with CAN2 bus, the JP10 and JP3 must be kept open for USB-OTG HS.

Table 13. microSD card related jumper


Jumper Description

To disable USB-OTG PHY U8, JP31 is not fitted.


JP31
Default setting: Fitted

Note: On boards MB786 prior to version B03 it is possible that after a board RESET the MCU is no
longer able to control communication with the OTG PHY (U8). When this issue occurs the
only way to recover OTG PHY control is to power the board OFF and ON. This issue is fixed
on MB786 version B03 or newer.

18/67 DocID022138 Rev 5


UM1461 Hardware layout and configuration

2.18 Camera module


A camera module is connected to the STM32F407IGH6 DCMI bus and shares the same
I/Os with the motor control connector. SB16 must be kept open for camera module
application.
There are two possible modules and omnivision cameras populated on the CN15 connector
of the board:
• 1.3 Megapixel: Module CN01302H1045-C: Camera OV9655
• 2 Megapixel: Module CN020VAH2554-C: Camera OV2640

Table 14. Camera module related jumpers


Jumper Description

JP26 To set power down mode for the camera module, JP26 is fitted. Default setting: Not Fitted
SB16 Description of SB16 is in Section 2.9: Motor control.

Note: 1 When the camera demo loaded in Flash is executed, some green pixels may appear in high
contrast zones, depending on the image captured.
2 The camera is not firmly restricted on its connector (CN15). It is possible that during
shipment the camera could be unplugged. In such case it needs to be plugged into the right
position as shown on the picture below (pin 1 dot on top left corner of the socket).
It is not recommended to remove it in order to avoid false contact later.

Figure 4. Pin 1 camera plug

4. Picture is not contractual

DocID022138 Rev 5 19/67


Hardware layout and configuration UM1461

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 the STM32F407IGH6 FSMC bus which shares the same
I/Os with the CAN1 bus. JP3 and JP10 must not be fitted for SRAM and LCD application.

Table 15. SRAM related jumpers


Jumper Description

Connect PE4 to SRAM as A20 by setting JP1 as shown (Default setting): 1 2 3

JP1
Connect PE4 to trace connector CN13 as TRACE_D1 by setting JP1 as shown: 1 2 3

Connect PE3 to SRAM as A19 by settiing JP2 as shown (Default setting): 1 2 3

JP2
Connect PE3 to trace connector CN13 as TRACE_D0 by setting JP2 as shown: 1 2 3

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.
Note: Due to I/O sharing on the board there is a frequency limitation on ETM trace, so when the
MCU clock is above 120 MHz the ETM trace output is not guaranteed.
To communicate with the embedded ST-LINK/V2, a specific driver needs to be installed on
your PC. To download and install this driver, refer to the software and development tools
page for the STM32F family available on www.st.com (the install shield is called
ST-LINK_V2_USBdriver.exe).
Third-party toolchains, Atollic TrueSTUDIO, KEIL ARM-MDK, IAR EWARM and Tasking VX-
Toolset support ST-LINK/V2 according to the following table:

Table 16. Third-party toolchain support


Manufacturer Toolchain Version

Atollic TrueSTUDIO 2.1


IAR EWARM 6.20.4
Keil MDK-ARM 4.20
Tasking VX-Toolset ARM Cortex-M 4.0.1

The embedded ST-LINK/V2 connects to the PC via a standard USB cable from connector
CN21.

20/67 DocID022138 Rev 5


UM1461 Hardware layout and configuration

The bicolor LED LD10 (COM) indicates the status of the communication as follows:
• Slow blinking Red/Off: At power-on before USB initialization
• Fast blinking Red/Off: After the first correct communication between PC and
ST-LINK/V2 (enumeration)
• Red LED On: When initialization between PC and ST-LINK/V2 is successfully finished
• Green LED On: After successful target communication initialization
• Blinking Red/Green: During communication with target
• Green On: Communication finished and OK
• Orange On: Communication failure
Note: 1 It is possible to power the board via CN21 (embedded ST-LINK/V2 USB connector) even if
an external tool is connected to CN13 (trace) or CN14 (external JTAG and SWD).
2 If the I2S interface is used, refer to the warning in Chapter 2.5.

DocID022138 Rev 5 21/67


Hardware layout and configuration UM1461

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.

Table 17. LCD modules


Pin on Pin on
Pin name Pin connection Pin name Pin connection
CN19 CN19

1 CS FSMC_NE3 (PG10) 18 PD14 FSMC_D12


2 RS FSMC_A0 19 PD15 FSMC_D13
3 WR/SCL FSMC_NWE 20 PD16 FSMC_D14
4 RD FSMC_NOE 21 PD17 FSMC_D15
5 RESET RESET# 22 BL_GND GND
6 PD1 FSMC_D0 23 BL_Control +5V
7 PD2 FSMC_D1 24 VDD +3V3
8 PD3 FSMC_D2 25 VCI +3V3
9 PD4 FSMC_D3 26 GND GND
10 PD5 FSMC_D4 27 GND GND
11 PD6 FSMC_D5 28 BL_VDD +5V
12 PD7 FSMC_D6 29 SDO NC
13 PD8 FSMC_D7 30 SDI NC
14 PD10 FSMC_D8 31 XL I/O expander U24
15 PD11 FSMC_D9 32 XR I/O expander U24
16 PD12 FSMC_D10 33 YD I/O expander U24
17 PD13 FSMC_D11 34 YU I/O expander U24

22/67 DocID022138 Rev 5


UM1461 Connectors

3 Connectors

3.1 Daughterboard 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 the STM3240G-EVAL evaluation board. A total number of 140
GPIOs are available on the board.
Each pin on CN1, 2, 3 and 4 can be used by a daughterboard after disconnecting it from the
corresponding function block on the STM3240G-EVAL evaluation board. Please refer from
Table 18 to Table 21 for details.

Table 18. Daughterboard extension connector CN1


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

1 GND - -
Trace_D0 &
3 PE3 Keep JP2 on 2<->3
FSMC_A19
5 PE5 Trace_D2 -
7 PI8 LCD_HSYNC -
9 PC14 OSC32_IN Remove R84, SB4 closed
11 PC15 OSC32_OUT Remove R85, SB5 closed
13 PI10 MII_RX_ER Remove RS3
15 PF0 FSMC_A0 -
17 PF2 FSMC_A2 -
19 GND - -
21 PF5 FSMC_A5 -
23 PF7 Smartcard_RST -
25 PF9 Potentiometer Remove R151
27 PH0 OSC_IN SB6 closed
29 PC0 ULPI_STP -
31 PC1 MII_MDC SB11 open
33 PC3 MII_TX_CLK Remove R51
35 PA0 WakeUP Remove R139
37 PA2 MII_MDIO -
39 GND - -
41 PH4 ULPI_NXT Remove R61
43 NC - -
45 NC - -
47 EMU_3V3 - -

DocID022138 Rev 5 23/67


Connectors UM1461

Table 18. Daughterboard extension connector CN1 (continued)


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

49 EMU_5V - -
2 PE2 Trace_CLK -
Trace_D1 &
4 PE4 Keep JP1 on 2<->3
FSMC_A20
6 PE6 Trace_D3 -
8 PC13 Anti-Tamper Remove R143
10 GND - -
12 PI9 LED3 Remove R141
14 PI11 ULPI_DIR Remove R62
16 PF1 FSMC_A1 -
18 PF3 FSMC_A3 -
20 PF4 FSMC_A4 -
22 PF6 Smartcard_OFF Remove R126
24 PF8 LCD_CS -
26 PF10 Audio_IN Remove R196
28 PH1 OSC_OUT Remove R86, SB7 closed
30 GND - -
MII_TXD2 &
32 PC2 SB12 open
MC
34 VREF+ - -
36 PA1 MII_RX_CLK JP6 open
38 PH2 MII_CRS Remove RS3
40 PH3 MII_COL Remove RS3
42 PH5 OTG_FS_PowerSwitchOn Remove R18
44 NC - -
46 NC - -
48 APP_3V3 - -
50 GND - -

24/67 DocID022138 Rev 5


UM1461 Connectors

Table 19. Daughterboard extension connector CN2


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

1 GND - -
3 PA3 ULPI_D0 -
5 PA5 ULPI_CLK Remove R69
7 PA7 MII_RX_DV Remove RS2, JP8 open
9 PC5 MII_RXD1 Remove R58
11 PB0 ULPI_D1 -
13 PB2 BOOT1 -
15 PF12 FSMC_A6 -
17 PF14 FSMC_A8 -
19 GND - -
21 PG1 FSMC_A11 -
23 PE8 FSMC_D5 -
25 PE10 FSMC_D7 -
27 PE12 FSMC_D9 -
29 PE14 FSMC_D11 -
31 PE15 FSMC_D12 -
33 PB11 ULPI_D4 -
35 PH7 MII_RXD3 Remove RS3
37 PH9 DCMI_D0 Remove camera module from CN15
39 GND - -
2 APP_VCC - -
4 PA4 Audio_DAC_OUT Remove R115
6 PA6 DCMI_PIXCK Remove camera module from CN15
8 PC4 MII_RXD0 Remove RS2
10 GND - -
12 PB1 ULPI_D2 -
14 PF11 OTG_FS_Overcurrent Remove R15
16 PF13 FSMC_A7 -
18 PF15 FSMC_A9 -
20 PG0 FSMC_A10 -
22 PE7 FSMC_D4 -
24 PE9 FSMC_D6 -
26 PE11 FSMC_D8 -
28 PE13 FSMC_D10 -

DocID022138 Rev 5 25/67


Connectors UM1461

Table 19. Daughterboard extension connector CN2 (continued)


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

30 GND - -
32 PB10 ULPI_D3 -
34 PH6 MII_RXD2 Remove RS5
DCMI_HSYNC & Remove camera module from CN15. Disconnect motor
36 PH8
MC control board from CN5.
DCMI_D1 & Remove camera module from CN15. Disconnect motor
38 PH10
MC control board from CN5.
DCMI_D2 & Remove camera module from CN15. Disconnect motor
40 PH11
MC control board from CN5.

Table 20. Daughterboard extension connector CN3


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

1 GND - -
3 PI1 I2S_CK -
Smartcard_3/5V &
5 PH15 Disconnect motor control board from CN5
MC
MicroSDCard_detect & Remove microSD card from CN6. Disconnect motor
7 PH13
MC control board from CN5.
9 PC13 Anti-tamper Remove R143
11 RESET# Reset button -
13 PA11 OTG_FS_DM Remove R17
Remove USB cable from CN8.
15 PA9 VBUS_FS
Remove R18.
MicroSDCard_D1 &
17 PC9 Keep JP16 on open
I2S_CKIN
19 EMU_5V - -
I2S_MCK &
21 PC6 JP21 open
Smartcard_IO
23 PG7 Smartcard_CLK -
25 PG5 FSMC_A15 -
27 PG3 FSMC_A13 -
29 PD15 FSMC_D1 -
31 PD14 FSMC_D0 -
33 PD12 FSMC_A17 SB15 open
35 PD10 FSMC_D15 -
37 PD8 FSMC_D13 -

26/67 DocID022138 Rev 5


UM1461 Connectors

Table 20. Daughterboard extension connector CN3 (continued)


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

39 GND - -
ULPI_D6 &
41 PB13 -
CAN2_TX

DCMI_D3 & Remove camera module from CN15.


43 PH12
MC Disconnect motor control board from CN5.
45 NC - -
47 EMU_3V3 - -
49 EMU_5V - -
2 PI2 IO_Expandor_INT Remove R136
4 PI0 I2S_CMD -

DCMI_D4 & Remove camera module from CN15.


6 PH14
MC Disconnect motor control board from CN5.
8 PA13 TMS/SWDIO -
10 GND - -
12 PA12 OTG_FS_DP Remove R19
14 PA10 OTG_FS_ID Remove R21
16 PA8 MCO JP5 open

MicroSDCard_D0 & Remove microSD card from CN6.


18 PC8
MC Disconnect motor control board from CN5.
20 PC7 LED4 Remove R140
22 PG8 LED2 Remove R154
24 PG6 LED1 Remove R155
26 PG4 FSMC_A14 -
28 PG2 FSMC_A12 -
30 GND - -
SB14 open.
32 PD13 FSMC/MC
Disconnect motor control board from CN5.
34 PD11 FSMC_A16 -
36 PD9 FSMC_D14 -
38 PB15 OneNAND_INT Remove R53
40 PB14 MII_INT Remove R41
42 PB12 ULPI_D5 -
44 NC - -
46 NC - -

DocID022138 Rev 5 27/67


Connectors UM1461

Table 20. Daughterboard extension connector CN3 (continued)


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

48 APP_3V3 - -
50 GND - -

Table 21. Daughterboard extension connector CN4


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

1 GND - -

DCMI_D6 & Remove camera module from CN15.


3 PI6
MC Disconnect motor control board from CN5.

DCMI_D5 & Remove camera module from CN15.


5 PI4
MC SB16 open
7 PE0 FSMC_BL0 -
Remove RS5
MII_TXD3 &
9 PB8 SB10 open
MC
Disconnect motor control board from CN5.
11 BOOT0 BOOT0 -
13 PB6 I2C1_SCL Remove R103
15 PB4 TRST -
17 PG15 User button Remove R150
19 GND - -
Smartcard_CMDVCC &
21 PG12 Remove R128
LCD_VSYNC
23 PG10 FSMC_NE3 Remove LCD board MB785 from CN19
25 PD7 FSMC_NE1 Remove R52
27 PD5 FSMC_NWE -
29 PD3 FSMC_CLK -
31 PD2 MicroSDCard_CMD -
FSMC_D2 &
33 PD0 JP10 open
CAN1_RX
MicroSDCard_D3 & JP22 open
35 PC11
RS232/IrDA_RX Remove microSD card from CN6
37 PA15 TDI -
39 GND - -

DCMI_D7 & Remove camera module from CN15


2 PI7
MC Disconnect motor control board from CN5

DCMI_VSYNC & Remove camera module from CN15


4 PI5
MC Disconnect motor control board from CN5

28/67 DocID022138 Rev 5


UM1461 Connectors

Table 21. Daughterboard extension connector CN4 (continued)


How to disconnect with function block on
Pin Description Alternative function
STM3240G-EVAL board

6 PE1 FSMC_BL1 -
8 PB9 I2C1_SDA Remove R111
10 GND - -
12 PB7 FSMC_NL -
ULPI_D7 &
14 PB5 JP10 open
CAN2_RX
16 PB3 TDO/SWO -
18 PG14 MII_TXD1 Remove RS6
20 PG13 MII_TXD0 Remove RS6
22 PG11 MII_TX_EN Remove RS6
24 PG9 FSMC_NE2 Remove R47
26 PD6 FSMC_NWAIT Remove R54
28 PD4 FSMC_NOE -
30 GND - -
FSMC_D3 &
32 PD1 JP3 open
CAN1_TX
34 PC12 MicroSDCard_CLK Remove microSD card from CN6
MicroSDCard_D2 &
36 PC10 Remove microSD card from CN6
RS232/IrDA_TX
38 PA14 TCK/SWCLK -
40 PI3 I2S_DIN -

DocID022138 Rev 5 29/67


Connectors UM1461

3.2 Motor control connector CN5


Figure 5. Motor control connector CN5





6IEWEDFROMABOVE0#"
-36

Table 22. Motor control connector CN5


STM32F407IGH6 STM32F407IGH6
Description CN5 pin CN5 pin Description
pin pin
EMERGENCY
PI4 1 2 - GND
STOP
PWM-UH PI5 3 4 - GND
PWM-UL PH13 5 6 - GND
PWM-VH PI6 7 8 - GND
PWM-VL PH14 9 10 - GND
PWM-WH PI7 11 12 - GND
BUS
PWM-WL PH15 13 14 PC4
VOLTAGE
PHASE A
PC1 15 16 - GND
CURRENT
PHASE B
PC2 17 18 - GND
CURRENT
PHASE C
PC3 19 20 - GND
CURRENT
NTC BYPASS
PH8 21 22 - GND
RELAY
DISSIPATIVE
PC8 23 24 - GND
BRAKE PWM
Heatsink
+5V power +5V 25 26 PC5
temperature
PFC SYNC PH10 and PH11 27 28 - VDD_Micro
PFC PWM PH12 29 30 - GND
Encoder A PD12 31 32 - GND
Encoder
Encoder B PD13 33 34 PB8
Index

30/67 DocID022138 Rev 5


UM1461 Connectors

3.3 microSD connector CN6


Figure 6. microSD connector CN6

Table 23. microSD connector CN6


Pin Description Pin Description

1 SDIO_D2 (PC10) 5 SDIO_CLK (PC12)


2 SDIO_D3 (PC11) 6 Vss/GND
3 SDIO_CMD (PD2) 7 SDIO_D0 (PC8)
4 +3V3 8 SDIO_D1 (PC9)
- 10 MicroSDcard_detect (PH13)

3.4 Ethernet RJ45 connector CN7


Figure 7. Ethernet RJ45 connector CN7



)URQWYLHZ

06Y9

Table 24. RJ45 connector CN7


Pin Description Pin Description

1 TxData+ 2 TxData-
3 RxData+ 4 Shield
5 Shield 6 RxData-
7 Shield 8 Shield

DocID022138 Rev 5 31/67


Connectors UM1461

3.5 USB-OTG FS Micro-AB connector CN8


Figure 8. USB-OTG FS Micro-AB connector CN8

&ƌŽŶƚǀŝĞǁ

06Y9

Table 25. USB-OTG FS Micro-AB connector CN8


Pin Description Pin Description

1 VBUS (PA9) 4 ID (PA10)


2 D- (PA11) 5 GND
3 D+ (PA12) - -

3.6 USB-OTG HS Micro-AB connector CN9


Figure 9. USB-OTG HS Micro-AB connector CN9

&ƌŽŶƚǀŝĞǁ

06Y9

Table 26. USB-OTG HS Micro-AB connector CN9


Pin Description Pin Description

1 VBUS 4 ID
2 D- 5 GND
3 D+ - -

32/67 DocID022138 Rev 5


UM1461 Connectors

3.7 CAN D-type 9-pin male connectors CN10 (CAN1 or CAN2)


Figure 10. CAN D-type 9-pin male connector CN10 (CAN1 or CAN2)





)URQWYLHZ

06Y9

Table 27. CAN D-type 9-pin male connector CN10 (CAN1 or CAN2)
Pin Description Pin Description

1,4,8,9 NC 7 CANH
3,5,6 GND 2 CANL

3.8 Audio connector CN11


A 3.5mm stereo audio jack CN11 is available on the STM3240G-EVAL board to support a
headset (headphone & microphone integrated).

3.9 Trace debugging connector CN13


Figure 11. Trace debugging connector CN13

ϭϵϭϳϭϱϭϯϭϭϵϳϱϯϭ

ϮϬϭϴϭϲϭϰϭϮϭϬϴϲϰϮ

sŝĞǁĞĚĨƌŽŵĂďŽǀĞW
06Y9

Table 28. Trace debugging connector CN13


Pin Description Pin Description

1 3.3V power 2 TMS/PA13


3 GND 4 TCK/PA14
5 GND 6 TDO/PB3
7 KEY 8 TDI/PA15
9 GND 10 RESET#
11 GND 12 TraceCLK/PE2
13 GND 14 TraceD0/PE3 or SWO/PB3

DocID022138 Rev 5 33/67


Connectors UM1461

Table 28. Trace debugging connector CN13 (continued)


Pin Description Pin Description

15 GND 16 TraceD1/PE4 or nTRST/PB4


17 GND 18 TraceD2/PE5
19 GND 20 TraceD3/PE6

3.10 JTAG debugging connector CN14


Figure 12. JTAG debugging connector CN14

ϭϵϭϳϭϱϭϯϭϭϵϳϱϯϭ

ϮϬϭϴϭϲϭϰϭϮϭϬϴϲϰϮ

sŝĞǁĞĚĨƌŽŵĂďŽǀĞW
06Y9

Table 29. JTAG debugging connector CN14


Pin Description Pin Description

1 3.3V power 2 3.3V power


3 PB4 4 GND
5 PA15 6 GND
7 PA13 8 GND
9 PA14 10 GND
11 RTCK 12 GND
13 PB3 14 GND
15 RESET# 16 GND
17 DBGRQ 18 GND
19 DBGACK 20 GND

34/67 DocID022138 Rev 5


UM1461 Connectors

3.11 Camera module connector CN15


Figure 13. Camera module connector CN15 (front view)

)URQWYLHZ
06Y9

Table 30. Camera module connector CN15


Pin Description Pin Description

1 DGND 13 XCLK1
2 DGND 14 Y6(PI6)
3 SIO_D (PB9) 15 DGND
4 AVDD (2.8V) 16 Y5(PI4)
5 SIO_C (PB6) 17 PCLK (PA6)
6 RESET 18 Y4(PH14)
7 VSYNC (PI5) 19 Y0 (PH9)
8 PWDN 20 Y3(PH12)
9 HREF (PH8) 21 Y1(PH10)
10 DVDD (1.8V) 22 Y2(PH11)
11 DOVDD (2.8V) 23 AGND
12 Y7(PI7) 24 AGND

3.12 RS-232 connector CN16


Figure 14. RS-232 connector CN16 with ISP support (front view)





)URQWYLHZ

06Y9

DocID022138 Rev 5 35/67


Connectors UM1461

Table 31. RS-232 connector CN16 with ISP support


Pin Description Pin Description

1 NC 6 Bootloader_BOOT0
2 RS232_RX (PC11) 7 NC
3 RS232_TX (PC10) 8 Bootloader_RESET
4 NC 9 NC
5 GND -

3.13 Power connector CN18


The STM3240G-EVAL evaluation board can be powered by a 5 V DC power supply via the
external power supply jack (CN18) shown in Figure 15. CN18 central pin must be positive.

Figure 15. Power supply connector CN18

нϱs
'E

06Y9

3.14 TFT LCD connector CN19


One 34-pin male header CN19 is available on the board for connecting LCD module board
MB785.
Please refer to Section 2.21: Display and input devices for details.

3.15 Smartcard connector CN20


Figure 16. Smartcard connector CN20

36/67 DocID022138 Rev 5


UM1461 Connectors

Table 32. Smartcard connector CN20


Pin Description Pin Description

1 VCC 5 GND
2 RST 6 NC
3 CLK 7 I/O
4 NC 8 NC
17 Card presence detection pin 18 Card presence detection pin

3.16 ST-LINK/V2 connector CN21


The USB type B connector CN21 is intended for ST-LINK/V2 to connect between the
STM3240G-EVAL evaluation board and the PC for board debugging.

DocID022138 Rev 5 37/67


Connectors UM1461

3.17 Camera extension connector CN23


Table 33. Camera extension connector CN23
Pin Description Pin Description

1 +1V8 2 +1V8
3 GND 4 GND
5 NC 6 NC
7 GND 8 GND
9 NC 10 NC
11 GND 12 GND
13 SCL 14 SDA
15 Camera_Plug 16 GND
17 Camera_RST 18 NC
19 Camera_XSDN 20 Camera_CLK
21 GND 22 GND
23 DCMI_D0 24 DCMI_D1
25 DCMI_D2 26 DCMI_D3
27 DCMI_D4 28 DCMI_D5
29 DCMI_D6 30 DCMI_D7
31 HSYSC 32 VSYSC
33 PIXCLK 34 NC
35 NC 36 NC
37 GND 38 GND
39 +2V8 40 +2V8

3.18 STM3240G-EVAL pinout


Table 34. STM3240G-EVAL pinout
Pin Pin name Description
A2 PE2 TRACE_CLK / FSMC_A23
A1 PE3 TRACE_D0 / FSMC_A19
B1 PE4 TRACE_D1 / FSMC_A20
B2 PE5 TRACE_D2 / FSMC_A21
B3 PE6 TRACE_D3 / FSMC_A22
C1 VBAT VBAT
D2 PI8- ANTI TAMP2 LCD_HSYNC
D1 PC13-ANTI_TAMP ANTI-TAMPER_BUTTON

38/67 DocID022138 Rev 5


UM1461 Connectors

Table 34. STM3240G-EVAL pinout (continued)


Pin Pin name Description
E1 PC14-OSC32_IN 32K_OSC
F1 PC15-OSC32_OUT 32K_OSC
D3 PI9 LED2
E3 PI10 ETHER_RX_ER
E4 PI11 USB_HS_DIR
F2 VSS_13 -
F3 VDD_13 -
E2 PF0 FSMC_A0
H3 PF1 FSMC_A1
H2 PF2 FSMC_A2
J2 PF3 FSMC_A3
J3 PF4 FSMC_A4
K3 PF5 FSMC_A5
G2 VSS_5 -
G3 VDD_5 -
K2 PF6 SmartCard_OFF
K1 PF7 SmartCard_RESET
L3 PF8 LCD_CS
L2 PF9 POTENTIOMETER
L1 PF10 Audio_IN
G1 PH0 - OSC_IN OSC_IN
H1 PH1 - OSC_OUT OSC_OUT
J1 NRST RESET_BUTTON
M2 PC0 USB_HS_STP
M3 PC1 ETHER_MDC / MC_ADC123_11 pin 15 (Current A)
M4 PC2 ETHER_TXD2 / MC_ADC123_1 2 pin 17 (Current B)
M5 PC3 ETHER_TX_CLK / MC_ADC123_13 pin 19 (Current C)
M1 VSSA -
N1 VREF- -
P1 VREF+ -
R1 VDDA -
N3 PA0-WKUP WAKEUP_BUTTON
N2 PA1 ETHER_RX_CLK
P2 PA2 ETHER_MDIO
F4 PH2 ETHER_CRS

DocID022138 Rev 5 39/67


Connectors UM1461

Table 34. STM3240G-EVAL pinout (continued)


Pin Pin name Description
G4 PH3 ETHER_COL
H4 PH4 USB_HS_NXT
J4 PH5 USB_FS_POWER_ON
R2 PA3 USB_HS_D0
L4 BYPASS BYPASS
K4 VDD_4 -
N4 PA4 Audio_DAC_OUT
P4 PA5 USB_HS_CK
P3 PA6 CAM_PIXCK
R3 PA7 ETHER_DV
N5 PC4 ETHER_RXD0 / MC_ADC12_14 pin 14 (Bus voltage)
ETHER_RXD1 / MC_ADC12_15 pin 26 (Heatsink
P5 PC5
temperature)
R5 PB0 USB_HS_D1
R4 PB1 USB_HS_D2
M6 PB2 BOOT1 /
R6 PF11 USB_FS_OVERCURRENT
P6 PF12 FSMC_A6
M8 VSS6 -
N8 VDD_6 -
N6 PF13 FSMC_A7
R7 PF14 FSMC_A8
P7 PF15 FSMC_A9
N7 PG0 FSMC_A10
M7 PG1 FSMC_A11
R8 PE7 FSMC_D4
P8 PE8 FSMC_D5
P9 PE9 FSMC_D6
M9 VSS_7 -
N9 VDD_7 -
R9 PE10 FSMC_D7
P10 PE11 FSMC_D8
R10 PE12 FSMC_D9
N11 PE13 FSMC_D10
P11 PE14 FSMC_D11

40/67 DocID022138 Rev 5


UM1461 Connectors

Table 34. STM3240G-EVAL pinout (continued)


Pin Pin name Description
R11 PE15 FSMC_D12
R12 PB10 USB_HS_D3
R13 PB11 ULPI_D4
M10 VCAP1 VCAP / 1.2V
N10 VDD_1 -
M11 PH6 ETHER_RXD2
N12 PH7 ETHER_RXD3
M12 PH8 CAM_HSYNC / MC_NTC_bypass
M13 PH9 CAM_D0
L13 PH10 CAM_D1 / MC_TIM5_ETR pin 27 (PFC SYNC)
L12 PH11 CAM_D2 / MC_TIM3_CH2 pin 27 (PFCSYNC)
K12 PH12 CAM_D3 / TIM5_CH3 pin 29 (PFCPWM)
H12 VSS_14 -
J12 VDD_14 -
P12 PB12 ULPI_D5
P13 PB13 ULPI_D6 / CAN2_TX
R14 PB14 ETHER_INT
R15 PB15 OneNAND_INT
P15 PD8 FSMC_D13
P14 PD9 FSMC_D14
N15 PD10 FSMC_D15
N14 PD11 FSMC_A16
N13 PD12 FSMC_A17 / MC_TIM4_CH2 pin 33 (EnB)
M15 PD13 FSMC_A18 / MC_TIM4_CH2 pin 33 (EnB)
J13 VDD_8 -
M14 PD14 FSMC_D0
L14 PD15 FSMC_D1
L15 PG2 FSMC_A12
K15 PG3 FSMC_A13
K14 PG4 FSMC_A14
K13 PG5 FSMC_A15
J15 PG6 LED0
J14 PG7 SmartCard_CK
H14 PG8 LED1
G12 VSS_9 -

DocID022138 Rev 5 41/67


Connectors UM1461

Table 34. STM3240G-EVAL pinout (continued)


Pin Pin name Description
H13 VDD_9 -
H15 PC6 SmartCard_IO / Audio_I2S_ MCK
G15 PC7 LED3
G14 PC8 SDIO_D0/ MC_TIM3_CH3 pin23 (Dissipative Brake)
F14 PC9 SDIO_D1 I2S_CKIN
F15 PA8 MCO
E15 PA9 USB_FS_VBUS
D15 PA10 USB_FS_ID
C15 PA11 USB_FS_DM
B15 PA12 USB_FS_DP
A15 PA13 JTAG_TMS
F13 VCAP2 VCAP / 1.2V
F12 VSS 2 -
G13 VDD_2 -
E12 PH13 MC_TIM8_CH1N pin 5 (UL) / microSD card detect
E13 PH14 CAM_D4 / MC_TIM8_CH2N pin 9 (VL)
D13 PH15 MC_TIM8_CH3N pin 13 (WL) / SmartCard_3/5V
E14 PI0 Audio_I2S_WS
D14 PI1 Audio_I2S_CK
C14 PI2 Expander_INT
C13 PI3 Audio_I2S_DOUT
D9 VSS_15 -
C9 VDD_15 -
A14 PA14 JTAG_TCK
A13 PA15 JTAG_TDI
B14 PC10 SDIO_D2 / RS232_TX
B13 PC11 SDIO_D3 / RS232_RX
A12 PC12 SDIO_CK
B12 PD0 FSMC_D2 / CAN1_RX
C12 PD1 FSMC_D3 / CAN1_TX
D12 PD2 SDIO_CMD
D11 PD3 FSMC_CLK
D10 PD4 FSMC_NOE
C11 PD5 FSMC_NWE
D8 VSS_10 -

42/67 DocID022138 Rev 5


UM1461 Connectors

Table 34. STM3240G-EVAL pinout (continued)


Pin Pin name Description
C8 VDD_10 -
B11 PD6 FSMC_NWAIT
A11 PD7 FSMC_NE1
C10 PG9 FSMC_NE2
B10 PG10 FSMC_NE3
B9 PG11 ETHER_TXEN
B8 PG12 SmartCard_CMDVCC
A8 PG13 ETHER_TXD0
A7 PG14 ETHER_TXD1
D7 VSS_11 -
C7 VDD_11 -
B7 PG15 USER_BUTTON
A10 PB3 JTAG_TDO
A9 PB4 JTAG_TRST
A6 PB5 CAN2_RX / ETHER_PPS_OUT / ULPI_D7
B6 PB6 I2C1_SCL
B5 PB7 FSMC_NL
D6 BOOT0 BOOT0
A5 PB8 ETHER_TXD3 / MC_TIM4_CH3 pin 34 (Index)
B4 PB9 I2C1_SDA
A4 PE0 FSMC_NBL0
A3 PE1 FSMC_NBL1
D5 VSS_SA -
C6 VDD_3 POR Disable
C5 VDD_SA -
D4 PI4 CAM_D5 / MC_TIM8_BKIN pin 1 (Stop)
C4 PI5 CAM_VSYNC / MC_TIM8_CH1 pin 3 (UH)
C3 PI6 CAM_D6 / MC_TIM8_CH2 pin 7 (VH)
C2 PI7 CAM_D7 / MC_TIM8_CH3 pin 11 (WH)

DocID022138 Rev 5 43/67


Schematics UM1461

Appendix A Schematics

Appendix A contains the schematic diagrams listed below:


• Figure 17: STM3240G-EVAL on page 45
• Figure 18: MCU on page 46
• Figure 19: USB-OTG HS on page 47
• Figure 20: Camera on page 48
• Figure 21: Ethernet on page 49
• Figure 22: Audio on page 50
• Figure 23: USB-OTG FS on page 51
• Figure 24: SRAM on page 52
• Figure 25: LCD on page 53
• Figure 26: RS-232 and IrDA on page 54
• Figure 27: CAN on page 55
• Figure 28: I/O peripherals on page 56
• Figure 29: I/O expander on page 57
• Figure 30: microSD card on page 58
• Figure 31: Motor control on page 59
• Figure 32: Smartcard on page 60
• Figure 33: JTAG and Trace on page 61
• Figure 34: Power on page 62
• Figure 35: Extension connector on page 63
• Figure 36: STLINK/V2 on page 64
• Figure 37: 3.2” LCD module with SPI and 16-bit interface on page 65

44/67 DocID022138 Rev 5


Figure 17. STM3240G-EVAL

UM1461
1 2 3 4 5 6 7 8

U_Audio U_USB_OTG_HS
Audio_IN I2S_MCK I2S_MCK ULPI_D[0..7] ULPI_D[0..7]
Audio.SchDoc USB_OTG_HS.SchDoc
I2S_CKIN Audio_RST Audio_IN ULPI_STP ULPI_STP
U_MCU
MCO Audio_SDA I2S_CKIN RESET#
MCU.SchDoc
Audio_SCL
I2S_SCK I2S_SCK ULPI_NXT ULPI_NXT
A I2S_SD I2S_SD ULPI_DIR ULPI_DIR A
I2S_WS I2S_WS ULPI_CLK ULPI_CLK
Audio_DAC_OUT Audio_DAC_OUT
U_USB_OTG_FS
USB_OTG_FS.SchDoc
OTG_FS_PowerSwitchOn OTG_FS_PowerSwitchOn
RS232/IrDA_RX RS232/IrDA_RX OTG_FS_DM OTG_FS_DM
U_USART&IrDA
Bootloader_BOOT0 Bootloader_BOOT0 OTG_FS_DP OTG_FS_DP
USART&IrDA.SchDoc
Bootloader_RESET Bootloader_RESET OTG_FS_ID OTG_FS_ID
RS232/IrDA_TX RS232/IrDA_TX OTG_FS_OverCurrent OTG_FS_OverCurrent
U_IO Peripherals U_IO_Expandor
IO Peripherals.SchDoc IO_Expandor.SchDoc
BOOT0
U_ExtensionConnector
RESET# RESET# LED4 LED4 JOY_SEL EXP_IO1 EXP_IO6
ExtensionConnector.SchDoc
PI[0..11] PI[0..11] LED3 LED3 JOY_DOWN EXP_IO2
PH[0..15] PH[0..15] LED1 LED1 JOY_LEFT EXP_IO3
PG[0..15] PG[0..15] LED2 LED2 JOY_RIGHT EXP_IO4
PF[0..15] PF[0..15] EEPROM_SCL JOY_UP EXP_IO5
PE[0..15] PE[0..15] EEPROM_SDA MEMS_INT1 EXP_IO10
PD[0..15] PD[0..15] MEMS_SCL MEMS_INT2 EXP_IO9
PC[0..15] PC[0..15] MEMS_SDA
PB[0..15] PB[0..15]
BOOT0 PA[0..15] PA[0..15] Potentiometer Potentiometer EXP_IO11
Anti_Tamper Anti_Tamper EXP_IO12
WAKEUP WAKEUP EXP_IO8
User_Button User_Button EXP_IO7
U_Camera connector
Camera_PLUG DCMI_PIXCK DCMI_PIXCK
Camera connector.SchDoc
DCMI_VSYNC DCMI_VSYNC
R103 0
B DCMI_HSYNC DCMI_HSYNC I2C1_SCL IO_Expandor_SCK B
R111 0
I2C1_SDA I2C1_SDA IO_Expandor_SDA
I2C1_SCL IO_Expandor_INT IO_Expandor_INT
DocID022138 Rev 5

U_CAN
Camera_XSDN
CAN.SchDoc
Camera_RST CAN1_TX CAN1_TX
DCMI_D[0..7] DCMI_D[0..7] CAN2_TX CAN2_TX
R118 R133
CAN2_RX CAN2_RX
U_Ethernet 1K5 1K5
CAN1_RX CAN1_RX
Ethernet.SchDoc
MII_TX_CLK MII_TX_CLK LCD_VSYNC LCD_VSYNC
+2V8
MII_RXD0 MII_RXD0 LCD_HSYNC LCD_HSYNC
MII_RX_ER MII_RX_ER LCD_CS LCD_CS
MII_RX_DV/RMII_CRSDV MII_RX_DV/RMII_CRSDV RESET# TouchScreen_Y- TouchScreen_Y-
MII_RX_CLK/RMII_REF_CLK MII_RX_CLK/RMII_REF_CLK D[0..15] D[0..15] TouchScreen_Y+ TouchScreen_Y+
MII_COL MII_COL A[0..20] A[0..20] TouchScreen_X- TouchScreen_X-
MII_CRS MII_CRS FSMC_NWE FSMC_NWETouchScreen_X+ TouchScreen_X+
MII_RXD1 MII_RXD1 FSMC_NOE FSMC_NOE
U_LCD
MII_RXD2 MII_RXD2 FSMC_NE3 FSMC_NE3
LCD.SchDoc
MII_RXD3 MII_RXD3 PC[0..15]
MII_INT MII_INT
U_SRAM&OneNAND
MII_TXD3 MII_TXD3
SRAM&OneNAND.SchDoc
MII_TXD2 MII_TXD2
MII_TXD1 MII_TXD1 A[0..20]
RESET# D[0..15]
U_Power
MCO MCO FSMC_NE1 FSMC_NE1
Power.SchDoc
MII_MDIO MII_MDIO FSMC_NE2 FSMC_NE2
MII_MDC MII_MDC FSMC_NWE
MII_TX_EN MII_TX_EN FSMC_NOE
C MII_TXD0 MII_TXD0 FSMC_BLN0 FSMC_BLN0 C
FSMC_BLN1 FSMC_BLN1
U_MotorControl
FSMC_CLK FSMC_CLK
MotorControl.SchDoc
FSMC_NL FSMC_NL
MC_EmergencySTOP MC_EmergencySTOP OneNAND_INT OneNAND_INT
MC_CurrentA MC_CurrentA FSMC_NWAIT FSMC_NWAIT
MC_CurrentB MC_CurrentB
U_ST_LINK
MC_CurrentC MC_CurrentC TMS/SWDIO
ST_LINK.SCHDOC
MC_EnA MC_EnA TDO/SWO
MC_EnB MC_EnB TDI
MC_HeatsinkTemperature MC_HeatsinkTemperature TRST
MC_BusVoltage MC_BusVoltage TCK/SWCLK RESET#
MC_EnIndex MC_EnIndex
U_JTAG&Trace
JTAG&Trace.SchDoc
MC_PFCpwm MC_PFCpwm
MC_DissipativeBrake MC_DissipativeBrake TRACE_D3 TRACE_D3
MC_NTC MC_NTC TRACE_D2 TRACE_D2
MC_WH MC_WH TRACE_D1 TRACE_D1
MC_UL MC_UL TRACE_D0 TRACE_D0
Modifications on PCB rev.C.1:
MC_UH MC_UH TRACE_CK TRACE_CK
1. Add capacitor CX1.
MC_VL MC_VL TDO/SWO TDO/SWO
2. Add RESET# connection on pin C4 of U8.
MC_VH MC_VH TCK/SWCLK TCK/SWCLK
3. Add SB1&R212 related configuration table.
MC_WL MC_WL TMS/SWDIO TMS/SWDIO
4. Change F4 MCU partnumber.
MC_PFCsync2 MC_PFCsync2 TRST TRST
5. Remove PC12 from LCD extention connector CN22
MC_PFCsync1 MC_PFCsync1 RESET#
TDI TDI
Modifications on PCB rev.C.2:
U_MicroSDCard 1. Add note to highlight capacitors C33 & C50 are ceramic capacitor with low ESR.
D U_SmartCard MicroSDCard.SchDoc D
SmartCard.SchDoc Modifications on PCB rev.C.3:
MicroSDCard_CLK MicroSDCard_CLK
1. Add note to remove TFDU6300 (U11) on board by default.
SmartCard_OFF SmartCard_OFF MicroSDCard_CMD MicroSDCard_CMD

Schematics
SmartCard_CMDVCC SmartCard_CMDVCC MicroSDCard_D0 MicroSDCard_D0
SmartCard_CLK SmartCard_CLK MicroSDCard_D1 MicroSDCard_D1
SmartCard_RST
SmartCard_IO
SmartCard_RST
SmartCard_IO
MicroSDCard_D2
MicroSDCard_D3
MicroSDCard_D2
MicroSDCard_D3
STMicroelectronics
SmartCard_3/5V SmartCard_3/5V MicroSDCard_Detect MicroSDCard_Detect
Title:
STM32 20-21-45-46 G-EVAL
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 1 of 20
45/67

1 2 3 4 5 6 7 8
Figure 18. MCU
46/67

Schematics
1 2 3 4 5 6 7 8

ULPI_D[0..7]
ULPI_D[0..7]
TP14
IOs Multiplexed TP2 MCO1 U16A IOs Multiplexed
PTP_PPS PA0 N3 R11 PE15 D12
WAKEUP PA0 PE15
PA1 N2 P11 PE14 D11 U16B
MII_RX_CLK/RMII_REF_CLK PA1 PE14
PA2 P2 N11 PE13 D10 C5
MII_MDIO PA2 PE13 VDD_MCU VDD_SA
ULPI_D0 PA3 R2 R10 PE12 D9 C7 F2
CAN2_RX PA3 PE12 VDD VSS
PA4 N4 P10 PE11 D8 A19 C8 G2 +3V3
Audio_DAC_OUT PA4 PE11 VDD VSS
PA5 P4 R9 PE10 D7 A20 C9 M8
A MII_TXD3 ULPI_CLK PA5 PE10 VDD VSS A
PA6 P3 P9 PE9 D6 G13 M9
MC_EnIndex DCMI_PIXCK PA6 PE9 VDD VSS
SB10 PA7 R3 P8 PE8 D5 H13 H12 JP4
MII_RX_DV/RMII_CRSDV PA7 PE8 VDD VSS
PA8 F15 R8 PE7 D4 C75 C68 J13 G12 Optional
MCO PA8 PE7 VDD VSS
E15 B3 PE6 1uF 100nF J12 F12
VBUS_FS PA9 PE6 TRACE_D3 VDD VSS
PA10 D15 B2 PE5 3 PE4 VDD_MCU N10 D9
OTG_FS_ID PA10 PE5 TRACE_D2 VDD VSS
PA11 C15 B1 2 N8 D8 R81
OTG_FS_DM PA11 PE4 VDD VSS
PA12 B15 A1 1 N9 D7 10K
OTG_FS_DP PA12 PE3 TRACE_D1 VDD VSS
PA13 A15 A2 PE2 L3 K4 D5
TMS/SWDIO PA13 PE2 TRACE_CK VDD VSS_SA
PA14 A14 A3 PE1 JP1 BEAD TP5 F3 N1
TCK/SWCLK PA14 PE1 FSMC_BLN1 VDD VREF-
+3V3 PA15 A13 A4 PE0 3 PE3 VREF G3
SW1 TDI PA15 PE0 FSMC_BLN0 VDD
1 2 L4
R87 BYPASS_REG
2 ULPI_D1 PB0 R5 P7 PF15 A9 1 C6
PB0 PF15 TRACE_D0 RFU
3 R88 10K ULPI_D2 PB1 R4 R7 PF14 A8 47 P1 M1 R71
PB1 PF14 VREF+ VSSA
R34 0 09.03290.01 PB2 M6 N6 PF13 A7 JP2 VREF+ R1 F13 10K
MII_RXD0 PB2 PF13 VDDA VDDA VCAP
PB3 A10 P6 PF12 A6 C1 M10
TDO/SWO PB3 PF12 C74 VBAT VCAP
R204 PB4 A9 R6 PF11 C69
MC_BusVoltage TRST PB4 PF11 OTG_FS_OverCurrent 1uF
[N/A] ULPI_D7 PB5 A6 L1 PF10 100nF
PB5 PF10 Audio_IN

2
PB6 B6 L2 PF9 STM32F207IFT6
I2C1_SCL PB6 PF9 Potentiometer
R58 0 PB7 B5 L3 PF8

3
MII_RXD1 FSMC_NL PB7 PF8 LCD_CS JP19
PB8 A5 K1 PF7
PB8 PF7 SmartCard_RST
R205 PB9 B4 K2 PF6 C50 C33
MC_HeatsinkTemperature I2C1_SDA PB9 PF6 SmartCard_OFF BT1
[N/A] ULPI_D3 PB10 R12 K3 PF5 A5 2.2uF 2.2uF
PB10 PF5
ULPI_D4 PB11 R13 J3 PF4 A4
PB11 PF4
ULPI_D5 PB12 P12 J2 PF3 A3
PB12 PF3
ULPI_D6 PB13 P13 H2 PF2 A2 +3V3 CR1220 holder
CAN2_TX PB13 PF2
PB14 R14 H3 PF1 A1 Ceramic capacitor (Low ESR)
SB11 MII_INT PB14 PF1
PB15 R15 E2 PF0 A0
MC_CurrentA OneNAND_INT PB15 PF0
B MII_MDC B
PC0 M2 B7 PG15 - RFU means Reserved for Future Use.
SB12 ULPI_STP PC0 PG15 User_Button
PC1 M3 A7 PG14 - As an option, RFU could be tied to VDD or VSS for forward
MC_CurrentB PC1 PG14 MII_TXD1
DocID022138 Rev 5

PC2 M4 A8 PG13 compatibility with future STM32F products. However, user may leave
MII_TXD2 PC2 PG13 MII_TXD0
R66 [N/A] PC3 M5 B8 PG12 RFU pin connected to VDD, or VSS, or NC for STM32F2xx exclusive
MC_CurrentC PC3 PG12 SmartCard_CMDVCC
R51 0 PC4 N5 B9 PG11 use.
MII_TX_CLK PC4 PG11 MII_TX_EN LCD_VSYNC
PC5 P5 B10 PG10 - JP4 should be fitted for future backward compatibility with sTM32F2xx.
PC5 PG10 FSMC_NE3
PC6 H15 C10 PG9
I2S_MCK PC6 PG9 FSMC_NE2
PC7 G15 H14 PG8
SmartCard_IO LED4 PC7 PG8 LED2
JP21 PC8 G14 J14 PG7
MicroSDCard_D0 PC8 PG7 SmartCard_CLK
PC9 F14 J15 PG6
MC_DissipativeBrake PC9 PG6 LED1
PC10 B14 K13 PG5 A15
PC10 PG5
PC11 B13 K14 PG4 A14
PC11 PG4
PC12 A12 K15 PG3 A13
MicroSDCard_D2 MicroSDCard_CLK PC12 PG3
PC13 D1 L15 PG2 A12
RS232/IrDA_TX Anti_Tamper PC13 PG2
M7 PG1 A11
MicroSDCard_D3 TP15 TP16 PG1 MC_WL
N7 PG0 A10
PG0 SmartCard_3/5V
MCO2 CPUCK VDD_MCU
RS232/IrDA_RX
D2 PD0 B12 D13 PH15
PD0 PH15 MC_VL
D3 PD1 C12 E13 PH14 DCMI_D4
CAN1_RX PD1 PH14 MC_UL
PD2 D12 E12 PH13 C65 C49 C53 C57 C56 C36 C61 C66
MicroSDCard_CMD PD2 PH13 MicroSDCard_Detect
PD3 D11 K12 PH12 DCMI_D3 100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF
FSMC_CLK PD3 PH12 MC_PFCpwm
PD4 D10 L12 PH11 DCMI_D2
CAN1_TX FSMC_NOE PD4 PH11 MC_PFCsync1
PD5 C11 L13 PH10 DCMI_D1
FSMC_NWE PD5 PH10 MC_PFCsync2
PD6 B11 M13 PH9 DCMI_D0 VDD_MCU
FSMC_NWAIT PD6 PH9 MC_NTC
PD7 A11 M12 PH8
FSMC_NE1 PD7 PH8 DCMI_HSYNC
D13 PD8 P15 N12 PH7
PD8 PH7 MII_RXD3 C58
1 D14 PD9 P14 M11 PH6 C34 C67 C54 C60 C48 C37 C35
MicroSDCard_D1 PD9 PH6 MII_RXD2 4.7uF
C 2 D15 PD10 N15 J4 PH5 100nF 100nF 100nF 100nF 100nF 100nF 100nF C
PD10 PH5 OTG_FS_PowerSwitchOn
3 A16 PD11 N14 H4 PH4
I2S_CKIN PD11 PH4 ULPI_NXT
A[0..20] A17 PD12 N13 G4 PH3
A[0..20] PD12 PH3 MII_COL
JP16 A18 PD13 M15 F4 PH2
SB14 PD13 PH2 MII_CRS
D0 PD14 M14
MC_EnB PD14
D[0..15] D1 PD15 L14
SB15 D[0..15] PD15
MC_EnA
PH0 G1 E4 PI11
PH0 PI11 ULPI_DIR
PH1 H1 E3 PI10
PH1 PI10 MII_RX_ER
D3 PI9
PI9 LED3
R86 D2 PI8
PI8 LCD_HSYNC
390 C2 PI7 DCMI_D7
PI7 MC_WH
PC14 E1 C3 PI6 DCMI_D6 PA[0..15]
PC14 PI6 MC_VH PA[0..15]
X4 PC15 F1 C4 PI5
PC15 PI5 MC_UH
D4 PI4 DCMI_D5 PB[0..15]
PI4 DCMI_VSYNC PB[0..15]
R84 X3 R85 BOOT0 C13 PI3
BOOT0 PI3 I2S_SD SB16
25MHz (with socket) 0 0 C14 PI2 PC[0..15]
PI2 IO_Expandor_INT MC_EmergencySTOP PC[0..15]
1 4 J1 D14 PI1
NRST PI1 I2S_SCK
D6 E14 PI0 PD[0..15]
C72 C73 C70 2 C71 BOOT0 PI0 I2S_WS PD[0..15]
3
20pF 20pF 6.8pF 6.8pF R89 STM32F207IGH6 PE[0..15]
PE[0..15]
10K STM32F217IGH6 DCMI_D[0..7]
DCMI_D[0..7]
JP29 STM32F407IGH6 PF[0..15]
PF[0..15]
MC306-G-06Q-32.768 (manufacturer JFVNY) STM32F417IGH6
2

B1 PG[0..15]
PG[0..15]
1 2 SW2
09.03290.01 PH[0..15]
PH[0..15]
4 3 D1
1

D RESET BAT60JFILM PI[0..11] D


PI[0..11]
C123 +3V3 +3V3
R137
do not fit
100nF
D2
Bootloader_BOOT0 STMicroelectronics

UM1461
JP34
RESET# Bootloader_RESET
Title:
BAT60JFILM STM32 20-21-45-46 G-EVAL MCU
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 2 of 20
1 2 3 4 5 6 7 8
Figure 19. USB-OTG HS

UM1461
1 2 3 4

+3V3

A A
R28
330
+3V3
R32

1
10K
+3V3 LD8 LD7
2 1 R29 Green

2
620
R31 U4

3
10K 2 3 Red
GND FAULT R207 T3
5 1 2
+5V IN OUT 9013
4 C25 47K
EN
U8 4.7uF

1
PH4 R61 0 D5 D4 STMPS2141STR@54
ULPI_NXT NXT PSW_N
PI11 R62 0 E5 E2 R206
ULPI_DIR DIR FAULT
PC0 D6 C2 R50 [N/A] CN9
ULPI_STP STP RREF
PA5 R69 0 A4 12K[1%] VBUS_HS 475900001
ULPI_CLK CLOCK
F4 R46 2K2 1
VBUS VBUS
C1 2

USB_Micro-AB receptacle
B DM DM B
ULPI_D[0..7] PB5 ULPI_D7 C6 D1 3
ULPI_D[0..7] D7 DP DP
PB13 ULPI_D6 B6 D3 4
DocID022138 Rev 5

D6 ID ID
PB12 ULPI_D5 A6 +3V3 5
D5 GND
PB11 ULPI_D4 A5 B2
D4 VCC(I/O)

A2
A1

A2
A1
PB10 ULPI_D3 A3 B5
D3 VCC(I/O)
PB1 ULPI_D2 A2 F3
D2 VCC
PB0 ULPI_D1 A1 E3 U10 U12
D1 REG_3V3
PA3 ULPI_D0 B1 E6 USBULC6-2F3 ESDA14V2-2BF3
D0 REG1V8
F1 C39 C29 C43 0
NC Shield

B2
B1

B2
B1
F2 C31 C26 C44 C42 0.1uF 0.1uF 0.1uF
NC 4.7uF 4.7uF
F6 E1 0.1uF 0.1uF
XTAL2 CFG0
F5 B4 +3V3
XTAL1 CFG1
B3 C46 C47 C64 C131
CFG2
R70 C5 0.1uF 0.1uF 0.1uF 0.1uF
GND
100K C3 D2 C24
CHIP_SEL_N GND
C4 E4 0.1uF
R55 RESET_N GND
JP31
1M R72 ISP1705AET
[N/A]
C C
X2

+3V3 +3V3
26MHz

C40 C41
33pF 33pF

RESET#

D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL USB OTG HS

Schematics
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 3 of 20
1 2 3 4
47/67
Figure 20. Camera
48/67

Schematics
1 2 3 4

A A

+2V5 U27
4 3 Camera_CLK
VCC OUT
1 2 CN23
EN GND
R130 C149 CLM-120-02-L-D
10K SM7745HEW-24.0M CN15 +2V8 0.1uF C150
13 4 0.1uF
XCLK1 AVDD(2.8V) +1V8 1 2 +1V8
PA6 PIXCLK 17 10 +2V8
DCMI_PIXCK PCLK DVDD(1.8V) +1V8 3 4
PI5 VSYSC 7 11
DCMI_VSYNC VSYNC DOVDD(2.8V) +2V8 5 6
PH8 HSYSC 9
DCMI_HSYNC HREF C90 C85 C84 7 8
DCMI_D[0..7] PH9 DCMI_D0 19 R213
B DCMI_D[0..7] Y0 0.1uF 0.1uF 0.1uF 9 10 B
PH10 DCMI_D1 21 10K
Y1 11 12
PH11 DCMI_D2 22 SCL SDA
DocID022138 Rev 5

Y2 13 14
+2V8 PH12 DCMI_D3 20
Y3 Camera_PLUG 15 16
PH14 DCMI_D4 18 Camera_RST
Y4 17 18
PI4 DCMI_D5 16 Camera_CLK
Y5 Camera_XSDN 19 20
R108 PI6 DCMI_D6 14
Y6 21 22
10K PI7 DCMI_D7 12 DCMI_D0 DCMI_D1
Y7 23 24
DCMI_D2 DCMI_D3
25 26
Camera_RST 6 15 DCMI_D4 DCMI_D5
Camera_RST RESET DGND 27 28
8 2 DCMI_D6 DCMI_D7
PWDN DGND 29 30
1 HSYSC VSYSC
DGND 31 32
PB6 SCL 5 24 PIXCLK
I2C1_SCL SIO_C AGND 33 34
PB9 SDA 3 23
I2C1_SDA SIO_D AGND 35 36
37 38
24-5805-024-000-829+
+2V8 39 40 +2V8
R109 JP26 C151 C152
10K 0.1uF 0.1uF
C C
+2V8

D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL Camera
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 4 of 20

UM1461
1 2 3 4
Figure 21. Ethernet

UM1461
1 2 3 4

PH2
MII_CRS
PI10
MII_RX_ER
PH3
A MII_COL A
PH7
MII_RXD3
PH6 +3V3
MII_RXD2
PB8
MII_TXD3
PC2 +3V3
MII_TXD2
PC3 R43
MII_TX_CLK
1.5K
RS5 RS3 C7 RS4 C6 R22 R1
Unused in RMII mode 51 51 0.1uF 51 0.1uF 240 240

RS6 U5 CN7
1 17 1
TX_CLK TD+ TD+
PG11 2 16 4
MII_TX_EN TX_EN TD- TCT
PG13 3 14 2
MII_TXD0 TXD_0 RD+ TD-
PG14 4 13
MII_TXD1 TXD_1 RD-
5 12 3
TXD_2 NC RD+
51 6 11 5
TXD_3/SNI_MODE NC RCT
RS2 10 6
NC RD-
PC5 43 9
MII_RXD1 RXD_0/PHYAD1 NC
PC4 44 8 9
B MII_RXD0 RXD_1/PHYAD2 NC LED(green)_A B
DocID022138 Rev 5

PA7 45 10
MII_RX_DV/RMII_CRSDV RXD_2/PHYAD3 LED(green)_K
46 12
RXD_3/PHYAD4 LED(Yellow)_A
41 11
R40 JP8 RX_ER/MDIX_EN LED(Yellow)_K
51 39
+3V3 RX_DV/MII_MODE
2K2 38 7
RX_CLK NC
8
CHS GND
42 13
COL/PHYAD0 Shield
3 40 RS1 14
CRS/CRS_DV/LED_CFG +3V3 Shield
PA1 2
MII_RX_CLK/RMII_REF_CLK
1 PC1 31 28 J0011D21B
MII_MDC MDC LED_LINK/AN0
PA2 R44 0 30 27 Second source: SI-60116-F
MII_MDIO MDIO LED_SPEED/AN1
JP6 26
RESET# LED_ACT/COL/AN_EN
29
SB1 R42 RESET_N
Board configuration SB1 R212 7 21 R30 2K2 2K2
+3V3 PWR_DOWN/INT NC
STM324xG-EVAL Close Not fitted 2K2 20 R33 2K2
R212 MII_INT NC +3V3
STM322xG-EVAL Open 150ohm PB14 R41 0
150 22
R24 AVDD33 +3V3
33 48
X2 IOVDD33
0 34 32
C C15 X1 IOVDD33 C
TP1 25
22pF X1 25MHz_OUT
25MHz 19
25MHz (with socket) R25 AGND
24 15
C14 RBIAS AGND
4.87K 37 47
22pF PFBIN2 IOGND
JP5 18 35
PFBIN1 IOGND
1 23 36
PFBOUT DGND
2
R208 PA8 3 DP83848CVV
MCO
51 +3V3

+3V3 U3
4 3 C21 C17 C19 C13 C16 C27 C20
VCC OUT 0.1uF 0.1uF 0.1uF 10uF 0.1uF 0.1uF 0.1uF
1 2
EN GND
R26
10K SM7745HEV-50.0M (do not fit)

D D
STMicroelectronics

Schematics
Title:
STM32 20-21-45-46 G-EVAL Ethernet
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 5 of 20
1 2 3 4
49/67
Figure 22. Audio
50/67

Schematics
1 2 3 4

C159 +3V3
+3V3

1uF U36
C158 0.1uF 1 10 R221
VD SDA/CDIN
2 9 10K
GND SCL/CCLK
PC9 3 8 R209 0
A I2S_CKIN CLK_OUT AD0/CS A
4 7 PA8
AUX_OUT XTI/REF_CLK MCO
5 6 R211 0 R110 R112
TST_IN XTO
51 51
CS2200-CP
C154
C86 C97
U23 0.022uF 0.022uF
[N/A] PB9 1 15 3 CN11
X6 Audio_SDA SDA HP/LINE_OUTA
PB6 2 14 6
[N/A] Audio_SCL SCL HP/LINE_OUTB
3 31
A0 SPKR/HP
C155 4
PC6 37 U19 2
I2S_MCK MCLK
PI1 38 4 1 PJ3028B-3
R134 I2S_SCK SCLK SPKR_OUTA+
[N/A] PI3 39 6 2
I2S_SD SDIN SPKR_OUTA-
10K PI0 40 7
I2S_WS LRCK SPKR_OUTB+
32 9 KSS-1508 or KSSG1708
Audio_RST RESET SPKR_OUTB-
8
VP +5V
From IO expandor 10 5 R215 R216 R217 R218
-VHPFILT VP
11 C93 C94 0 0 [N/A] [N/A]
B FLYN B
30 0.1uF 0.1uF
DocID022138 Rev 5

AIN1B
C88 C87 29 C105
AIN1A R122 R115 PA4
1uF(X7R) 1uF (X7R) 12 26
FLYP AIN2B Audio_DAC_OUT
25 100 0
AIN2A 1uF(X7R)
+2V5 24 R113 Fit for Iphone headset Fit for Nokia headset
AIN3B
13 23 100K
+VHP AIN3A
16 22
C95 VA AIN4B
C92 C98 C103 34 21
1uF VD AIN4A
0.1uF 0.1uF 0.1uF
20 19
TSTO VQ
+3V3 36 28
TSTO AFILTB
33 27
VL AFILTA
35 18
DGND FILT+
C104 0 17
GND/Thermal Pad AGND
0.1uF
CS43L22 C102 C101 C107 C108
I2C address 0x94 1uF(X5R) 1uF(X5R) 150pF(COG) 150pF(COG)

C C

C140 +3V3

R197 C141
1K 1uF 1uF C145 C146
U33
C143 10 20
BIAS VCC 100pF 100pF
2 8 14 0ohm resistor mounted for DC coupling
IN+ C1
1 15
100nF C2 R196
5 17 PF10
IN- OUT+ Audio_IN
U34 C144 2 16 0
BYP OUT-
KECG2740TBL[N/A] 4 21 C147 R199
C142 GND STBY +3V3
22 9 R195 0ohm 100K
100nF 1uF GND GS
R198 10K
0 TS472IQT R200
D D
47 JP33
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL Audio
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 6 of 20

UM1461
1 2 3 4
Figure 23. USB-OTG FS

UM1461
1 2 3 4

A A

+3V3

R23
620

+3V3
OTG_FS_OverCurrent

1
R16 LD5
R20 U1 47K Red

2
10K 2 3 R15 0 PF11 CN8
B GND FAULT B
5 1 1
DocID022138 Rev 5

+5V IN OUT VBUS


PH5 R18 0 4 2

USB_Micro-AB receptacle
OTG_FS_PowerSwitchOn EN DM
3
C5 DP
STMPS2141STR@54 4
4.7uF ID
5
GND

0
Shield
475900001

PA9 +3V3
VBUS_FS
PA11 R17 22
OTG_FS_DM
PA12 R19 22
OTG_FS_DP
PA10 R21 0 R27
OTG_FS_ID
330
C C

1
LD6
U2 Green

2
B3 A3
Vbus ID
C3 C1
D+out D+in

3
D3 D1
D-out D-in R180 T1
A2 B1 2
Dz Pd1 9013
B2 C2 47K
Pup Pd2

1
D2
GND
R181
EMIF02-USB03F2 [N/A]

D D
STMicroelectronics

Schematics
Title:
STM32 20-21-45-46 G-EVAL USB_OTG_FS
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 7 of 20
1 2 3 4
51/67
Figure 24. SRAM
52/67

Schematics
1 2 3 4

A A

D[0..15]
D[0..15]
A[0..20]
A[0..20]
U7
A15 D4 D3 D0
A15 DQ0
U6 A14 F1 B3 D1
A14 DQ1
A20 H6 A13 F2 E3 D2
A20 A13 DQ2
A19 G2 G1 D15 A12 D2 C5 D3
A19 I/O15 A12 DQ3
A18 H1 F1 D14 A11 F5 C2 D4
A18 I/O14 A11 DQ4
A17 D3 F2 D13 A10 G5 D5 D5
A17 I/O13 A10 DQ5
A16 E4 E2 D12 A9 E6 D6 D6
A16 I/O12 A9 DQ6
A15 F4 D2 D11 A8 F6 C1 D7
A15 I/O11 A8 DQ7
A14 F3 C2 D10 A7 F4 B2 D8
A14 I/O10 A7 DQ8
A13 G4 C1 D9 A6 G6 B5 D9
A13 I/O9 A6 DQ9
A12 G3 B1 D8 A5 H3 C4 D10
A12 I/O8 A5 DQ10
A11 H5 G6 D7 A4 H2 C3 D11
A11 I/O7 A4 DQ11
A10 H4 F6 D6 A3 H5 B1 D12
A10 I/O6 A3 DQ12
A9 H3 F5 D5 +3V3 A2 H4 A6 D13
B A9 I/O5 A2 DQ13 B
A8 H2 E5 D4 A1 G3 A3 D14
DocID022138 Rev 5

A8 I/O4 A1 DQ14
A7 D4 D5 D3 A0 G2 D1 D15
A7 I/O3 A0 DQ15
A6 C4 C6 D2 R45
A6 I/O2
A5 C3 C5 D1 10K C6
A5 I/O1 R52 0 VccIO
+3V3 A4 B4 B6 D0 E2 B6
A4 I/O0 CE VccCore +3V3
A3 B3 +3V3 C23 A1
A3 WE
A2 A5 B4 G4 C22 C18
A2 OE NC
R35 A1 A4 E1 H6 100nF 100nF
A1 100nF CLK NC
10K A0 A3 A6 F3 E5
R47 0 A0 CE2 AVD NC
PG9 B5 D6 C30 H1 E4
FSMC_NE2 CE VCC RDY NC
G5 E1 A2 A5
WE VCC RP Vss
A2 G1 A4
OE 100nF INT Vss
PE0 A1 D1
FSMC_BLN0 BLE VSS
PE1 B2 E6 KFG1216U2A-DIB6
FSMC_BLN1 BHE VSS
Not fitted
IS61WV102416BLL-10MLI
CY7C1071DV33-12BAXI
PD7
FSMC_NE1
PD5
C FSMC_NWE C
PD4
FSMC_NOE R53 0 PB15
PD3
FSMC_CLK OneNAND_INT
PB7
FSMC_NL
PD6 R54 0
FSMC_NWAIT
C28 R36 R48
R49 100nF 10K 10K
10K

+3V3 +3V3
+3V3

D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL SRAM & OneNAND
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 8 of 20

UM1461
1 2 3 4
Figure 25. LCD

UM1461
1 2 3 4

A A

D[0..15]
D[0..15]
A[0..20]
A[0..20]
CN19
PG10 R78 150 1 6 R82 150 D0
B FSMC_NE3 CS PD1 B
A0 R119 150 2 7 R161 150 D1
RS PD2
PD5 R162 150 3 8 R163 150 D2
FSMC_NWE WR/SCL PD3
DocID022138 Rev 5

PD4 R164 150 4 9 R165 150 D3


FSMC_NOE RD PD4
5 10 R166 150 D4
RESET# RESET PD5
11 R167 150 D5
PD6
12 R168 150 D6
PD7
13 R169 150 D7
PD8
14 R170 150 D8
L1 PD10
22 15 R171 150 D9
BL_GND PD11
BEAD 23 16 R172 150 D10
BL_Control PD12
24 17 R173 150 D11
+3V3 VDD PD13
25 18 R174 150 D12
VCI PD14
26 19 R175 150 D13
GND PD15
C153 C148 27 20 R176 150 D14
L2 GND PD16
R67 0 100nF 10uF 28 21 R177 150 D15
+5V BL_VDD PD17
R68 [N/A] BEAD 29
+3V3 SDO
30 31
SDI XL TouchScreen_X-
32
C XR TouchScreen_X+ C
33
YD TouchScreen_Y-
34 To IO expandor
YU TouchScreen_Y+
3.2" LCD_connector (MB785 with AM-240320D4TOQW-T00H(R))

CN22 PC[0..15]
PC[0..15]
PC10
LCD_VSYNC 1 2
PC11
LCD_HSYNC 3 4
LCD_CS 5 6
Header 3X2H
Reserved for LCD connector

D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL LCD

Schematics
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 9 of 20
1 2 3 4
53/67
Figure 26. RS-232 and IrDA
54/67

Schematics
1 2 3 4

A A

+3V3
100nF
C78 U17 C76 CN16
28 26 100nF DB9-male UART3 or 4
C1+ VCC
24 25
C1- GND
C80 1 27 C77 1
C2+ V+
100nF 2 3 100nF DSR 6
C2- V-
C79 RXD 2
14 9 100nF 7
T1IN T1OUT
PC10 13 10 TXD 3
RS232/IrDA_TX T2IN T2OUT
12 11 CTS 8
T3IN T3OUT
4
21 9
R1OUTB
20 5
Bootloader_BOOT0 R2OUTB
19 4
R1OUT R1IN
18 5
B R2OUT R2IN B
1 17 6
R3OUT R3IN
DocID022138 Rev 5

PC11 2 16 7
RS232/IrDA_RX Bootloader_RESET R4OUT R4IN
3 15 8
R5OUT R5IN
+3V3
JP22 23 22
nEN nSHDN
ST3241EBPR

Note:
TFDU6300 (U11) is not populated
on boards manufactured starting from
C C
middle 2016 (schematics revision C.3)

U11
5
SD
3
TxD
4
RxD
+3V3
R64 1
Anode (VCC2)
5 2
R63 Cathode
6
VCC1
47 7
NC
8
GND
TFDU6300
C45 C51 C55 C52
4.7uF 0.1uF 4.7uF 0.1uF
D D
IrDA STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL RS232&IrDA
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 10 of 20

UM1461
1 2 3 4
Figure 27. CAN

UM1461
1 2 3 4

A A

+3V3
+3V3 R37 R39
C32 10K 0 CN10

3
Default setting: 1<->2 DB9-male CAN connector
Default setting: Open

2
100nF JP7 1
PD1 3 U9 6
B CAN1_TX B
DocID022138 Rev 5

2 1 8 JP9 2
D RS
PB13 1 2 7 7
CAN2_TX GND CANH
3 6 3
VCC CANL
JP3 4 5 8
R Vref
R38 4
PD0 3 SN65HVD230 120 9
CAN1_RX
2 5
PB5 1
CAN2_RX
R56 R60
JP10 do not fit 0

+3V3

C C

D D
STMicroelectronics

Schematics
Title:
STM32 20-21-45-46 G-EVAL CAN
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 11 of 20
1 2 3 4
55/67
Figure 28. I/O peripherals
56/67

Schematics
1 2 3 4

U32
R159 5
COMMON
100 LD1
+2V8 Green
2 PG6 R155 1 2
A Selection LED1 A

R149

R147

R146

R145

R144
510

10K

10K

10K

10K

10K
LD2
Orange
PG8 R154 1 2
To IO expandor LED2
JOY_SEL 680
3 LD3
JOY_DOWN DWON
1 Red
JOY_LEFT LEFT R141
4 PI9 1 2
JOY_RIGHT RIGHT LED3
6 680
JOY_UP UP
LD4

100nF
100nF

100nF

100nF

100nF
MT008-A Blue
PC7 R140 1 2
LED4
680

C121

C129

C120

C128

C119
Joystick LEDs
B B
DocID022138 Rev 5

+2V8

C81 +3V3 R107


C89 +2V8 U20 10K
1 7
VDD_IO CS
U18 100nF R102 JP24 6 12
VDD SDO
1 8 10K 100nF 3 2
E0 VCC Reserved GND
2 7 PB9 13 10
E1 WC MEMS_SDA SDA GND
3 6 PB6 PB6 14 5
E2 SCL EEPROM_SCL MEMS_SCL SCL GND
4 5 PB9 8 4
VSS SDA EEPROM_SDA MEMS_INT1 INT1 GND
9 11
MEMS_INT2 INT2 Reserved
M24C64-RMN6TP
To IO expandor LIS302DL
C C
EEPROM MEMS

+3V3 +3V3 +3V3 +3V3

1
R138
R148 R142 100 PF9 R151 R152 2 RV1
Potentiometer
4K7 4K7 0 1K 3386P-103H[10%]

1
PG15 R150 PC13 R143
User_Button Anti_Tamper

3
0 0 B2 C122
C124 WKUP 10nF
2

do not fit
B4 B3
Potentiometer

2
USER C130 Tamper C118
100nF 100nF PA0 R139
WAKEUP
D 330 D
STMicroelectronics
1

R153
R160 R156 220K
100 100
Title:
STM32 20-21-45-46 G-EVAL IO Peripherals
BUTTON
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 12 of 20

UM1461
1 2 3 4
Figure 29. I/O expander

UM1461
1 2 3 4

A A

+2V8

C99
100nF U24
6 1
VCC Y- TouchScreen_Y-
14 16
Vio X- TouchScreen_X-
10 15
GND Y+ TouchScreen_Y+
PB6 4 13
IO_Expandor_SCK SCLK X+ TouchScreen_X+
PB9 5 12
IO_Expandor_SDA SDAT IN3 EXP_IO9
PI2 R136 0 2 11
IO_Expandor_INT INT IN2 EXP_IO10
7 9
Data in IN1 EXP_IO11
3 8
B A0/Data Out IN0 EXP_IO12 B
R117
DocID022138 Rev 5

10K STMPE811QTR
I2C device address:0x82 R116
100K
+2V8
+2V8

C115
100nF U29
6 1
VCC Y- EXP_IO1
14 16
Vio X- EXP_IO2
10 15
GND Y+ EXP_IO3
4 13
SCLK X+ EXP_IO4
5 12
SDAT IN3 EXP_IO5
2 11
INT IN2 EXP_IO6
7 9
Data in IN1 EXP_IO7
R121 3 8
A0/Data Out IN0 EXP_IO8
10K
C C
R131 R135 STMPE811QTR
10K 10K I2C device address:0x88 R132
+2V8 100K

+2V8

D D
STMicroelectronics
Title:

Schematics
STM32 20-21-45-46 G-EVAL IO_Expandor
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 13 of 20
1 2 3 4
57/67
Figure 30. microSD card
58/67

Schematics
1 2 3 4

A A

+3V3

R65 R9 R8 R11 R10


47K 47K 47K 47K 47K
+3V3

PC9
MicroSDCard_D1
PC8
MicroSDCard_D0
PC11
MicroSDCard_D3
PC10
MicroSDCard_D2
PC12
B MicroSDCard_CLK B
PD2
MicroSDCard_CMD
DocID022138 Rev 5

1
2
3
4
5
6
7
8
CN6
PJS008-2000
SMS064FF or SMS128FF

SW2
SW1
C C

9
10
PH13 R2
MicroSDCard_Detect
0

MicroSD card

D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL MicroSD card
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 14 of 20

UM1461
1 2 3 4
Figure 31. Motor control

UM1461
1 2 3 4

A A

+3V3

Motor control connector


R7
3.3K CN5
PI4 R14 1 2
MC_EmergencySTOP EMERGENCY STOP GND
0 PI5 3 4
MC_UH MC-UH GND
TP3 TP4 C4 PH13 5 6
MC_UL MC_UL GND
AIN- AIN+ 1nF PI6 7 8
MC_VH MC_VH GND
PH14 9 10
MC_VL MC_VL GND
PI7 11 12
MC_WH MC_WH GND R12 R13 PC4
PH15 13 14
MC_WL MC_WL BUS VOLTAGE MC_BusVoltage
PC1 R73 R219 15 16 0 0
B MC_CurrentA CURRENT A GND B
0 R74 0 0 17 18 C3 R6
CURRENT B GND
C59 19 20 100nF 100K
DocID022138 Rev 5

CURRENT C GND
do not fit PH8 21 22
MC_NTC NTC BYPASS RELAY GND
PC8 23 24
MC_DissipativeBrake DISSIPATIVE BRAKE GND R4 R5
25 26 PC5
+5V +5V POWER Heatsink Temperature MC_HeatsinkTemperature
PC2 R76 27 28 0 0
MC_CurrentB PFC SYNC Vdd_Micro +3V3
0 R77 0 29 30 C12
MC_PFCpwm PFC PWM GND
C62 PD12 31 32 100nF
MC_EnA Encoder A GND
do not fit PD13 33 34
MC_EnB Encoder B Encoder Index
MC_connector
PC3 R79 R3 PB8
MC_CurrentC MC_EnIndex
0 R80 0 Default setting: Open 0
C63 C1
do not fit do not fit

SB17
C9
PH10 R59 0 do not fit
C MC_PFCsync2 C
R57 0 SB18
PH11 Default setting: Open
MC_PFCsync1
C38 C2 C8
C10 C11 do not fit 10nF do not fit
do not fit do not fit

D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL Motor control

Schematics
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 15 of 20
1 2 3 4
59/67
Figure 32. Smartcard
60/67

Schematics
1 2 3 4

A A

+3V3

+3V3
R124 R125
10K 10K
R157
4K7 PH15
SmartCard_3/5V
U31 TP11
1 28 AUX2
CLKDIV1 AUX2UC
2 27 TP12
CLKDIV2 AUX1UC
3 26 R127 0 AUX1 PC6
5V/3V I/OUC SmartCard_IO
4 25
PGND XTAL2
+5V C125 100nF 5 24 PG7
B C1+ XTAL1 SmartCard_CLK B
6 23 R126 0 PF6
Vddp OFF SmartCard_OFF
DocID022138 Rev 5

7 22
C117 C1- GND
C126 C127 100nF 8 21
47uF Vup Vdd +3V3
100nF 9 20
PRES RSTIN C114
10 19 R128 0 C111
PRES CMDVCC 47uF
11 18 100nF
I/O PORADJ
12 17
AUX2 Vcc
13 16
AUX1 RST
14 15 +3V3
CGND CLK
ST8024CDR PF7
SmartCard_RST
C109 R123 PG12
SmartCard_CMDVCC
10K

100nF
R129
10K
5 1
GND VCC
6 2
C NC RST C
7 3
I/O CLK
8 4
NC NC
CN20 17
C816
18 R158
+3V3
100K

D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL Smart card
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 16 of 20

UM1461
1 2 3 4
Figure 33. JTAG and Trace

UM1461
1 2 3 4

+3V3
A A

R97 R101 R95 R92


[N/A][N/A][N/A][N/A]
RS7
PA13
TMS/SWDIO
PA14
TCK/SWCLK
PB3
TDO/SWO
PA15
TDI
PB4
TRST
RESET#

22
D3 D4 D5 D6 D7 D8 R96
[N/A]

Z5V1

Z5V1

Z5V1

Z5V1

Z5V1

Z5V1
CN13
B B
FTSH-110-01-L-DV CN14
+3V3 JTAG +3V3
DocID022138 Rev 5

1 1
2 2
3 3
4 4
5 5
6 6 +3V3
7 KEY 7
8 8
9 9 R98
10 10 do not fit
11 11
12 12
13 R104 0 13 R99
14 R100 do not fit 14 10K
15 R94 0 15
16 R91 do not fit 16
17 17 R105 10K
C C
18 18
19 19 R106 10K
20 20

TRACE_D3
PE6 JTAG connector
PE5
TRACE_D2
PE4
TRACE_D1
PE3
TRACE_D0
PE2
TRACE_CK

Trace connector
D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL JTAG & Trace

Schematics
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 17 of 20
1 2 3 4
61/67
Figure 34. Power
62/67

Schematics
1 2 3 4

A A

U28
ZEN056V130A24LS
CN18 U25 E5V +3V3 VDD_MCU
JP32
1 1 3 1 3
SV CV
2
3 2 4 C106
SG CG1 10uF
DC-10B 5
Z1 CG2
2
6 TP8
SMAJ5.0A-TR CG3
C112 VBUS_HS 5V
100nF BNX002-01 JP18 +5V
B B
1 2
DocID022138 Rev 5

VBUS_FS 3 4
TP13
D5V 5 6
Ground
E5V 7 8
TP7 TP10 TP9
U5V_ST_LINK 9 10
U22 3V3 U30 1V8 U26 2V8
+5V LD1086D2M33TR +3V3 LD1117S18TR +5V LD1117STR +2V8 Header 5X2
3 2 3 2 3 2
Vin Vout Vin Vout +1V8 Vin Vout
R93
GND

C113 C96 C83 C82 R114 1K


220uF 220uF 10uF 100nF C116 120
10uF

1
C110
1

R120 10uF LD9


TP6 150 C100 red
10uF

2
U21 2V5
+5V LD1117S25TR +2V5
3 2
Vin Vout
C C
C91
10uF
1

D D
STMicroelectronics
Title:
STM32 20-21-45-46 G-EVAL Power
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 18 of 20

UM1461
1 2 3 4
Figure 35. Extension connector

UM1461
1 2 3 4

A A

D5V EMU_5V
APP_3V3

APP_VCC +3V3 APP_3V3

PH14
PA13

PA12
PA10

PD13
PD11

PB15
PB14
PB12
PA8

PG8
PG6
PG4
PG2

PD9
PC8
PC7
PI2
PI0
CN3 (Top)

2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
21N22564-50S10B
CN4 (Left) CN2 (Right)

11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
1
3
5
7
9
PI3 CX1 PH11
40 39 33pF 40 39
PA14 PA15 PH10 PH9
38 37 38 37

RESET#
PC10 PC11 PH8 PH7
B 36 35 36 35 B

PH15
PH13

PA11

PD15
PD14
PD12
PD10

PH12
PC13

PB13
PC12 PD0 PH6 PB11
DocID022138 Rev 5

PG7
PG5
PG3

PD8
PC9

PC6
34 33 34 33

PI1
PD1 PD2 PB10 PE15
32 31 32 31
PD3 PE14
30 29 30 29
PD4 PD5 PE13 PE12
28 27 EMU_5V 28 27
PD6 PD7 PE11 PE10
26 25 26 25
PG9 PG10 EMU_3V3 PE9 PE8
24 23 VBUS_FS EMU_5V 24 23
PG11 PG12 PE7 PG1
22 21 22 21
PG13 PG0
20 19 20 19
PG14 PG15 VREF+ APP_3V3 PF15 PF14
18 17 18 17
PB3 PB4 PF13 PF12
16 15 16 15
PB5 PB6 PF11 PB2

EXT_PH1
14 13 14 13
PB7 BOOT0 PB1 PB0
12 11 12 11

PC13

PF10
PB8 PC5

PI11

PA1
PH2
PH3
PH5
PC2
PE2
PE4
PE6

PF1
PF3
PF4
PF6
PF8
10 9 10 9

PI9
PB9 PE0 PC4 PA7
8 7 8 7
PE1 PI4 PA6 PA5 BOOT0
6 5 6 5 BOOT0
PI5 PI6 PA4 PA3
4 3 4 3
PI7 CN1 (Buttom) PA[0..15]
2 1 2 1 PA[0..15]
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
21N22564-50S10B
21N22564-40S10B APP_VCC 21N22564-40S10B PB[0..15]

11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
C PB[0..15] C
1
3
5
7
9
PC[0..15]
PC[0..15]
EXT_PC14
EXT_PC15

EXT_PH0
PD[0..15]
PD[0..15]
PI10

PA0
PA2

PH4
PC0
PC1
PC3
PE3
PE5

PF0
PF2

PF5
PF7
PF9
PI8

PE[0..15]
PE[0..15]
EMU_5V
PF[0..15]
PF[0..15]
EMU_3V3
PG[0..15]
PG[0..15]
SB6
PH0 EXT_PH0 PH[0..15]
PH[0..15]
SB7
PH1 EXT_PH1 PI[0..11]
PI[0..11]
SB4
PC14 EXT_PC14 RESET#
RESET#
SB5
PC15 EXT_PC15
D D
Close to crystal on PCB
STMicroelectronics

Schematics
Title:
STM32 20-21-45-46 G-EVAL Extension connector
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 19 of 20
1 2 3 4
63/67
Figure 36. STLINK/V2
64/67

Schematics
1 2 3 4

+3V3
R182
100K
LED_STLINK

STM_JTCK_SWCLK
C134 C135 C133 C136
100nF 100nF 100nF 100nF R201 R202
A A
100 100

3
+3V3 R185 R186
U15 Red Yellow
+3V3
STM32F103C8T6

48
47
46
45
44
43
42
41
40
39
38
37
4K7 4K7

4
LD10
C138 X5 C139 R187 R188 HSMF-A201-A00J1

JTDI
VDD_3
VSS_3
PB9
PB8
BOOT0
PB7
PB6
PB5
JNRST
JTDO

JTCK
20pF 1 2 20pF [N/A]10K R190 AIN_1
+3V3 +3V3 0
8MHz 1 36
VBAT VDD_2
2 35
PC13 VSS_2
3 34 STM_JTMS_SWDIO
PC14 JTMS
SWIM_PU_CTRL 4 33 USB_DP +3V3
PC15 PA12
OSC_IN 5 32 USB_DM
OSC_IN PA11
OSC_OUT 6 31 T_SWO
R183 OSC_OUT PA10
STM_RST 7 30 LED_STLINK
+3V3 /RST PA9
100K 8 29 MCO
B C137 VSSA PA8 B
9 28
+3V3
100nF VDDA S2_MOSI
AIN_1 10 27
DocID022138 Rev 5

T_JTMS
PA0 S2_MISO
11 26 T_JTCK

PB2/BOOT1
PA1 S2_CK
12 25 T_SWDIO_IN

S1_MOSI
U2_TX

S1_MISO
PB12

VDD_1
U2_RX
U2_CK
S1_CK

VSS_1
PB10
PB11
PB0
PB1
13
14
15
16
17
18
19
20
21
22
23
24
T_NRST
T_JTDO

T_JRST
T_JTCK

T_JTDI

+3V3
CN17
STM_JTMS_SWDIO R184
1 2
STM_JTCK_SWCLK 100K
3 4
C 5 C
+3V3
JTAG
MCU

U5V_ST_LINK T_JTDO
TDO/SWO
+3V3 T_SWO
T_SWDIO_IN
R189 T_JTMS
TMS/SWDIO
3

10K T_NRST
RESET#
T2 T_JRST
U5V_ST_LINK TRST
2 9013 T_JTDI
TDI
T_JTCK
R191 TCK/SWCLK
CN21
1 36K JTAG
VCC
1

2 R192 10 USB_DM
D-
3 R193 10 USB_DP
D+
4
D GND D
SHELL
SHELL
0
0
R194
STMicroelectronics
USB-typeB connector 1.5K Title:
USB
STM32 20-21-45-46 G-EVAL ST-LINK/V2
Number:MB786 Rev: C.3(PCB.SCH) Date: 7/20/2016 Sheet 20 of 20

UM1461
1 2 3 4
Figure 37. 3.2” LCD module with SPI and 16-bit interface

UM1461
1 2 3 4

CN1
CS 1 6 PD1
CS PD1
RS 2 7 PD2
A RS PD2 A
WR 3 8 PD3 Soldered for i80-system 16-bit interface
WR/SCL PD3
RD 4 9 PD4
RD PD4 R1
#RESET 5 10 PD5 10K
RESET PD5 VDD
11 PD6
PD6
12 PD7
PD7 R2
13 PD8 SDO 4K7
PD8 R3
SDI 4K7
BLGND 14 PD10
PD10
22 15 PD11
BL_GND PD11
BL_Control 23 16 PD12
BL_Control PD12
24 17 PD13 Soldered for Serial interface only
VDD VDD PD13
25 18 PD14
VCI PD14 R4
26 19 PD15 0
GND PD15
27 20 PD16 CN2
GND PD16
28 21 PD17 VSYNC 36 8
BLVDD BL_VDD PD17 VSYNC IM1 RP1
SDO 29 HSYNC 37 9
SDO HSYNC IM3
SDI 30 31 XL DotClk 38 7 PD16
SDI XL DOTCLK IM0/ID
32 XR Enable 39 PD14
XR ENABLE
33 YD 5 YU PD12
B YD YU B
34 YU 11 4 YD PD10
YU NC YD
DocID022138 Rev 5

3 XR
XR
3.2LCD_connector CS 31 2 XL 10K
CS XL RP2
WR 34 30 PD0
The 34-pin connector to mother board for both WR/SCL D0
RD 35 29 PD1 PD8
serial & 16bit interface. Compatible with RD D1
RS 33 28 PD2 PD6
MB694 with Touch screen signals added on RS D2
27 PD3 PD4
Pin 31-34. D3
SDO 10 26 PD4 PD2
LCD board connector to Mother board SDO D4
SDI 12 25 PD5
SDI D5
24 PD6 10K
D6 RP3
#RESET 32 23 PD7
RESET D7
22 PD8 PD9
D8
40 21 PD9 PD0
VDD VCC D9
41 20 PD10 RS
VCC D10
BLVDD 4.7uH(1A) Z1 19 PD11 RD
D11
A 44 18 PD12
LED_A D12
L1 K 43 17 PD13 10K
LED_K D13 RP4
STPS1L40M C1 6 16 PD14
C2 VSS D14
U1 4.7uF/50V 42 15 PD15 PD17
C 2.2uF VSS D15 C
8 6 45 14 PD16 PD15
SW Vo VSS D16
1 5 BLGND 1 13 PD17 PD13
Vi NC VSS D17
BLGND 7 PD11
EN
3 4 FF0245SS1
GND FB
9 2 AM-240320D4TOQW-T00H(R) 10K
PGND Rset RP5
BL_Control R5 STLD40DPMR R6 R7 PD7
0 BLGND 100K 10 PD5
VDD PD3
R8 RP6 PD1
BLVDD
do not fit BLGND HSYNC
Enable 10K
VSYNC C3
DotClk 1uF/50V

10K

D D
STMicroelectronics
Title:

Schematics
3.2" LCD module with both SPI & 16bit interface
Number:MB785 Rev: A.1(PCB.SCH) Date: 3/27/2009 Sheet 1 of 1
1 2 3 4
65/67
Revision history UM1461

Revision history

Table 35. Document revision history


Date Revision Changes

02-Sept-2011 1 Initial release.


Updated Table 5 JP24 description. Added warning in Chapter 2.5 and
09-Oct-2011 2
note in Chapter 2.16 and Chapter 2.20.
Added note in Chapter 2.5 and updated Chapter Appendix A:
09-Jan-2012 3
Schematics.
06-Apr-2012 4 Added note in Section 2.20.
Added the following feature update throughout the document: IrDA
transceiver is only supported up to version C07 of the board (no more
supported from board version C08). Updated in Introduction,
27-Oct-2016 5 Features, Hardware layout and configuration and RS-232 and IrDA as
well as in Figure 2 and Figure 3.

Figure 17 to Figure 37 changed.

66/67 DocID022138 Rev 5


UM1461

IMPORTANT NOTICE – PLEASE READ CAREFULLY

STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and
improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order
acknowledgement.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or
the design of Purchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.

© 2016 STMicroelectronics – All rights reserved

DocID022138 Rev 5 67/67


67

You might also like