pyocd / pyocd/pyOCD

Some errors occured when starting debug with Eclipse+pyOCD+JLink

Open
#1,107 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

under-investigation
Dominant language
Python
Stars
1.5k
Forks
560
Avg merge
1h 41m
Merged PRs (30d)
3

Description

0005859:ERROR:gdbserver:Exception while executing remote command 'reset init': unexpected value for reset_type option ('init')
Traceback (most recent call last):
File "c:\python\python37-32\lib\site-packages\pyocd-0.22.1.dev697-py3.7.egg\pyocd\gdbserver\gdbserver.py", line 1017, in handle_remote_command
self._command_context.process_command_line(cmd)
File "c:\python\python37-32\lib\site-packages\pyocd-0.22.1.dev697-py3.7.egg\pyocd\commands\execution_context.py", line 301, in process_command_line
invoc.handler(invoc)
File "c:\python\python37-32\lib\site-packages\pyocd-0.22.1.dev697-py3.7.egg\pyocd\commands\execution_context.py", line 370, in execute_command
cmd_object.parse(invocation.args)
File "c:\python\python37-32\lib\site-packages\pyocd-0.22.1.dev697-py3.7.egg\pyocd\commands\commands.py", line 352, in parse
self.reset_type = convert_reset_type(args[0])
File "c:\python\python37-32\lib\site-packages\pyocd-0.22.1.dev697-py3.7.egg\pyocd\utility\cmdline.py", line 143, in convert_reset_type
raise ValueError("unexpected value for reset_type option ('%s')" % value)
ValueError: unexpected value for reset_type option ('init')
0005890:INFO:gdbserver:Attempting to load argon

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The traceback points to pyocd/gdbserver/gdbserver.py, pyocd/commands/commands.py, and pyocd/utility/cmdline.py. Start by tracing how Eclipse sends the remote command reset init and how reset_type is parsed, then reproduce the startup flow with Eclipse, pyOCD, and JLink. Done means the reported startup error is resolved and the relevant behavior is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.