GD32F10x User Manual
205
Table 10-1. Pin assignment
Pin
Debug interface
PA15
JTDI
PA14
JTCK/SWCLK
PA13
JTMS/SWDIO
PB4
NJTRST
PB3
JTDO
By default, 5-pin standard JTAG debug mode is chosen after reset. Users can also use JTAG
function without NJTRST pin, then the PB4 can be used to other GPIO functions. (NJTRST
tied to 1 by hardware). If switch to SW debug mode, the PA15/PB4/PB3 are released to other
GPIO functions. If JTAG and SW not used, all 5-pin can be released to other GPIO functions.
General-purpose and alternate-function I/Os (GPIO and AFIO)
10.2.3.
JTAG daisy chained structure
The Cortex-M3 JTAG TAP is connected to a Boundary-Scan (BSD) JTAG TAP. The BSD JTAG
IR is 5-bit width, while the Cortec-M3 JTAG IR is 4-bit width. So when JTAG in IR shift step,
it first shift 5-bit BYPASS instruction (5’b 11111) for BSD JTAG, and then shift normal 4-bit
instruction for Cortext-M3 JTAG. Because of the data shift under BSD JTAG BYPASS mode,
adding 1 extra bit to the data chain is needed.
The BSD JTAG IDCODE is 0x790007A3.
10.2.4.
Debug reset
The JTAG-DP and SW-DP register are in the power on reset domain. The System reset
initializes the majority of the Cortex-M3, excluding NVIC and debug logic, (FPB, DWT, and
ITM). The NJTRST reset can reset JTAG TAP controller only. So, it can perform debug feature
under system reset. Such as, halt-after-reset, which is the debugger sets halt under system
reset, and the core halts immediately after the system reset is released.
10.2.5.
JEDEC-106 ID code
The Cortex-M3 integrates JEDEC-106 ID code, which is located in ROM table and mapped
on the address of 0xE00FF000_0xE00FFFFF.
10.3.
Debug hold function overview
10.3.1.
Debug support for power saving mode
When STB_HOLD bit in DBG control register (DBG_CTL) is set and entering the standby
Содержание 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 ...