Skip to content

ESP32 build failing for env vars ARDUINO_HOST_OS, ARDUINO_VARIANT, and ARDUINO_FQBN #1689

Closed Answered by RogerParkinson
RogerParkinson asked this question in Q&A
Discussion options

You must be logged in to vote

Seems to be working. Thanks for the help. Specifically this is what I did

  1. located the right platform.txt. Mine was in xxx
  2. edited it and changed the line starting with "build.extra_flags.esp32". I added this to the end: -DARDUINO_HOST_OS=""generic_os"" -DARDUINO_FQBN=""generic_board"" -DARDUINO_VARIANT=""adafruit_metro_esp32""
  3. save & exit the editor
  4. delete platform.sloeber.txt
  5. start Sloeber
  6. compile successfully
    My ESP32 is just an ESP32 but I see on the following lines after the one I edited there is a reference to ESP32S3 and because I have an S3 board for my next project I added the ARDUINO_VARIANT to that with adafruit_metro_esp32s3, though I haven't tested it yet.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RogerParkinson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants