Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
interfaces:daplink [2022/11/24 21:24] darroninterfaces:daplink [2023/07/22 02:14] (current) darron
Line 1: Line 1:
 ==== DAPLink ==== ==== DAPLink ====
 +<wrap right>
 +{{interfaces:daplink-maple.jpg?200}}
 +</wrap>
  
-===OpenOCD===+There are cheap clones of simple CMSIS-DAP interfaces from China.
  
-Test+They support ARM SWD and UART I/O when they actually work which 
 +is a rare occurrence. I gave up with it now. 
 + 
 +They are unable to reset the target which may be a problem when 
 +the target is in sleep mode. 
 + 
 +These devices may not work on some unpowered hubs since they 
 +demand 500mA current. 
 + 
 +NB Always wire the ground wire even if you think you do not need to.
  
 <code> <code>
-openocd -c "adapter driver cmsis-dap; cmsis_dap_vid_pid 0x2a86 0x8011-c "adapter speed 500-c "transport select swd"+# wch.cn WCH-Link CMSIS-DAP (clone) 
 +SUBSYSTEMS=="usb",\ 
 +    ATTRS{idVendor}=="2a86",
 +    ATTRS{idProduct}=="8011",
 +    MODE:="0666" 
 +KERNEL=="ttyACM*",
 +    ATTRS{idVendor}=="2a86",
 +    ATTRS{idProduct}=="8011",
 +    GROUP:="dialout",
 +    MODE:="0666"
 </code> </code>
  
-No device connected+===OpenOCD=== 
 + 
 +==Probe== 
 + 
 +__[[boards:maple|Maple Mini]]__
  
 <code> <code>
 +openocd -c "adapter driver cmsis-dap; cmsis_dap_vid_pid 0x2a86 0x8011" -c "adapter speed 500" -c "transport select swd" -f "target/stm32f1x.cfg"
 Open On-Chip Debugger 0.12.0-rc2+dev-00012-g4e077fdda (2022-11-12-16:05) Open On-Chip Debugger 0.12.0-rc2+dev-00012-g4e077fdda (2022-11-12-16:05)
 Licensed under GNU GPL v2 Licensed under GNU GPL v2
Line 26: Line 52:
 Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
 Info : CMSIS-DAP: Interface ready Info : CMSIS-DAP: Interface ready
-Info : clock speed 500 kHz +Info : clock speed 1000 kHz 
-Warn : gdb services need one or more targets defined+Info SWD DPIDR 0x1ba01477 
 +Info : [stm32f1x.cpu] Cortex-M3 r1p1 processor detected 
 +Info : [stm32f1x.cpu] target has 6 breakpoints, 4 watchpoints 
 +Info : starting gdb server for stm32f1x.cpu on 3333 
 +Info : Listening on port 3333 for gdb connections
 </code> </code>
 ===Resources=== ===Resources===
  
 [[https://github.com/kaidegit/CMSIS-DAPbyWCH|Project page]] [[https://github.com/kaidegit/CMSIS-DAPbyWCH|Project page]]