Giter VIP home page Giter VIP logo

Comments (5)

Jason2866 avatar Jason2866 commented on June 21, 2024

Did a package from actual espressif branch release/v4.4 for Platformio.
You can use with

platform_packages = framework-espidf @ https://github.com/Jason2866/esp-idf/releases/download/v4.4.7/esp-idf-v4.4.7.zip

Source is https://github.com/Jason2866/esp-idf/tree/release/v4.4

from platform-espressif32.

Koxx3 avatar Koxx3 commented on June 21, 2024

thanks a lot !

I am trying to configure a project with IDF 4.4.7 + Arduino 2.0.13 (not above since WifiClientSecure has been removed and I need it), but I have some trouble :

platform = espressif32 @ ^5.4.0
platform_packages = 
	framework-espidf @ https://github.com/Jason2866/esp-idf/releases/download/v4.4.7/esp-idf-v4.4.7.zip
	framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32/releases/download/2.0.13/esp32-2.0.13.zip

framework = arduino, espidf 

IDF 4.4.7 download & install seems to work fine, but after that :

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (5.4.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 2.0.13 
 - framework-espidf @ 3.40407.0 (4.4.7) 
 - tool-cmake @ 3.16.4 
 - tool-esptoolpy @ 1.40400.0 (4.4.0) 
 - tool-ninja @ 1.7.1 
 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Using ESP-IDF: /home/koxx/.platformio/packages/framework-espidf
Using toolchain: /home/koxx/.platformio/packages/[email protected]+2021r2-patch5
test
venv_dir /home/koxx/.platformio/penv/.espidf-4.4.7
venv_data_file /home/koxx/.platformio/penv/.espidf-4.4.7/pio-idf-venv.json
Warning! Arduino framework as an ESP-IDF component doesn't handle the `variant` field! The default `esp32` variant will be used.
Reading CMake configuration...
IndexError: list index out of range:
  File "/home/koxx/.platformio/penv/lib/python3.10/site-packages/platformio/builder/main.py", line 173:
    env.SConscript("$BUILD_SCRIPT")
  File "/home/koxx/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/koxx/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 279:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/koxx/.platformio/platforms/espressif32/builder/main.py", line 312:
    target_elf = env.BuildProgram()
  File "/home/koxx/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
    return self.method(*nargs, **kwargs)
  File "/home/koxx/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 61:
    env.ProcessProgramDeps()
  File "/home/koxx/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
    return self.method(*nargs, **kwargs)
  File "/home/koxx/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 121:
    env.BuildFrameworks(env.get("PIOFRAMEWORK"))
  File "/home/koxx/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
    return self.method(*nargs, **kwargs)
  File "/home/koxx/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py", line 347:
    SConscript(env.GetFrameworkScript(name), exports="env")
  File "/home/koxx/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 676:
    return method(*args, **kw)
  File "/home/koxx/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/koxx/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 279:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/koxx/.platformio/platforms/espressif32/builder/frameworks/espidf.py", line 1523:
    arduino_config_name = list(

from platform-espressif32.

Jason2866 avatar Jason2866 commented on June 21, 2024

Just had a look, Platformio has updated the IDF 4.4.x version to 4.4.7. Did miss that
So everything is available from Platformio. Core 2.0.16 and IDF 4.4.7
This setup should work.

platform = espressif32 @ ^6.6.0
platform_packages = 
	platformio/framework-espidf @ ~3.40407.0
	platformio/framework-arduinoespressif32 @ ~3.20016.0

WifiClientSecure is in every official espressif / Platformio version!

from platform-espressif32.

Koxx3 avatar Koxx3 commented on June 21, 2024

FYI, I found this working configuration, but it seems "dirty" (I had to disable Ethernet component in sdkconfig).
WifiClientSecure was removed only from Tasmota Arduino...

platform = espressif32 @ ^5.4.0
platform_packages = 
	tool-mkspiffs @ 2.230.0
	framework-espidf @ https://github.com/Jason2866/esp-idf/releases/download/v4.4.7/esp-idf-v4.4.7.zip
	framework-arduinoespressif32 @ ~3.20016.0
	; framework-arduinoespressif32 @ ~3.20009.0 ; working too
	; framework-arduinoespressif32 @ 2.0.6 ; working too

framework = arduino, espidf

from platform-espressif32.

Koxx3 avatar Koxx3 commented on June 21, 2024

Just had a look, Platformio has updated the IDF 4.4.x version to 4.4.7. Did miss that So everything is available from Platformio. Core 2.0.16 and IDF 4.4.7 This setup should work.

platform = espressif32 @ ^6.6.0
platform_packages = 
	platformio/framework-espidf @ ~3.40407.0
	platformio/framework-arduinoespressif32 @ ~3.20016.0

WifiClientSecure is in every official espressif / Platformio version!

ahahah, excellent. thanks for your feedback.
your setup is much cleaner than mine ;)
and I confirm, it works !!!

from platform-espressif32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.