Skip to content

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

Description

@dustin-crossman

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: https://github.com/mbedmicro/pyOCD/pull/790 and mbedmicro/pyOCD@a437e14

Issue request type

[ ] Question
[ ] Enhancement
[x ] Bug

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions