Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cbuild setup --packs does not install missing packs requested by layers #1841

Closed
ReinhardKeil opened this issue Nov 7, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@ReinhardKeil
Copy link
Collaborator

Describe the bug

When a pack that is referenced by a layer is missing, the layer detection fails with:

cbuild setup USB_Device.csolution.yml --context-set --packs --update-rte
error csolution: required pack: ARM::[email protected] not installed
error csolution: no compatible software layer found. Review required connections of the project

To Reproduce

Install these packs:

ARM::[email protected]
ARM::CMSIS-Driver_STM32
Keil::[email protected]
Keil::[email protected]
Keil::[email protected]

Make sure that ARM::CMSIS-Compiler pack is not installed!

Then use the USB_Device example configured for board: STMicroelectronics::B-U585I-IOT02A as shown above.

Expected behavior

The layer detection does not fail due to missing packs referenced by a potential layer. Once the layer is specified, the --pack option downloads the pack.

Environment (please complete the following information):

  • CMSIS-Toolbox 2.6.1
  • Windows
@ReinhardKeil ReinhardKeil added the bug Something isn't working label Nov 7, 2024
@jkrech jkrech moved this to Backlog in CMSIS-Toolbox 2.7.0 Nov 7, 2024
@jkrech
Copy link
Member

jkrech commented Nov 7, 2024

Root cause: today the list layers command reads all pdsc file from packs listed in potentially matching layers and therefore reports missing packs and results in the corresponding layer not matching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants