Change Espressif version when pio run

Hi There

I have started a new project where I need to modify some few new options that espressif added to the bootloader, To date I have used the command pio run -t menuconfig that works great.

As I already have several projects done in espressif 3.3.0 I would not like to touch / alter it and keep it the same. I learned here to set an specific version just for this new project by modifying platformio.ini

platform = espressif32@5.3.0

Howerver, it’s seems that pio run -t menuconfig still uses my main 3.3 installation and I wonder how can fix that.

PLATFORM: Espressif 32 (**5.3.0**) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
PACKAGES:
 - **framework-espidf @ 3.40403.0 (4.4.3)**
 - tool-cmake @ 3.16.4
 - tool-esptoolpy @ 1.40400.0 (4.4.0)
 - tool-idf @ 1.0.1
 - tool-mconf @ 1.4060000.20190628 (406.0.0)
 - tool-ninja @ 1.9.0
 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5

[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
Reading CMake configuration...
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Running menuconfig...
[0/1] cmd.exe /C "cd /D C:\Projects\BOOTLOADER\.pio\build\esp32dev && C:\Users\User\.platfo...TARGET=esp32 --env IDF_ENV_FPGA= --output config 
C:/Users/User/.platformio/packages/**framework-espidf@3.40403.0/Kconfig**:14: warning: IDF_ENV_FPGA has 'option env="IDF_ENV_FPGA"'

This is correct. Espressif32 platform 5.3.0 uses ESP-IDF 4.4.3. Which version do you need? Note that “platform” and “ESP-IDF framework package” have entirely different and independent versioning.

Thanks! That is probably the solution of this topic as I was confused with ESP-IDF and Espressif32 plataform numbers, however looking at the 5.3.0 (Espressif32 plataform I guess) documentation I don’t find that options in the menuconfig

CONFIG_ESP_PHY_CALIBRATION_MODE


 Calibration mode

Found in: Component config > PHY

Available options:
 Calibration partial (CONFIG_ESP_PHY_RF_CAL_PARTIAL)
 Calibration none (CONFIG_ESP_PHY_RF_CAL_NONE)
 Calibration full (CONFIG_ESP_PHY_RF_CAL_FULL)

No, it works.

There a 5.3.0 ESP-IDF and a 5.3.0 Espressif32 plataform and I got confused, what a mess!
I have installed version 6 as you said and it works, thanks! :heart: