The STM3240G-EVAL evaluation board is a complete demonstration and development
platform for the STM32F4 Series and includes an embedded STM32F407IGH6 highperformance ARM
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.
•Both ISO/IEC 14443 type A and B smartcard support
2
•I
C 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
2
•I
S 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/67DocID022138 Rev 5
Page 7
UM1461Hardware layout and configuration
1.3 Ordering information
To order the STM3240G-EVAL evaluation board, refer to Table 1:
.
Table 1. Ordering information
Order codeBoard
STM3240G-EVALSTM32F407IGH6
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).
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.
Figure 3 locates these features on
DocID022138 Rev 57/67
Page 8
Hardware layout and configurationUM1461
069
05[[[[[9
670),*+
56
WUDQVFHLYHU
,U'$
WUDQVFHLYHU
6PDUWFDUG
LQWHUIDFH
9UHJXODWRU
7)7/&'
0LFUR6'
&DUG
$XGLR'$&
0&FRQWURO
FRQQHFWRU
/('V.H\
-7$*
0(06
3RWHQWLRPHWHU
6PDUWFDUG
FRQQHFWRU
,QWHJUDWHG5-
FRQQHFWRU
56
'%FRQQHFWRU
$'&
,6
*3,2
0,,50,,
86$57
,&
([WHQVLRQ
FRQQHFWRUIRU
*3,2V
3+<
86$57
&$1
&$1
WUDQVFHLYHU
&$1
'%FRQQHFWRU
0&
6',2
7UDFH
'HEXJ
27*)6
86%0LFUR$%
FRQQHFWRU
((3520
,2H[SDQGRU
-R\VWLFN
7RXFKVFUHHQ
86%SRZHU
VZLWFK
&$1
9UHJXODWRU
9UHJXODWRU
9UHJXODWRU
'&0,
&DPHUD
PRGXOH
27*+6
86%0LFUR$%
FRQQHFWRU
86%SRZHU
VZLWFK
86%+6
3+<
'$&
)60&
65$0
67/,1.9
&DPHUDH[WHQVLRQ
FRQQHFWRU
0LFURSKRQH
$PSOLILHU
$XGLR-DFN
$'&
Figure 2. Hardware layout and configuration
2. The IrDA transceiver is present up to version C07 of the board
8/67DocID022138 Rev 5
Page 9
UM1461Hardware layout and configuration
06 9
&1
0RWRUF RQWURO
&1
0LFUR6'&DUG
&1
7UDFH
&1
-7$*
8
,U'$
&1
86%27*)6
&1
86%27*+6
&1
67/,1.9
&1
&RORU/&'
&1
&DPHUDPRGXOH
&1
&DPHUDH[WHQVLRQ
FRQQHFWRU
8
-R\VWLFN
%
8VHUNH\
%
7DPSHU
&1
6PDUWFDUG
%
:DNHXS
%
5HVHW
59
3RWHQWLRPHWHU
&1
9SRZHUMDFN
&1
$XGLRMDFN
&1
86$57
&1
&$1
8
670),*+
&1
5-
FRQQHFWRU
&1&1
([WHQVLRQ
CONNECTOR
$4"
Figure 3. STM3240G-EVAL evaluation board layout
3. IrDA is not populated on the board from version C08 of the board
DocID022138 Rev 59/67
Page 10
Hardware layout and configurationUM1461
HS
FS
DTB
PSU
STlk
HS
FS
DTB
PSU
STlk
HS
FS
DTB
PSU
STlk
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
in
Tabl e 2.
JumperDescription
JP4
JP32
Table 2. Power related jumpers and solder bridges
JP4 should be fitted to enable power down reset (PDR). PDR is disabled when JP4
is not fitted.
Default setting: Fitted.
MCU_VDD is connected to 3.3V power when JP32 is closed and MCU current
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:
(Default setting)
To select power supply jack (CN18) power supply, set
JP18 as shown:
JP18
To select daughterboard connector (CN1 and CN3)power
supply, set JP18 as shown:
10/67DocID022138 Rev 5
Page 11
UM1461Hardware layout and configuration
HS
FS
DTB
PSU
STlk
HS
FS
DTB
PSU
STlk
HS
FS
DTB
PSU
STlk
321
321
Table 2. Power related jumpers and solder bridges (continued)
JumperDescription
To select USB-OTG FS (CN8) power supply, set JP18 as
shown:
To select USB-OTG HS (CN9)power supply, set JP18 as
shown:
JP18
(cont.)
To select power supply jack (CN18) power supply to both
STM3240G-EVAL and daughterboard connected on CN1
and CN3, set JP18 as shown (daughterboard must not have its own power supply connected)
To connect Vbat to the battery, set JP19 as shown:
JP19
To connect Vbat to 3.3V power, set JP19 as shown:
(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.
BOOT 0BOOT 1Boot source
0Don’t careSTM3240G-EVAL boots from User Flash (Default setting)
11STM3240G-EVAL boots from Embedded SRAM
Table 3. Boot related jumpers
10STM3240G-EVAL boots from System Memory
DocID022138 Rev 511/67
Page 12
Hardware layout and configurationUM1461
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/67DocID022138 Rev 5
Page 13
UM1461Hardware layout and configuration
321
321
321
321
JumperDescription
JP16Description of JP16 is in Table 11 on page 16.
JP33The 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.
JumperDescription
JP24
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 4. Audio related jumpers
Table 5. EEPROM related jumper and solder bridge
The EEPROM is in Write Protection mode when JP24 is not fitted.
Default Setting: Not fitted
Table 6.
High-speed, Standby and Slope Control modes are available and are selected by setting
jumper JP7.
JumperDescription
JP3
JP10
Table 6. CAN-related jumpers
To connect CAN1_TX to CAN transceiver, set JP3 as shown:
To connect CAN2_TX to CAN transceiver, set JP3 as shown:
To connect CAN1_RX to CAN transceiver, set JP10 as shown:
To connect CAN2_RX to CAN transceiver, set JP10 as shown:
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 513/67
Page 14
Hardware layout and configurationUM1461
321
321
321
321
Table 6. CAN-related jumpers (continued)
JumperDescription
To enable the selected CAN transceiver to work in Standby mode,
set JP7 as shown:
JP7
JP9
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.
To enable the selected CAN transceiver to work in High-speed
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.
(Default setting: not fitted)
Table 7. RS-232 and IrDA related jumper
JumperDescription
To connect USART3_RX to IrDA transceiver and enable IrDA communication,
set JP22 as shown (this configuration is useless from version C08 of the board):
JP22
JP29
JP34
14/67DocID022138 Rev 5
To connect USART3_RX to RS-232 transceiver and enable RS-232
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
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
fitted. This configuration is used for boot loader application only.
Default setting: Not fitted.
Page 15
UM1461Hardware 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
bridge
SB18
SB17
SB16
SB10
SB12
SB14
SB15
Description
When closed, SB18 redirects the PFC synchronized signal to the
timer 3 input capture pin 2 in addition to the timer 3 external trigger
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
closed.
Default setting: Open
To connect MC_EmergencySTOP to PI4, close SB16.
Default setting: Open
To connect MC_EnIndex to PB8, close SB10.
Default setting: Open
To connect MC_CurrentA to PC1, close SB11.
Default setting: Open
To connect MC_CurrentB to PC2, close SB12.
Default setting: Open
To connect MC_EnB to PD13, close SB14.
Default setting: Open
To connect MC_EnA to PD12 close SB15.
Default setting: Open
Multiplexed
peripherals
-
-
Camera module
connected to
CN15
EthernetSB11
FSMC
Note:1Some 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
2microSD card must be removed from CN6 for motor control application.
DocID022138 Rev 515/67
Page 16
Hardware layout and configurationUM1461
321
321
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. Connection between ST8024 and STM32F407IGH6
Tabl e 9:
ST8024 signalsDescription
5V/3VSmartcard power supply selection pinPH15
I/OUCMCU data I/O linePC6
XTAL1Crystal or external clock inputPG7
OFF
RSTINCard reset input from MCUPF7
CMDVCC
Detect presence of a card, MCU interrupt, share same pin
with motor controller
Start activation sequence input (Active Low), share same pin
with I2S DAC and Motor control
Connect to
STM32F407IGH6
PF6
PG12
Smartcard shares some I/Os with I2S bus for Audio. Some jumper settings need to be
reconfigured to enable smartcard as indicated below:
JumperDescription
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
Table 10. Smartcard related jumper
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.
JumperDescription
JP22Description 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
right: (Default setting):
JP16
PC9 is connected to I2S_CKIN when JP16 is set as show to the right:
16/67DocID022138 Rev 5
Table 11. microSD card related jumpers
Page 17
UM1461Hardware 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:
JumperDescription
JP8
Table 12. Ethernet related jumpers and solder bridges
JP8 is used to select MII or RMII interface mode.
To enable MII, JP8 is not fitted. To enable RMII interface mode, JP8 is fitted.
Default setting: Not fitted
DocID022138 Rev 517/67
Page 18
Hardware layout and configurationUM1461
321
321
321
321
Table 12. Ethernet related jumpers and solder bridges (continued)
JumperDescription
To enable MII interface mode, set JP6 as shown (Default setting):
JP6
JP5
SB1
To enable RMII interface mode, set JP6 as shown:
To provide 25 MHz clock for MII or 50 MHz clock for RMII by MCO at PA8, set
JP5 as shown (Default setting):
To provide 25 MHz clock by external crystal X1 (for MII interface mode only) set
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.
The resistor R212 has to be removed in this case.
Default setting: Closed.
Note:1A test point (TP2) is available on the board for the PTP_PPS feature test.
2The Ethernet PHY (U5) can be powered down by regulating PB14.
3In 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.
JumperDescription
JP31
To disable USB-OTG PHY U8, JP31 is not fitted.
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.
Table 13. microSD card related jumper
18/67DocID022138 Rev 5
Page 19
UM1461Hardware 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
JumperDescription
JP26To set power down mode for the camera module, JP26 is fitted. Default setting: Not Fitted
SB16Description of SB16 is in Section 2.9: Motor control.
Note:1When the camera demo loaded in Flash is executed, some green pixels may appear in high
contrast zones, depending on the image captured.
2The 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.
Table 14. Camera module related jumpers
4. Picture is not contractual
Figure 4. Pin 1 camera plug
DocID022138 Rev 519/67
Page 20
Hardware layout and configurationUM1461
321
321
321
321
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.
JumperDescription
Connect PE4 to SRAM as A20 by setting JP1 as shown (Default setting):
Table 15. SRAM related jumpers
JP1
JP2
Connect PE4 to trace connector CN13 as TRACE_D1 by setting JP1 as shown:
Connect PE3 to SRAM as A19 by settiing JP2 as shown (Default setting):
Connect PE3 to trace connector CN13 as TRACE_D0 by setting JP2 as shown:
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
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 VXToolset support ST-LINK/V2 according to the following table:
MHz the ETM trace output is not guaranteed.
Table 16. Third-party toolchain support
ManufacturerToolchainVersion
AtollicTrueSTUDIO2.1
IAREWARM6.20.4
KeilMDK-ARM4.20
TaskingVX-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/67DocID022138 Rev 5
Page 21
UM1461Hardware 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:1It 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).
2If the I2S interface is used, refer to the warning in Chapter 2.5.
DocID022138 Rev 521/67
Page 22
Hardware layout and configurationUM1461
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
CN19
1CSFSMC_NE3 (PG10)18PD14FSMC_D12
2RSFSMC_A019PD15FSMC_D13
3WR/SCLFSMC_NWE20PD16FSMC_D14
4RDFSMC_NOE21PD17FSMC_D15
5RESETRESET#22BL_GNDGND
6PD1FSMC_D023BL_Control+5V
7PD2FSMC_D124VDD+3V3
8PD3FSMC_D225VCI+3V3
9PD4FSMC_D326GNDGND
10PD5FSMC_D427GNDGND
11PD6FSMC_D528BL_VDD+5V
12PD7FSMC_D629SDONC
13PD8FSMC_D730SDINC
14PD10FSMC_D831XLI/O expander U24
15PD11FSMC_D932XRI/O expander U24
16PD12FSMC_D1033YDI/O expander U24
Pin namePin connection
Pin on
CN19
Pin namePin connection
17PD13FSMC_D1134YUI/O expander U24
22/67DocID022138 Rev 5
Page 23
UM1461Connectors
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
- As an option, RFU could be tied to VDD or VSS for forward
compatibility with future STM32F products. However, user may leave
RFU pin connected to VDD, or VSS, or NC for STM32F2xx exclusive
use.
- JP4 should be fitted for future backward compatibility
Figure 37. 3.2” LCD module with SPI and 16-bit interface
UM1461Schematics
DocID022138 Rev 565/67
1
CS
AA
BB
CC
RS
WR
RD
#RESET
BLGND
BL_Control
VDD
BLVDD
SDO
SDI
LCD board connector to Mother board
CS
2
RS
3
WR/SCL
4
RD
5
RESET
22
BL_GND
23
BL_Control
24
VDD
25
VCI
26
GND
27
GND
28
BL_VDD
29
SDO
30
SDI
3.2LCD_connector
PD10
PD11
PD12
PD13
PD14
PD15
PD16
PD17
BLVDD
BLGND
BL_Control
BLVDD
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PD8
XL
XR
YD
YU
C2
2.2uF
CN1
1
PD1
6
7
PD2
8
PD3
9
PD4
10
PD5
11
PD6
12
PD7
13
PD8
14
PD10
15
PD11
16
PD12
17
PD13
18
PD14
19
PD15
20
PD16
21
PD17
31
XL
32
XR
YD
33
YU
34
The 34-pin connector to mother board for both
serial & 16bit interface. Compatible with
MB694 with Touch screen signals added on
Pin 31-34.
4.7uH(1A)
L1
U1
8
SW
1
Vi
7
EN
GND3FB
9
PGND
STLD40DPMR
R8
R5
0
do not fit
BLGND
Z1
STPS1L40M
Vo
NC
Rset
2
VSYNC
HSYNC
DotClk
Enable
CS
WR
RD
RS
SDO
SDI
#RESET
VDD
A
C1
R6
100K
BLGND
BLGND
4.7uF/50V
R7
10
6
5
4
2
K
CN2
36
VSYNC
37
HSYNC
38
39
11
31
34
35
33
10
12
32
40
41
44
43
6
42
45
1
HSYNC
Enable
VSYNC
DotClk
IM0/ID
DOTCLK
ENABLE
NC
CS
WR/SCL
RD
RS
SDO
SDI
RESET
VCC
VCC
LED_A
LED_K
VSS
VSS
VSS
VSS
FF0245SS1
AM-240320D4TOQW-T00H(R)
RP6
10K
IM1
IM3
YU
YD
XR
D10
D11
D12
D13
D14
D15
D16
D17
VDD
XL
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
3
Soldered for i80-system 16-bit interface
R1
10K
VDD
R2
SDO
SDI
Soldered for Serial interface only
8
9
7
YU
5
YD
4
XR
3
XL
2
30
PD0
PD1
29
PD2
28
PD3
27
PD4
26
PD5
25
PD6
24
PD7
23
PD8
22
PD9
21
PD10
20
PD11
19
PD12
18
PD13
17
PD14
16
PD15
15
PD16
14
PD17
13
C3
1uF/50V
PD16
PD14
PD12
PD10
PD8
PD6
PD4
PD2
PD9
PD0
RS
RD
PD17
PD15
PD13
PD11
PD7
PD5
PD3
PD1
4K7
R3
4K7
R4
0
RP1
10K
RP2
10K
RP3
10K
RP4
10K
RP5
10K
4
DD
1
2
3
STMicroelectronics
Title:
3.2" LCD module with both SPI & 16bit interface
Number:Rev:Sheet of
MB78511
A.1(PCB.SCH)
Date:
3/27/2009
4
Page 66
Revision historyUM1461
Revision history
DateRevisionChanges
02-Sept-20111Initial release.
09-Oct-20112
09-Jan-20123
06-Apr-20124Added note in Section 2.20.
27-Oct-20165
Table 35. Document revision history
Updated Table 5 JP24 description. Added warning in Chapter 2.5 and
note in Chapter 2.16 and Chapter 2.20.
Added note in Chapter 2.5
Schematics.
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,
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.
and updatedChapter Appendix A:
66/67DocID022138 Rev 5
Page 67
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.