Something missing from zephyr sdk debugging documentation

Embedded_iceman
Tue, 02 Apr 2024 20:34:21 +0000
Firmware

Hi,

First things first, I am new to docker and Zephyr and my host machine runs W11.

I managed to get app-accelerator project 18 to build in a docker image.

Now I am stuck at launching debug server (openocd)
Execute the following command on your host machine, OUTSIDE the container:

openocd --search /usr/share/openocd/scripts --file interface/stlink.cfg --command "transport select hla_swd" --file target/stm32l4x.cfg

from Zephyr SDK - Blues Developers

It mentions to do that outside of the container environment. So I assume this must be done from WSL2 ?

Then I get

Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
hla_swd
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 500 kHz
Error: open failed

I have forwarded the USB port to wls
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0483:3754 STMicroelectronics STLINK-V3
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I am sure there are some key information missing from that page. Can someone get me on the right path here ?

5 posts - 2 participants

Read full topic