Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interfaces:daplink [2022/11/24 21:24] – darron | interfaces:daplink [2023/07/22 02:14] (current) – darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== DAPLink ==== | ==== DAPLink ==== | ||
+ | <wrap right> | ||
+ | {{interfaces: | ||
+ | </ | ||
- | ===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. | ||
< | < | ||
- | openocd | + | # wch.cn WCH-Link CMSIS-DAP (clone) |
+ | SUBSYSTEMS=="usb",\ | ||
+ | ATTRS{idVendor}=="2a86", | ||
+ | ATTRS{idProduct}==" | ||
+ | MODE: | ||
+ | KERNEL==" | ||
+ | ATTRS{idVendor}==" | ||
+ | ATTRS{idProduct}==" | ||
+ | GROUP: | ||
+ | MODE:="0666" | ||
</ | </ | ||
- | No device connected | + | ===OpenOCD=== |
+ | |||
+ | ==Probe== | ||
+ | |||
+ | __[[boards: | ||
< | < | ||
+ | openocd -c " | ||
Open On-Chip Debugger 0.12.0-rc2+dev-00012-g4e077fdda (2022-11-12-16: | Open On-Chip Debugger 0.12.0-rc2+dev-00012-g4e077fdda (2022-11-12-16: | ||
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, | ||
+ | Info : starting gdb server for stm32f1x.cpu on 3333 | ||
+ | Info : Listening on port 3333 for gdb connections | ||
</ | </ | ||
===Resources=== | ===Resources=== | ||
[[https:// | [[https:// |