Up until yesterday, when creating a new Espressif ESP32-S3-DevKitC-1-N16R8V (16 MB Flash Quad, 8 MB PSRAM Octal) project the platform in platformio.ini was specified as:
platform = espressif32
which is correct because in that case the project is using the version of framework that has already been installed.
In my case platform Espressif 32 (55.3.35) was already installed and was used by the new projects. That platform was installed when I once in the past used:
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.35/platform-espressif32.zip
But since today’s VS Code update to 1.128.0 that behaviour changed and the platform when creating a new project is now specified as:
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
which forces downoading the latest version of the framework which might not be wanted.
At the moment I am using a workaround that I described here but that is not very convenient.
Is there a way to revert that behaviour to as it was up until yesterday so the New Project Wizard wouldn’t force downloading the latest version of the framework?
I can create a new project without having to download the most recent version of the framework via command line:
>platformio project init --board esp32-s3-devkitc1-n16r8 --project-option="platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.35/platform-espressif32.zip" --project-option="framework = arduino"
The following files/directories have been created in *some_path*
include - Put project header files here
lib - Put project specific (private) libraries here
src - Put project source files here
platformio.ini - Project Configuration File
Resolving esp32-s3-devkitc1-n16r8 dependencies...
Already up-to-date.
Project has been successfully initialized!
but I can’t anymore do the same via user interface. Creating a new project without having to download the most recent version of the framework via user interface was yesterday still working well.
The VS Code version is absolutley not related to all of this!
VS Code is just the editor.
See my other answer here: After today's VS Code update Pioarduino which is not installed shows in PlatformIO - #3 by sivar2311
But can you reproduce the problem that I described?
-
Put PlatformIO into the state where the Espressif platform with the highest number would be 55.3.35. In my case, I have these versions installed:
55.3.35
6.7.0
4.2.0
3.5.0
-
Create a new project by clicking on the New Project button, not via terminal.
-
Enter the project name, select board ESP32-S3-DevKitC-1-N16R8V (16 MB Flash Quad, 8 MB PSRAM Octal), under Framework select Arduino and press Finish.
Outcome 1 (as up until 2 days ago):
New project will be created with platformio.ini containing:
[env:esp32-s3-devkitc1-n16r8]
platform = espressif32
board = esp32-s3-devkitc1-n16r8
framework = arduino
and nothing will be downloaded or installed.
Outcome 2 (as since 2 days ago):
New project will be created with platformio.ini containing:
[env:esp32-s3-devkitc1-n16r8]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = esp32-s3-devkitc1-n16r8
framework = arduino
and version 55.3.39 of the platform will be downloaded and installed.
Yes i was able to reproduce this behavior.
But this is due to the presence of pioarduino.
When you remove pioarduino, everything turn back to normal.
(I had to wipe the .platformio folder)