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

mbed-tools configure fails due to multiple mbed-os paths being searched #323

Open
OllyMcBrideOB opened this issue Feb 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@OllyMcBrideOB
Copy link

OllyMcBrideOB commented Feb 8, 2022

Issue
The same error as #234 (see error message below), possibly caused by using a shared instance of mbed-os.

Error
ValueError: Setting <random configuration setting> already defined. You cannot duplicate config settings!
(The setting name changes every time the command is executed)

Details
I believe this issue is caused when assemble_config() finds the mbed-os/ path within program.root, and then the mbed-os/ path is also passed in via program.mbed_os.root.

config = assemble_config(
target_build_attributes, [program.root, program.mbed_os.root], program.files.app_config_file
)

In the above snipped, if I remove program.mbed_os.root everything works correctly.

To Reproduce

  1. Navigate to mbed-os-example-blinky
  2. Use shared instance of mbed-os
  3. Enter mbed-tools configure -m NRF52_DK -t GCC_ARM

Expected behavior
The mbed-tools configure -m NRF52_DK -t GCC_ARM command should configure the mbed-os-example-blinky project for CMake.

Desktop (please complete the following information):

  • OS: Windows
  • Version: 21H1

Mbed (please complete the following information):

  • Device: NRF52_DK
  • Mbed OS Version: [e.g. 6.8.0]
  • Mbed CLI 2 Version: 7.50.0
@OllyMcBrideOB OllyMcBrideOB added the bug Something isn't working label Feb 8, 2022
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
None yet
Development

No branches or pull requests

1 participant