__main__:STLink error (9): Get IDCODE error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 560
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 3
Description
I am getting this error when trying to run mbed-os-snippet-Serial STDOUT on DISCOH747I (which is STlink V3).
Update Image: BUILD/DISCO_H747I/ARMC6/mbed-os-snippet-Serial_STDOUT_update.bin
Image: BUILD/DISCO_H747I/ARMC6/mbed-os-snippet-Serial_STDOUT.bin
0002683:CRITICAL:main:STLink error (9): Get IDCODE error
Traceback (most recent call last):
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/main.py", line 402, in run
self._COMMANDSself._args.cmd
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/main.py", line 572, in do_flash
with session:
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/core/session.py", line 339, in enter
self.open()
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/core/session.py", line 457, in open
self._board.init()
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/board/board.py", line 85, in init
self.target.init()
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/core/soc_target.py", line 117, in init
seq.invoke()
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/utility/sequencer.py", line 213, in invoke
resultSequence.invoke()
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/utility/sequencer.py", line 208, in invoke
resultSequence = call()
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/dap.py", line 376, in _connect
connector.connect(self._protocol)
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/dap.py", line 163, in connect
self._connect_probe(protocol)
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/dap.py", line 183, in _connect_probe
self._probe.connect(protocol)
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink_probe.py", line 136, in connect
self._link.enter_debug(STLink.Protocol.SWD)
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink/stlink.py", line 267, in enter_debug
self._check_status(response)
File "/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink/stlink.py", line 305, in _check_status
raise exceptions.ProbeError(error_message)
pyocd.core.exceptions.ProbeError: STLink error (9): Get IDCODE error
Have anyone came across this ??
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
Start with the traceback entry points in pyocd/probe/stlink_probe.py and pyocd/probe/stlink/stlink.py, then reproduce the flash attempt on the DISCOH747I with its STLink V3. The issue is complete when the cause of the Get IDCODE failure is confirmed and a validated resolution or clear diagnostic guidance is available.
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