硬汉嵌入式论坛

 找回密码
 立即注册
查看: 184|回复: 0
收起左侧

[MDK] Switch Keil Debug Interface from JTAG to SWD or SWD to JTAG

[复制链接]

2

主题

54

回帖

60

积分

初级会员

积分
60
发表于 2025-8-2 18:27:37 | 显示全部楼层 |阅读模式
本帖最后由 electro016 于 2025-8-3 00:13 编辑

Switch Keil Debug Interface from JTAG to SWD:
  • Open your project in Keil (uVision).
  • Go to:
    Project→ Options for Target 'Target 1'(or whatever your target is named).
  • Select the "Debug" tab.
  • Click on the "Settings" button next to the selected debugger (should be J-Link / J-Trace).
  • In the new window:

    • Set "J-Link/J-Trace Adapter" Port to SWD instead of JTAG.
    • Keep speed at default or set to something safe like 1000–4000 kHz (Max can change) .

  • Click OK to save settings.
  • Now try flashing again ( F8 or "Load" button).

Switch Keil Debug Interface from SWD to JTAG :
  • Open your project in Keil (uVision).
  • Go to:
    Project→ Options for Target 'Target 1'(or whatever your target is named).
  • Select the "Debug" tab.
  • Click on the "Settings" button next to the selected debugger (should be J-Link / J-Trace).
  • In the new window:

    • Set "J-Link/J-Trace Adapter" Port to JTAGinstead of SWD .
    • Keep speed at default or set to something safe like 1000–10000 kHz (Max can change) .

  • Click OK to save settings.
  • Now try flashing again ( F8 or "Load" button).




2025-08-02_152444.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-8-11 23:55 , Processed in 0.039673 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表