Troubleshooting Guide for HT32 MCU SWD
Interface Usage Problems
D/N: AN0677EN
Introduction
Holtek HT32 series of MCUs are based on an Arm
Serial Wire Debug (SWD) ports namely SW-DP/SWJ-DP, which makes development,
programming and debugging more convenient. However, during hardware design when using the
SWD, users may encounter some abnormal situations, which affect project development. This
application note provides users with a comprehensive troubleshooting guide for SWD interface
problems and includes possible errors which may occur during connection, communication and
other conditions. This guide will assist users to use the SWD interface more easily, saving
development time to make the project more efficient.
Holtek has released a USB debugging tool named e-Link32 Pro/Lite, which has been developed
based on the Arm
port, users can program and debug the program on the target MCU via the SWD under the
development environment or with a programming tool. The following figure shows the connection
relations. This text will take the e-Link32 Pro/Lite as an example to introduce the SWD, common
error messages and troubleshooting steps. The SWD related instructions and debug information are
also used for a common USB debug adapter such as ULINK2 or J-Link.
AN0677EN V1.00
Troubleshooting Guide for HT32 MCU SWD Interface Usage Problems
®
CMSIS-DAP reference design. By connecting the target board to the PC's USB
Host PC
USB
USB Host
Figure 1. SWD Connection Diagram
1 / 18
Cortex
-M core. The core contains integrated
®
®
e-Link32 Pro / Lite
SWD
CMSIS-DAP
Target MCU
SW-DP
May 21, 2024
Need help?
Do you have a question about the HT32 Series and is the answer not in the manual?
Questions and answers