Skip to content

Still true: esp-idf 4.4 ? #8924

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
diplfranzhoepfinger opened this issue Nov 26, 2023 · 14 comments
Closed

Still true: esp-idf 4.4 ? #8924

diplfranzhoepfinger opened this issue Nov 26, 2023 · 14 comments
Assignees
Labels
Area: Arduino as ESP-IDF component Issues about Arduino used as component in ESP-IDF Type: Question Only question

Comments

@diplfranzhoepfinger
Copy link
Contributor

diplfranzhoepfinger commented Nov 26, 2023

https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html#installation

is this 4.4 hint still true ?

@diplfranzhoepfinger diplfranzhoepfinger added the Type: Feature request Feature request for Arduino ESP32 label Nov 26, 2023
@Jason2866
Copy link
Collaborator

Yes, there is no released Arduino version based on IDF 5.1. It is coming

@SuGlider
Copy link
Collaborator

@diplfranzhoepfinger - the documentation is still valid. The stable Arduino version is the Core 2.0.14 based on IDF 4.4.6.
Next Ardino Core (still in Alpha version) is 3.0.0 and it will be based on IDF 5.1, as @Jason2866 commented.

There is a way to build Arduino as IDF component, just using Managed Components.
This is demonstrated in #8878
For that, all you need is to clone IDF 4.4 (because the Arduino Managed Component is still 2.0.14) and then run idf.py build after running install and export IDF scripts.

@SuGlider SuGlider added Area: Arduino as ESP-IDF component Issues about Arduino used as component in ESP-IDF and removed Type: Feature request Feature request for Arduino ESP32 labels Nov 26, 2023
@SuGlider SuGlider self-assigned this Nov 26, 2023
@peteDDD
Copy link

peteDDD commented Nov 27, 2023

So there is this announcement: Announcing the Arduino ESP32 Core version 3.0.0

And there are these instructions: Announcing the Arduino ESP32 Core version 3.0.0

But has anyone gotten it working on VSC/PlatformIO?

@Jason2866
Copy link
Collaborator

@peteDDD Yes. Made a fork we use for Tasmota to build Tasmota for the C2 and C6.

@peteDDD
Copy link

peteDDD commented Nov 28, 2023

@Jason2866 Thank you. Is there a straightforward way to install that fork or should I continue to wait for the "official" release.

@VojtechBartoska VojtechBartoska added the Type: Question Only question label Nov 28, 2023
@diplfranzhoepfinger
Copy link
Contributor Author

@diplfranzhoepfinger - the documentation is still valid.

but then it is nonsense. 

you should make a 2.0.0 Version Doc with that hint, 

and "latest" should refer to what is bleeding Edgle. like in ESP-IDF Documentaiton.

@Jason2866
Copy link
Collaborator

Jason2866 commented Nov 28, 2023

@Jason2866 Thank you. Is there a straightforward way to install that fork or should I continue to wait for the "official" release.

@peteDDD Use this

platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.11.11/platform-espressif32.zip

@SuGlider
Copy link
Collaborator

@diplfranzhoepfinger - the documentation is still valid.

but then it is nonsense. 

you should make a 2.0.0 Version Doc with that hint, 

and "latest" should refer to what is bleeding Edgle. like in ESP-IDF Documentaiton.

A new documentation with 2 version, like in ESP-IDF, will be published when the release version of Arduino Core 3.0.0 is out.
So far we are in Alpha and Beta versions, although it is already in master.

@peteDDD
Copy link

peteDDD commented Nov 28, 2023

@Jason2866 Thank you. Is there a straightforward way to install that fork or should I continue to wait for the "official" release.

@peteDDD Use this

platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.11.11/platform-espressif32.zip

@Jason2866 THANK YOU! Brilliant. You probably know that great feeling of getting productive again... and I'm feeling it now.

PACKAGES:
 - framework-arduinoespressif32 @ 3.0.0
 - framework-espidf @ 3.50102.0 (5.1.2)

Finding a lot of interesting small issues, mostly having to do with less permissive field types for some esp_log statements.

Just a few things to debug and I think I'll be done with this port!

Thanks again!

@peteDDD
Copy link

peteDDD commented Nov 29, 2023

@Jason2866, I just hit a road block. One of the libraries I use, OTAdrive, depends on SPIFFS.H and that can no longer be found. Any suggestions before I pass this over to the OTAdrive folks? There appears to be some issue with file name lengths per this [](posting: https://community.platformio.org/t/unable-to-build-image-by-using-spiffs-h/32900) THANKS!

@Jason2866
Copy link
Collaborator

Jason2866 commented Nov 29, 2023

@peteDDD Not a bug, it is removed. The fork is made and optimized for project Tasmota.
Since SPIFFS is not maintained anymore and slow, we replaced with LittleFS.
There will no build with SPIFFS from me.

Using OTAdrive with LittleFS is just change a setting

OTADRIVE.setFileSystem(/*pointer to your file system object*/)

@peteDDD
Copy link

peteDDD commented Nov 30, 2023

OTADRIVE.setFileSystem

@Jason2866. Thanks again however in the context of OTAdrive, I believe OTADRIVE.setFileSystem() only applies to "resources" which is one of the three classes of things OTAdrive can manage (firmware, json config files, and "resources" such as jpg files). I do not believe this setting will change the build dependencies for SPIFFS.H and so far my testing agrees. Though it works well, the doc for OTAdrive is quite lacking still. We'll see what I learn from them tomorrow. Thanks again.

@peteDDD
Copy link

peteDDD commented Dec 1, 2023

The ESP-IDF 5.1 with Arduino 3.0 is LIVE and loads by default with the following Platformio.ini settings:

[env:esp32-s3-devkitc-1]
platform = espressif32 
board = esp32-s3-devkitc-1
framework = espidf, arduino

The following is loaded:
PACKAGES:

  • framework-arduinoespressif32 @ 3.0.0
  • framework-espidf @ 3.50102.0 (5.1.2)
    and...
  • tool-cmake @ 3.21.3
  • tool-esptoolpy @ 1.40700.0+dev2 (4.7.0)
  • tool-idf @ 1.0.1
  • tool-mconf @ 1.4060000.20190628 (406.0.0)
  • tool-mklittlefs @ 3.2.0
  • tool-mkspiffs @ 2.230.0 (2.30)
  • tool-ninja @ 1.9.0
  • tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
  • tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
  • toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
  • toolchain-riscv32-esp @ 12.2.0+20230208
  • toolchain-xtensa-esp32s3 @ 12.2.0+20230208

@VojtechBartoska
Copy link
Contributor

Closing this as answered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Arduino as ESP-IDF component Issues about Arduino used as component in ESP-IDF Type: Question Only question
Projects
None yet
Development

No branches or pull requests

5 participants