xpack-dev-tools / openocd-xpack

A binary distribution of OpenOCD
https://xpack-dev-tools.github.io/openocd-xpack/
MIT License
345 stars 57 forks source link

Error: CMSIS-DAP: SWD not supported on Arm64 #32

Closed zh522130 closed 2 months ago

zh522130 commented 2 months ago

Prerequisites

Description

Error: CMSIS-DAP: SWD not supported on Arm64

Steps to Reproduce

  1. Run Command:openocd -f interface/cmsis-dap.cfg -f target/stm32h7x.cfg -c "adapter_khz 10000"
  2. Log:

xPack Open On-Chip Debugger 0.12.0+dev-01685-gb9224c0c0-dirty (2024-08-02-19:57) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "swd". To override use 'transport select '. DEPRECATED! use 'adapter speed' not 'adapter_khz' adapter speed: 10000 kHz Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : Using CMSIS-DAPv2 interface with VID:PID=0x0d28:0x0204, serial=012345ABCDEF Error: CMSIS-DAP: SWD not supported



**Expected behaviour:** 

Communicating with the MCU via SWD.

**Actual behaviour:** [What actually happened]

`Error: CMSIS-DAP: SWD not supported` on Arm64

### Versions

0.12.0-4

- [OpenOCD version]

- 0.12.0-4

- [operating system]

linux Arm64 (buildroot)

---
zh522130 commented 2 months ago

This is not an xpack issue; it might be my system or openocd. I encounter the same problem when compiling directly from openocd.