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

[BUG] LERDGEK_usb_flash_drive Error: BoardConfig: Board is not defined #21302

Closed
Evg33 opened this issue Mar 10, 2021 · 10 comments
Closed

[BUG] LERDGEK_usb_flash_drive Error: BoardConfig: Board is not defined #21302

Evg33 opened this issue Mar 10, 2021 · 10 comments

Comments

@Evg33
Copy link
Contributor

Evg33 commented Mar 10, 2021

Executing task in folder Marlin: C:\Users\xxx.platformio\penv\Scripts\platformio.exe run --target upload --environment LERDGEK_usb_flash_drive <

Processing LERDGEK_usb_flash_drive (platform: ststm32@~12.0; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
Error: BoardConfig: Board is not defined
=================================================== [FAILED] Took 2.40 seconds ===================================================
Environment Status Duration


LERDGEK_usb_flash_drive FAILED 00:00:02.401
============================================= 1 failed, 0 succeeded in 00:00:02.401 =============================================
The terminal process "C:\Users\xxx.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--environment', 'LERDGEK_usb_flash_drive'" terminated with exit code: 1.

@ellensp
Copy link
Contributor

ellensp commented Mar 10, 2021

The build environment:

[env:LERDGEK_usb_flash_drive]
platform = ${env:LERDGEK.platform}
extends = LERDGEK
platform_packages = ${stm32_flash_drive.platform_packages}
build_flags = ${stm32_flash_drive.build_flags}

shouldn't it be
extends = env:LERDGEK

many of these LERDGE build environments seem to have this issue

@ellensp
Copy link
Contributor

ellensp commented Mar 10, 2021

confirmed adding env: prefix gets past that error

@ellensp
Copy link
Contributor

ellensp commented Mar 10, 2021

@thisiskeithb this is your 'baby' #20593 ill leave it to you

@thisiskeithb
Copy link
Member

Please download bugfix-2.0.x to test with the latest code and let us know if you're still having this issue.

@thisiskeithb
Copy link
Member

thisiskeithb commented Mar 10, 2021

When reporting an issue, please be sure to follow all instructions at the top of the template, including debugging steps, and leave the sections headings intact.

This includes attaching your configuration files, regardless of whether you think they are involved.

For reference, these are the instructions included in the template:

Before Reporting a Bug

  1. Test with the bugfix-2.0.x branch to see whether the issue still exists.

  2. Get troubleshooting help from the Marlin community to confirm it's a bug and not just a configuration error. Links at https://github.com/MarlinFirmware/Marlin/issues/new/choose

Instructions

  1. Fill out every section of the template below.

  2. Always attach configuration files, regardless of whether you think they are involved.

  3. Read and understand Marlin's Code of Conduct. By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/MarlinFirmware/Marlin/blob/master/.github/code_of_conduct.md


Bug Description

Describe the bug in this section.

Configuration Files

Required: Include a ZIP file containing Configuration.h and Configuration_adv.h.

If you've made any other modifications describe them in detail here.

Steps to Reproduce

Describe the steps needed to reproduce the issue.

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior:

Describe what you expected to happen here.

Actual behavior:

Describe what actually happens here.

Additional Information

  • Provide pictures or links to videos that clearly demonstrate the issue.
  • See Contributing to Marlin for additional guidelines.

@thisiskeithb
Copy link
Member

this is your 'baby' #20593 ill leave it to you

I extended environments using similar ones as an example, so I’m not sure why it doesn’t work. I’ll have to take a look.

@thisiskeithb
Copy link
Member

See #21305

@Evg33
Copy link
Contributor Author

Evg33 commented Mar 10, 2021

https://github.com/MarlinFirmware/Marlin/archive/bugfix-2.0.x.zip

configs.zip

platformio.ini changed

[env:LERDGEK_usb_flash_drive]
platform          = ${env:LERDGEK.platform}
extends           = env:LERDGEK
platform_packages = ${stm32_flash_drive.platform_packages}
build_flags       = ${stm32_flash_drive.build_flags}

pio run -t clean
pio update
pio upgrade
pio run --environment LERDGEK_usb_flash_drive

C:\cod\Marlin> pio run --environment LERDGEK_usb_flash_drive
Processing LERDGEK_usb_flash_drive (platform: ststm32@~12.0; board: LERDGE; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
KeyError: 'usb-host-msc':
  File "C:\users\xxx\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 175:
    env.SConscript(item, exports="env")
  File "C:\Users\xxx\.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 591:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\xxx\.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 280:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\cod\Marlin\buildroot\share\PlatformIO\scripts\copy_marlin_variant_to_framework.py", line 46:
    FRAMEWORK_DIR = platform.get_package_dir(platform_name)
  File "c:\users\xxx\.platformio\penv\lib\site-packages\platformio\platform\_packages.py", line 33:
    pkg = self.get_package(name)
  File "c:\users\xxx\.platformio\penv\lib\site-packages\platformio\platform\_packages.py", line 30:
    return self.pm.get_package(spec or self.get_package_spec(name))
  File "c:\users\xxx\.platformio\penv\lib\site-packages\platformio\platform\_packages.py", line 22:
    owner=self.packages[name].get("owner"),
=================================================== [FAILED] Took 1.50 seconds ===================================================
Environment              Status    Duration
-----------------------  --------  ------------
LERDGEK_usb_flash_drive  FAILED    00:00:01.498
============================================= 1 failed, 0 succeeded in 00:00:01.498

@Evg33 Evg33 changed the title LERDGEK_usb_flash_drive Error: BoardConfig: Board is not defined [BUG] LERDGEK_usb_flash_drive Error: BoardConfig: Board is not defined Mar 10, 2021
@thisiskeithb
Copy link
Member

#21305 was merged. Closing.

@github-actions
Copy link

github-actions bot commented Jul 5, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants