pioarduino/platform-espressif32

What do I set `platform` to if I want to always have the latest stable version?

puterboy opened this issue · 4 comments

Will setting:

platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip

ensure that platformio will always use the current stable release or do I need to update the above URL over time to some version other than "51.03.07"
Alternatively, will something like

platform = https://github.com/pioarduino/platform-espressif32.git#main

ensure that platformio always uses the latest stable (non-development) release?

Thanks

Both is possible ;-). The first variant pins the version. A good idea not to be surprised from changes in new stable version.
Variant 2 will install latest stable versions (Arduino / IDF)

Sorry for reopening this question, but i can't figure out, how to get pioarduino release IDF 5.1.5
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip -> v5.1.4-972-g632e0c2a9f-dirty
platform = https://github.com/pioarduino/platform-espressif32.git#develop -> v5.1.4-828-g33fbade6b8-dirty
platform = https://github.com/pioarduino/platform-espressif32.git#main -> v5.1.4-972-g632e0c2a9f-dirty
framework = arduino
board = wemos_d1_mini32

regards
Innu

There is no release of Arduino core based on IDF 5.1.5. So there is no Platform release for this combination. Arduino core 3.0.7 is build with IDF v5.1.4-972-g632e0c2a9f-dirty
You can combine stable Arduino core 3.0.7 with IDF 5.1.5 with this setup

platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip
platform_packages = framework-espidf @ https://github.com/pioarduino/esp-idf/releases/download/v5.1.5/esp-idf-v5.1.5.zip

To be clear pioarduino is made to provide to use actual Arduino.
For this use case always the matching IDF version where the Arduino libs are built are provided. It is not the goal of pioarduino to provide stable IDF releases. I may do this, but there is no reason for.