Skip to content

[Bug]: Builds for esp32s2 are currently broken #10799

Description

@breqdev

Category

Hardware Compatibility

Hardware

Other

Is this bug report about any UI (https://meshtastic.org/docs/configuration/device-uis/) component firmware?

  • Meshtastic UI aka MUI
  • InkHUD
  • BaseUI

Firmware Version

ad132e9 (latest commit at time of writing)

Description

Compiling for the ESP32S2 currently results in an error relating to USBSerial.

This is on a fresh PlatformIO install. Compiling for other targets (ESP32S3 etc) works as expected.

I'm using the nugget-s2-lora target as it is the only ESP32S2 target already in the repo:

pio run -e nugget-s2-lora

Relevant log output

In file included from /home/breq/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:202,
                 from .dummy/sketch.cpp:1:
.dummy/sketch.cpp: In function 'void setup()':
/home/breq/.platformio/packages/framework-arduinoespressif32/cores/esp32/HardwareSerial.h:445:16: error: 'USBSerial' was not declared in this scope; did you mean 'Serial'?
  445 | #define Serial USBSerial
      |                ^~~~~~~~~
.dummy/sketch.cpp:4:3: note: in expansion of macro 'Serial'
    4 |   Serial.begin(115200);
      |   ^~~~~~
Compiling .pio/build/nugget-s2-lora/bt/common/osi/config.c.o
.dummy/sketch.cpp: In function 'void loop()':
/home/breq/.platformio/packages/framework-arduinoespressif32/cores/esp32/HardwareSerial.h:445:16: error: 'USBSerial' was not declared in this scope; did you mean 'Serial'?
  445 | #define Serial USBSerial
      |                ^~~~~~~~~
.dummy/sketch.cpp:8:3: note: in expansion of macro 'Serial'
    8 |   Serial.println("Hello World!");
      |   ^~~~~~

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions