Skip to content

Cannot load Esp32 #1450

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

Closed
vedantroy opened this issue Sep 13, 2021 · 4 comments
Closed

Cannot load Esp32 #1450

vedantroy opened this issue Sep 13, 2021 · 4 comments
Labels
conclusion: invalid Issue/PR not valid

Comments

@vedantroy
Copy link

Bug Report

Current behavior

When running any arduino-cli command, I get the following error:

Error initializing instance: loading platform release esp32:[email protected]: loading boards: skipping loading of boards esp32:esp32:deneyapmini, esp32:esp32:atmegazero_esp32s2: malformed custom board options
Error initializing instance: loading platform release espressif:[email protected]: loading boards: skipping loading of boards espressif:esp32:deneyapmini, espressif:esp32:atmegazero_esp32s2: malformed custom board options

Expected behavior

Environment

  • CLI version (output of arduino-cli version): arduino-cli alpha Version: 0.19.0 Commit: 56419ec Date: 2021-09-02T14:47:35Z

  • OS and platform:

(Output of lsb_release -a)

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

Additional context

I think it might be related to this:

espressif/arduino-esp32#5623

@per1234
Copy link
Contributor

per1234 commented Sep 13, 2021

Yes, this is related to #1326, but actually the configuration like in espressif/arduino-esp32#5618 caused problems even before that, only before the effects were isolated to specific boards rather than the entire platform, and with a much more cryptic symptom than the current clear error message.

@silvanocerza
Copy link
Contributor

espressif/arduino-esp32#5673 superseded espressif/arduino-esp32/pull/5623 and has been already merged.

This is not an Arduino CLI issue though, we avoid loading boards that do not respect the platform specifications. That's a task for that platform developer to solve.

Closing.

@silvanocerza silvanocerza added the conclusion: invalid Issue/PR not valid label Oct 4, 2021
@brentru
Copy link
Contributor

brentru commented Oct 4, 2021

@silvanocerza Re-opening this issue. Even with building on arduino-esp32 master (which includes espressif/arduino-esp32#5673), I am still getting the following output from Arduino-CLI:

arduino-cli compile --fqbn esp32:esp32:adafruit_funhouse_esp32s2:CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,PSRAM=enabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none --warnings all --export-binaries examples/sketch.ino
Error initializing instance: loading platform release esp32:[email protected]: loading boards: skipping loading of boards esp32:esp32:deneyapmini, esp32:esp32:atmegazero_esp32s2: malformed custom board options
Error initializing instance: loading platform release espressif:[email protected]: loading boards: skipping loading of boards espressif:esp32:deneyapmini: malformed custom board options

Any ideas?

@silvanocerza
Copy link
Contributor

Those platforms are not respecting the specification, the custom board options to be precise. The Arduino CLI is behaving correctly and as expected.

The listed boards are defining custom options in the wrong way so we avoid loading them to avoid breaking the CLI further down the line, the solution is for the platform maintaners to fix them.

I suggest you open issues in those platforms repositories with the list of the boards that are not being loaded so the maintaners know which boards are defining options in the wrong manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

4 participants