question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyocd-gdbserver fails when attempting to use a cmsis-pack

See original GitHub 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.

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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
flitcommented, Mar 22, 2019

Finally figured it out. 😄 pyocd-gdbserver uses an argparse type callable to validate the target name passed to --target (validate_target() in pyocd/tools/gdb_server.py). This function raises InvalidArgumentError for an unknown target, and is not aware of pack targets.

2reactions
flitcommented, Mar 16, 2019

Cool! I was going to start experimenting with the cortex-debug extension. I’ll take a look at your PR.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found