No output for SWV/SWO
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 560
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 3
Description
PyOCD 0.36.0
STM32F334
I'm trying to get SWV output and so far I'm getting no output. I have semihosting and SWV set up in my firmware and the SWV output is working in STM32CubeIDE.
The CubeIDE support is fine for interactive debugging, but what I really need is to get SWV output into an automated test system, and was hoping PyOCD could enable this.
Here's my setup:
PyOCD:
pyocd gdb -S -Oenable_swv=1 -Oswv_system_clock=80000000 -Oswv_clock=2000000 -Osemihost_console_type=console
My clock settings are correct, they match my working Cube config.
Then I run GDB:
arm-none-eabi-gdb -ex "target remote localhost:3333" -ex "monitor reset halt" -ex "monitor arm semihosting enable" -ex 'continue
No SWV output to console. I have tried Telnet to port 3443 (SWV raw server), no output there. I have also tried the telnet option for semihost_console_type, no output there either.
Anything else I can try? I don't know if this is a bug or maybe I just missed something in the docs? I went through several times but maybe I missed a config option or something.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files, tests, or entry points are named. Start by reproducing the pyocd gdb command with the supplied SWV and semihosting options, then check the GDB, SWV raw server, and semihosting console paths; done means identifying why the configured output is absent or documenting the required configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100