Hardware layout and configuration
UM1668
10/70
DocID025151 Rev 2
2.1 Development
and debug support
Version 2 of the ST-LINK (ST-LINK/V2) is embedded on the board. This tool allows on-board
program loading and debugging of the STM32 using a JTAG or SWD interface. Third-party
debug tools are also supported by the JTAG/SWD connector, CN16, and ETM Trace
connector, CN13.
A specific driver must be installed by the user on his PC to communicate with the embedded
ST-LINK/V2. An install shield called
ST-LINK_V2_USBdriver.exe
is available on the web. To
download and install this driver, refer to the Software and development tools page for
STM32 on
www.st.com
.
Third-party toolchains, ARM
®
Atollic
®
TrueSTUDIO
®
, KEIL
TM
MDK-ARM
TM
, IAR
EWARM
®
and Altium
®
, TASKING™ VX-Toolset support ST-LINK/V2 according to the
following table:
The embedded ST-LINK/V2 is connected to the PC via a standard USB cable connected to
connector CN21. The bicolor LED LD11 (COM) indicates the status of the communication as
follows:
•
Red LED slow blinking/Off: At power on before USB initialization
•
Red LED fast blinking/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
•
Red/Green LED blinking: During communication with target
•
Red LED On: Communication finished and OK
•
Orange LED On: Communication failure
Note:
The board can be powered via CN21 (embedded ST-LINK/V2 USB connector) even if an
external tool is connected to CN13 (ETM trace connector) or CN16 (external JTAG & SWD
connector).
By default ETM only works at 50 MHz clock because ETM signals are shared with other
peripherals.
If best performance of ETM is required (90 MHz), then R29, R32, R34, R36, R40, R114 and
R120 must be removed to reduce the stub on ETM signals. In this case SAI and camera are
not functional and NOR Flash and SRAM's addresses are limited on A18.
Caution:
When an external high speed debug tool connected to CN13 or CN16 is used for program
loading or debugging, it is recommended to remove ESD protections D9 to D13 connected
on JTAG signals.
Table 1. Third-party toolchains
Third-party
Toolchains
Version
ARM
Atollic TrueSTUDIO
2.1
IAR
EWARM
6.20
Keil
MDK-ARM
4.20
Altium
Tasking VX-Toolset
4.0.1
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from