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

module_copy_pyocd.py does not properly import pyocd versions >= 0.24 #212

Open
dustin-crossman opened this issue Jan 9, 2020 · 2 comments

Comments

@dustin-crossman
Copy link

Description

When using the pyocd flash plugin (e.g with mbedgt -c pyocd) with pyocd version 0.24 or greater the following error is seen:
The "pyocd" feature is not installed. Please run "pip install mbed-os-tools[pyocd]" to enable the "pyocd" copy plugin.

Downgrading pyocd to version 0.23 or less fixes the issue.

The culprit is this line: https://github.com/ARMmbed/mbed-os-tools/blob/master/src/mbed_os_tools/test/host_tests_plugins/module_copy_pyocd.py#L21 which imports the FileProgrammer from pyocd. With recent versions of pyocd FileProgrammer was refactored into its own file. See: pyocd/pyOCD#790 and pyocd/pyOCD@a437e14

Issue request type

[ ] Question
[ ] Enhancement
[x ] Bug
@ciarmcom
Copy link
Member

ciarmcom commented Jan 9, 2020

Internal Jira reference: https://jira.arm.com/browse/IOTBTOOL-535

@ifyall
Copy link

ifyall commented Jan 22, 2020

This is using Python3.7.

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

No branches or pull requests

3 participants