GD32F10x User Manual
204
10.
Debug (DBG)
10.1.
Overview
The GD32F10x series provide a large variety of debug, trace and test features. They are
implemented with a standard configuration of the Arm CoreSight
TM
module together with a
daisy chained standard TAP controller. Debug and trace functions are integrated into the Arm
Cortex-M3. The debug system supports serial wire debug (SWD) and trace functions in
addition to standard JTAG debug. The debug and trace functions refer to the following
documents:
Cortex-M3 Technical Reference Manual
Arm Debug Interface v5 Architecture Specification
The DBG hold unit helps debugger to debug power saving mode, TIMER, I2C, WWDGT,
FWDGT and CAN. When corresponding bit is set, provide clock when in power saving mode
or hold the state for TIMER, WWDGT, FWDGT, I2C or CAN.
10.2.
JTAG/SW function overview
Debug capabilities can be accessed by a debug tool via Serial Wire (SW - Debug Port) or
JTAG interface (JTAG - Debug Port).
10.2.1.
Switch JTAG or SW interface
By default, the JTAG interface is active. The sequence for switching from JTAG to SWD is:
Send 50 or more TCK cycles with TMS = 1.
Send the 16-bit sequence on TMS = 1110011110011110 (0xE79E LSB first).
Send 50 or more TCK cycles with TMS = 1.
The sequence for switching from SWD to JTAG is:
Send 50 or more TCK cycles with TMS = 1.
Send the 16-bit sequence on TMS = 1110011100111100 (0xE73C LSB first).
Send 50 or more TCK cycles with TMS = 1.
10.2.2.
Pin assignment
The JTAG interface provides 5-pin standard JTAG, known as JTAG clock (JTCK), JTAG mode
selection (JTMS), JTAG data input (JTDI), JTAG data output (JTDO) and JTAG reset
(NJTRST, active low). The serial wire debug (SWD) provide 2-pin SW interface, known as
SW data input/output (SWDIO) and SW clock (SWCLK). The two SW pin are multiplexed with
two of five JTAG pin, which is SWDIO multiplexed with JTMS, SWCLK multiplexed with JTCK.
The JTDO is also used as Trace async data output (TRACESWO) when async trace enabled.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...