pyocd-gdbserver fails when attempting to use a cmsis-pack
See original GitHub issueI can use targets supplied by a pack when running pyocd gdbserver
, but the new targets are not available when calling pyocd-gdbserver
instead.
This isn’t a big deal for command line usage, but I’m currently using an IDE extension to launch pyocd and it still uses the old command.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
pyocd-gdbserver fails when attempting to use a cmsis-pack · Issue ...
I can use targets supplied by a pack when running pyocd gdbserver, but the new targets are not available when calling pyocd-gdbserver instead....
Read more >tool-pyocd ModuleNotFoundError: No module named 'board ...
When ever i try debugging in VSC I get this error: ... path> C:\Users\<user>\.platformio\packages\tool-pyocd\pyocd-gdbserver.py -t lpc11u24.
Read more >Troubleshooting PyOCD Issues - KBA228421
1 will result in the following error; any connection to the target using gdb will fail. Solution: Upgrade to the latest stable version...
Read more >Target support - pyOCD
Target types are either built-in to pyOCD or come from CMSIS-Packs. The sections below describe more about the sources of target support.
Read more >pyOCD introduction for TF-M - Trusted Firmware
gdbserver, gdb Start gdbserver for debugging. Y pack. Manage CMSIS Device Family Packs that ... There are several options for how you debug...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Finally figured it out. 😄
pyocd-gdbserver
uses an argparse type callable to validate the target name passed to--target
(validate_target()
inpyocd/tools/gdb_server.py
). This function raisesInvalidArgumentError
for an unknown target, and is not aware of pack targets.Cool! I was going to start experimenting with the cortex-debug extension. I’ll take a look at your PR.