-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Support for the latest Arduino v2.0 #619
Comments
Hi all |
You might also want to take a look at espressif/arduino-esp32#5505 in regards to this. |
I've been trying to understand how I can get Arduino v2.0.0 to work in PlatformIO because there are some important bugfixes in esp-idf v4.3 which I need.. I have tried building with Arduino as an IDF component but that only supports up to IDF v4.0 and is buggy. I can't think of a way to get these updates without a lot of rework on my project by converting entirely to IDF. Maybe it is my lack of experience with the platform, but I am confused about what prevents us using Arduino v2.0 in PlatformIO, can you explain it for me? |
Here's an example that may help you out. The relevant tidbits are in [esp32git] which just extends the [esp32] entry I have an overrides the platform until support is added. Note you'll have to still use Arduino IDE to build and upload LittleFS if you're using it. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESP32 defaults for 4MB flash ;
; https://docs.platformio.org/en/latest/platforms/espressif32.html ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[esp32]
platform = espressif32
board_build.filesystem = littlefs
board_build.partitions = min_spiffs.csv
monitor_filters = esp32_exception_decoder
build_flags =
${env.build_flags}
lib_deps =
${env.lib_deps}
esphome/AsyncTCP-esphome @ 1.2.2
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; ESP32 pulling from upstream core ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
[esp32git]
extends = esp32
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.0
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; Build targets (environments) ;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
; Lolin D32 Pro
[env:d32_pro]
extends = esp32git ; use until 2.0.0 core makes it into PlatformIO
board = lolin_d32_pro
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw |
Thanks for your response @forkineye ! UpdateI found this: espressif/arduino-esp32#5436 (comment) |
When can this problem be closed |
many days passed since the Arduino V2 release... is there an ETA for closing this issue? |
Is it released? When I build using Espressif 32 (3.3.2) it still pulls in Any guesses as to what I'm doing wrong?
platformio.ini
|
No, hence your observed behavior is correct. You'd need to modify the |
@atclarkson If you need Arduino v2.0.0 in PlatformIO now then copy the configuration from my repo mentioned above... https://github.com/olicooper/arduino-v2-esp32-platformio/tree/main |
There is an ETA for this release? |
While I am aware there are a few workarounds to get going with v2 as shown above. Thanks |
It is clear that it will be ready, when it's ready ESP32 is one of the main board on the PlatformIO ecosystem if not the main board. Come on guys, are you alive? Can you give us an idea of the ETA? |
ESP32 Arduino 2.0.1 based on ESP-IDF 4.4 is out... |
I have been playing with this for a few days with an esp32 S2, I cannot get OTA to work at all, updater class always aborts on erasepartition.. Its like there is something wrong with my partitions, if i compile with arduino ide, it works fine. There also seems to be some timing issues with wifi funcs, adding typical workarounds like delays after setmode etc seems to be fixing most of them.. Anyone have OTA working with #arduino-upstream |
@tablatronix yes, Tasmota is doing OTA with. |
hmm I have not tried httpota, only esptool from ide, is tasmota compiling using arduino-upstream ? |
Tasmota is compiled with a slightly changed setup of sdkconfig in the Arduino Lib builder and has the same code base as release core 2.0.1. The platformio setup can be seen in my former post |
Thanks for looking, It looks like it is using feature/arduino-idf-master, I cannot get it to compile for S2 though Let me see if tasmota builds |
Hi! I'd like to use an ESP32-S2-Saola-1 board for simulating different USB devices. No OTA, no SPIFFS, no any special needs. Just get a gamepad arduino example code working. Could you guys help me out with a working platformio.ini config? I googled it, but found so many different settings from June until now. Suggesting different alpha and rc1 releases, different toolchains, commit hashes, etc. Which are all outdated by right now, I guess. |
@dexter323i
|
To Make it work I had to:
Therefore I changed it to: |
Trying using that i get: |
Pitty, since this the official release package just added the needed platform.json for PlatformIO |
Probably I'm just doing something wrong, but I can't see what yet. Its coming from line 22 in ssl_client.cpp here, a PR that I'm trying on top of your platformio update. |
I think that happens because you are not using the latest pushes to that PR from me-no-dev (espressif/arduino-esp32@33af65f) |
When I use [env:arduino-esp32c3]
platform = https://github.com/Jason2866/platform-espressif32.git
board = esp32-c3-devkitm-1
framework = arduino
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#master and use |
You're right, that fixes it. Thank you! |
Mhh, there is something wrong with your platformio setup. |
I just tried the setup and it does compile successful using |
Update Release core 2.0.3-rc1 has a major bug. See espressif/arduino-esp32#6507
|
@torntrousers @gonzabrusco You are talking about a PR espressif/arduino-esp32#6055 which is still open, so it can not be in the official build. If you want to use you have to add in platform_packages. |
I'm good now after the reminder from @gonzabrusco to use the latest PR update. Its working with what you posted here, thanks! |
I am attempting this, and getting an error in a simple hello world app with the following build flag defines:
Here is the error:
|
@TheButlah Wrong place for Arduino issues. Open a issue in espressif Arduino github. |
@Jason2866 does debugging work in your fork? I get the following error:
If this is the wrong place, I apologize. I'm not clear on what problems are the fork, what is the esp32-c3, what is platformio, and what is arduino 😅 |
@TheButlah I asked espressif to upload latest OCD (needed for C3 and newer mcu) |
Actually, I've had to run this on another machine and can't get it to build there now.
gives:
Any ideas what the problem could be? |
In |
Thanks @maxgerhardt , I tried that and now get:
Is that something more somewhere i need to also delete? |
Or is there a better way to be using 2.0.3-RC1 now than with |
@torntrousers I packed the file on my Mac. Maybe Windows does not like the additional files the mac adds. I just have repacked. Please do again what Max recommended. |
And if that still doesn't help just use the
|
w00t Thanks so much for the responsive help @Jason2866 and Max. |
But is this v2.0.0 or v2.0.2 or v2.0.3-rc? https://registry.platformio.org/tools/platformio/framework-arduinoespressif32/versions says only 2.0.0 |
Hi guys, just to make it clear, all 2.0.x versions will be added gradually. We started from 2.0.0 to make sure the transition from Arduino framework v1 to v2 will be as smooth as possible as it involves many changes and bugfixes. Stay tuned. |
Hi Guys, Great news! 🚀 PlatformIO team will provide professional integration services for the Espressif products, especially support for the Arduino ESP32 framework. Please navigate to the issues page and vote (👍 ) for the issues that are important/blockers for you. We will process them ASAP. A big THANK YOU to the Espressif Systems company that trusted in our technology 🙏 More news will come soon. Stay tuned. Regards, |
The latest Arduino core adds support for ESP32S2, ESP32C3 SoCs and a great amount of new boards. Related issues:
The text was updated successfully, but these errors were encountered: