diff --git a/README.md b/README.md
index c88bc8a..7d19cbd 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-

+

@@ -51,6 +51,8 @@ You can change `WIFI_SSID` and ` WIFI_PASS` in [wifi_configuration.h](main/wifi_
You can also specify your IP in the above file (We recommend using the static address binding feature of the router).
+
+
### Debugger
diff --git a/components/DAP/source/DAP.c b/components/DAP/source/DAP.c
index 973f0fb..8f4719e 100644
--- a/components/DAP/source/DAP.c
+++ b/components/DAP/source/DAP.c
@@ -385,10 +385,13 @@ static uint32_t DAP_SWJ_Clock(const uint8_t *request, uint8_t *response) {
// clock >= 10MHz -> use 40MHz SPI
if (clock >= 10000000) {
- DAP_SPI_Init();
+ if (DAP_Data.debug_port != DAP_PORT_JTAG) {
+ DAP_SPI_Init();
+ SWD_TransferSpeed = kTransfer_SPI;
+ }
DAP_Data.fast_clock = 1U;
DAP_Data.clock_delay = 1U;
- SWD_TransferSpeed = kTransfer_SPI;
+
} else if (clock >= 2000000) {
// clock >= 2MHz -> Use GPIO with no program delay
DAP_SPI_Deinit();