Coder Social home page Coder Social logo

dap's Introduction

代码来源

基于梁山派 daplink 改了串口的代码,修复了原版串口数据偶尔异常的问题,把原版一直闪烁的led灯改为了串口有数据传输时闪烁,同时把原版固定序列号改为了使用芯片唯一id作为usb序列号。其中串口和usb序列号的代码来源于 abgelehnt 的Tiny-DAPLink

功能说明

  • 支持SWD接口
  • 支持虚拟串口
  • 支持多个daplink同时使用
  • 仅支持winusb通讯
  • 仅支持5V电压下工作

硬件说明

参考 wanfang 的开源工程https://oshwhub.com/wanfang/ch552g-fang-zhen-qi 或者 梁山派 daplink 的开源工程https://oshwhub.com/lengyuefeng/a7c57e6d86bd47789178df3fda9219dc

原理图

软件说明

自行使用keil编译,或直接使用我编译好的固件烧录即可

文件说明

C:.
│  CH552.H      //芯片头文件
│  DAP.c        //DAP源码
│  DAP.h        //DAP头文件
│  Debug.c      //芯片配置
│  Debug.h      //芯片配置头文件
│  main.c       //主程序与USB中断服务函数
│  readme.md
│  SW_DP.c      //SDW源码
│  Uart.c       //串口
│  Uart.h       //串口头文件
│  
├─firmware      //固件可直接烧录
│      CH55x_DAPLink.hex
│      
├─image         //原理图
│      原理图.png
│      
└─tool          //可能使用的工具
        CMSIS_DAP.dll   //5.28winusb无法识别补丁
        keil4.exe       //keil4安装包
        WCHISPTool_Setup.exe    //下载工具

鸣谢

https://gitee.com/lcsc/lspiclink

https://github.com/abgelehnt/Tiny-DAPLink

dap's People

Contributors

retuze avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.