Skip to content

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

Open
@dustin-crossman

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: pyocd/pyOCD#790 and pyocd/pyOCD@a437e14

Issue request type

[ ] Question
[ ] Enhancement
[x ] Bug

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