Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session initialization fails intermittently for StLink boards #695

Closed
juhhov opened this issue Jul 5, 2019 · 1 comment · Fixed by #703
Closed

Session initialization fails intermittently for StLink boards #695

juhhov opened this issue Jul 5, 2019 · 1 comment · Fixed by #703

Comments

@juhhov
Copy link

juhhov commented Jul 5, 2019

Session initialization intermittently fails when StlinkDetectBase fails to acquire target_id_mbed_htm for device. This happens at least with NUCLEO_L073RZ, NUCLEO_F429ZI and NUCLEO_F411RE.

Traceback:

Traceback (most recent call last):
File ".../lib/python3.5/site-packages/pyocd/core/helpers.py", line 232, in session_with_chosen_probe
unique_id=unique_id,
File ".../lib/python3.5/site-packages/pyocd/core/helpers.py", line 132, in choose_probe
allProbes = ConnectHelper.get_all_connected_probes(blocking=blocking, unique_id=unique_id)
File ".../lib/python3.5/site-packages/pyocd/core/helpers.py", line 81, in get_all_connected_probes
allProbes = DebugProbeAggregator.get_all_connected_probes(unique_id=unique_id)
File ".../lib/python3.5/site-packages/pyocd/probe/aggregator.py", line 32, in get_all_connected_probes
probes += cls.get_all_connected_probes()
File ".../lib/python3.5/site-packages/pyocd/probe/stlink_probe.py", line 34, in get_all_connected_probes
return [cls(dev) for dev in STLinkUSBInterface.get_all_connected_devices()]
File ".../lib/python3.5/site-packages/pyocd/probe/stlink_probe.py", line 34, in <listcomp>
return [cls(dev) for dev in STLinkUSBInterface.get_all_connected_devices()]
File ".../lib/python3.5/site-packages/pyocd/probe/stlink_probe.py", line 58, in __init__
self._board_id = info['target_id_mbed_htm'][0:4]
KeyError: 'target_id_mbed_htm'
@juhhov
Copy link
Author

juhhov commented Jul 5, 2019

LOG.warning(
     'Marking device with mount point "%s" as unmounted due to the '
     "following error: %s",
     device["mount_point"],
     e,
)

Above log row can not be found so seems that mbed.htm file can not be found from the mount point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant