1 Star 2 Fork 3

XIVN1987/DAPLink

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

DAPLink

DAPLink (CMSIS-DAP) porting to Artery AT32F425, WCH CH32V203 and WCH CH32V305.

DAPLink-AT32F425

DAPLink (CMSIS-DAP) based on Artery AT32F425 (support crystal-less USB), supports SWD, JTAG and CDC.

On C/C++ page of Keil Option Window:

  • Define DAP_FW_V1: generate CMSIS-DAP V1 firmware, using HID transport protocol.
  • Do not define DAP_FW_V1: generate CMSIS-DAP V2 firmware, using WINUSB transfer protocol.

Pin map

FUNC Pin
SWD_CLK PA.1
SWD_DIO PA.0
SWD_RST PA.4
CDC_TXD PA.2
CDC_RXD PA.3
JTAG_TDI PA.7
JTAG_TDO PA.6

Sch & PCB: https://oshwhub.com/xivn1987/daplink

DAPLink-CH32V203

DAPLink (CMSIS-DAP) based on WCH CH32V203 (support crystal-less USB), supports SWD, JTAG and CDC.

On Properties for DAPLink -> C/C++ Build -> Settings -> C Compiler -> Preprocessor page:

  • Define DAP_FW_V1: generate CMSIS-DAP V1 firmware, using HID transport protocol.
  • Do not define DAP_FW_V1: generate CMSIS-DAP V2 firmware, using WINUSB transfer protocol.

Pin map

FUNC Pin
SWD_CLK PA.1
SWD_DIO PA.0
SWD_RST PA.4
CDC_TXD PA.2
CDC_RXD PA.3
JTAG_TDI PA.7
JTAG_TDO PA.6

Sch & PCB: https://oshwhub.com/xivn1987/daplink

DAPLink-CH32V305

DAPLink (CMSIS-DAP) based on WCH CH32V305 (High Speed USB with on-chip PHY), supports SWD, JTAG and CDC.

Pin map

FUNC Pin
SWD_CLK PB.13
SWD_DIO PB.12
SWD_RST PC.8
CDC_TXD PB.10
CDC_RXD PB.11
JTAG_TDI PB.15
JTAG_TDO PB.14

Sch & PCB: https://oshwhub.com/xivn1987/DAPLink-HS

Speed Test

test command

pyocd erase -t stm32f411ce -f 5mhz --chip
pyocd flash -t stm32f411ce -f 5mhz random_512k.bin

test result

probe pyocd print
AT32F425 HID Erased 524288 bytes (8 sectors), programmed 524288 bytes (512 pages), skipped 0 bytes (0 pages) at 17.24 kB/s
AT32F425 WINUSB Erased 524288 bytes (8 sectors), programmed 524288 bytes (512 pages), skipped 0 bytes (0 pages) at 38.34 kB/s
CH32V203 HID Erased 524288 bytes (8 sectors), programmed 524288 bytes (512 pages), skipped 0 bytes (0 pages) at 17.26 kB/s
CH32V203 WINUSB Erased 524288 bytes (8 sectors), programmed 524288 bytes (512 pages), skipped 0 bytes (0 pages) at 38.16 kB/s
CH32V305 HID Erased 524288 bytes (8 sectors), programmed 524288 bytes (512 pages), skipped 0 bytes (0 pages) at 35.44 kB/s
MIT License Copyright (c) 2019 XIVN1987 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

DAPLink (CMSIS-DAP) porting to Artery AT32F425, WCH CH32V203 and WCH CH32V305. 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/XIVN1987/DAPLink.git
git@gitee.com:XIVN1987/DAPLink.git
XIVN1987
DAPLink
DAPLink
master

搜索帮助