-
Notifications
You must be signed in to change notification settings - Fork 270
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
ESP32-S3 Won't Compile in Arduino 2.2.1 #298
Comments
I did some Googling and then decided to try some stuff. I was able to make a basic example compile by including the following code in a file called
...and then adding The example that I wrote to see if it would compile is this:
I took inspiration from this SO post: https://stackoverflow.com/questions/24609271/errormake-unique-is-not-a-member-of-std which pointed me to this implementation https://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique. I'm not sure this is how you'd like to see this fixed, but let me know if you'd like me to make a PR. |
I'm sorry, I can't confirm. Currently, EspSoftwareSerial is ahead of the upcoming update of all ESP32 cores to IDF 5.1. I don't know which of the new chips are and which are not supported prior to IDF 5.1 anyway. As things are, the ghostl-async implementation that I'm focussed on is a part of EspSoftwareSerial, so if you think you needed to update EspSoftwareSerial - which you didn't as far as features are concerned - please checkout one of the latest IDF 5.1 based cores from Github, update the toolchains manually, and everything should compile just fine. I have built for ESP32S3 Dev Module successfully just this minute. |
I've been advised that SoftwareSerial should be generally be avoided in ESP32 by Espressif folks in arduino-esp gitter. |
@vicatcu On what grounds, if I may ask? Generally speaking, it's always wrong to use SW serial unless it offers features that you don't get from the HW UARTs. Like, being available at all :-) |
HW serial doesn't work on ESP32 with current IDF 5.1 based Arduino core. Reverting to release 2.0.14 of course yields the |
On the basis that there are 3 multiplexed hardware UARTs on the ESP32-S3 and if you only need to talk to one Serial input at a time you can just switch the pins a hardware UART at runtime by doing Serial.end followed by Serial.begin |
The following sketch
Results in the following verbose compiler error outut:
The text was updated successfully, but these errors were encountered: