Skip to content

Handle multiple PDSC entries for a single part in the vendor list #202

@Oozlum

Description

@Oozlum

I have a problem when using pyOCD with an ATSAMD21G18A chip. The vendor file lists two PDSC entries for that part:

  1. Keil.SAMD21_DFP 1.3.1 (deprecated 2020-10-21)
  2. Microchip.SAMD21_DFP 3.6.144

cmsis-pack-manager seems to key its cache purely off the part number (ATSAMD21G18A), so it is unable to handle multiple entries for the same part. There also doesn't seem to be an option to filter out deprecated entries.

It would be nice if the cache key could be augmented with the vendor (and possibly version) in the event that multiple entries are found, so in this instance I would see two possible entries:

  • ATSAMD21G18A.Keil
  • ATSAMD21G18A.Microchip

This was a problem for me because cmsis-pack-manager happened to find the Keil entry first, and that PDSC appears to be broken. I couldn't find a way to force the Microchip version other than manually hacking the files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions