You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all sorry title, I just wanted something that will show up on searches if someone else gets stuck. A more accurate description is would be: when multiple packages exist for a part, pyocd is silently defaulting to one package.
In my case, I tried to install a pack for the popular ATSAMD21G18A used in some of the recent Arduinos and competitors. pyocd picks up the pack "Keil.SAMD21_DFP", which seems to be very outdated (version 1.3.2 and marked as "deprecated").
⬢[ivan@toolbox ivan]$ pyocd pack install ATSAMD21G18A
0000274 I No pack index present, downloading now... [pack_cmd]
Downloading packs (press Control-C to cancel):
Keil.SAMD21_DFP.1.3.2
Downloading descriptors (001/001)
⬢[ivan@toolbox ivan]$ pyocd pack show
Pack Version
-----------------------------
Keil.SAMD21_DFP 1.3.2
⬢[ivan@toolbox ivan]$ pyocd list --targets
Name Vendor Part Number Families Source
-------------------------------------------------------------------------------------------------------------------
air001 AirM2M Air001 builtin
air32f103xb AirM2M Air32F103xB builtin
air32f103xc AirM2M Air32F103xC builtin
air32f103xe AirM2M Air32F103xE builtin
air32f103xg AirM2M Air32F103xG builtin
air32f103xp AirM2M Air32F103xP builtin
atsamd21e15a Microchip ATSAMD21E15A SAM D Series, SAM D21 pack
atsamd21e15b Microchip ATSAMD21E15B SAM D Series, SAM D21 pack
atsamd21e15bu Microchip ATSAMD21E15BU SAM D Series, SAM D21 pack
atsamd21e15l Microchip ATSAMD21E15L SAM D Series, SAM D21 pack
atsamd21e16a Microchip ATSAMD21E16A SAM D Series, SAM D21 pack
atsamd21e16b Microchip ATSAMD21E16B SAM D Series, SAM D21 pack
atsamd21e16bu Microchip ATSAMD21E16BU SAM D Series, SAM D21 pack
atsamd21e16l Microchip ATSAMD21E16L SAM D Series, SAM D21 pack
atsamd21e17a Microchip ATSAMD21E17A SAM D Series, SAM D21 pack
atsamd21e18a Microchip ATSAMD21E18A SAM D Series, SAM D21 pack
atsamd21g15a Microchip ATSAMD21G15A SAM D Series, SAM D21 pack
atsamd21g15b Microchip ATSAMD21G15B SAM D Series, SAM D21 pack
atsamd21g15l Microchip ATSAMD21G15L SAM D Series, SAM D21 pack
atsamd21g16a Microchip ATSAMD21G16A SAM D Series, SAM D21 pack
atsamd21g16b Microchip ATSAMD21G16B SAM D Series, SAM D21 pack
atsamd21g16l Microchip ATSAMD21G16L SAM D Series, SAM D21 pack
atsamd21g17a Microchip ATSAMD21G17A SAM D Series, SAM D21 pack
atsamd21g17au Microchip ATSAMD21G17AU SAM D Series, SAM D21 pack
atsamd21g18a Microchip ATSAMD21G18A SAM D Series, SAM D21 pack
atsamd21g18au Microchip ATSAMD21G18AU SAM D Series, SAM D21 pack
atsamd21j15a Microchip ATSAMD21J15A SAM D Series, SAM D21 pack
atsamd21j15b Microchip ATSAMD21J15B SAM D Series, SAM D21 pack
atsamd21j16a Microchip ATSAMD21J16A SAM D Series, SAM D21 pack
atsamd21j16b Microchip ATSAMD21J16B SAM D Series, SAM D21 pack
atsamd21j17a Microchip ATSAMD21J17A SAM D Series, SAM D21 pack
atsamd21j18a Microchip ATSAMD21J18A SAM D Series, SAM D21 pack
cc3220sf Texas Instruments CC3220SF builtin
cortex_m Generic CoreSightTarget builtin
cy8c64_sysap Cypress cy8c64_sysap builtin
cy8c64x5_cm0 Cypress cy8c64x5_cm0 builtin
cy8c64x5_cm0_full_flash Cypress cy8c64x5_cm0_full_flash builtin
cy8c64x5_cm4 Cypress cy8c64x5_cm4 builtin
cy8c64x5_cm4_full_flash Cypress cy8c64x5_cm4_full_flash builtin
I noticed this because the version didn't match the packs I manually downloaded from the Arm website (called Microchip.SAMD21_DFP, version 3.6.144). So I typed pyocd pack find atsamd21 and got results with a mix of both packages:
Seems like some parts are only available on Microchip.SAMD21_DFP. So I tried installing support for one of those parts, and I also got the original part I was looking for, with the Microchip pack.
First of all sorry title, I just wanted something that will show up on searches if someone else gets stuck. A more accurate description is would be: when multiple packages exist for a part, pyocd is silently defaulting to one package.
In my case, I tried to install a pack for the popular ATSAMD21G18A used in some of the recent Arduinos and competitors. pyocd picks up the pack "Keil.SAMD21_DFP", which seems to be very outdated (version 1.3.2 and marked as "deprecated").
I noticed this because the version didn't match the packs I manually downloaded from the Arm website (called Microchip.SAMD21_DFP, version 3.6.144). So I typed
pyocd pack find atsamd21
and got results with a mix of both packages:Seems like some parts are only available on Microchip.SAMD21_DFP. So I tried installing support for one of those parts, and I also got the original part I was looking for, with the Microchip pack.
I think it may be picking up Keil instead of Microchip because K comes before M in the alphabet, and the list could be alphabetical.
Ideally, pyocd would detect there are multiple matches, and let you choose what pack you want to install for that name.
The text was updated successfully, but these errors were encountered: