Skip to content

[Bug]: pyOCD discovery fails on devices with a hidden core #684

@TeoMahnic

Description

@TeoMahnic

Description

During CoreSight discovery, pyOCD attempts to associate each detected core with a corresponding pname entry from the CMSIS Pack description. The mapping step fails when pyOCD encounters a core Access Port (AP) that is not represented in the .pdsc file, which raises a critical error and pyOCD stops the execution.

Steps to Reproduce

No response

Expected Behavior

pyOCD should tolerate such hidden cores gracefully and continue operation, rather than terminating with a critical error when a discovered core has no corresponding entry in the CMSIS Pack description.

Additional Information

This is blocking pyOCD from being used for multiple Microchip device families.

Issue: pyocd/pyOCD#1800
PR: pyocd/pyOCD#1801

This PR addresses only the internal pack support. The patch should also be applied to cbuild-run targets.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpyOCDChange is required in shipped pyOCD variant

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions