I have three separate environments in my platformio.ini:
[env: doit-devkitesp32doit-devkit-v1]
platform = espressif32
board = esp32dev
framework = arduino
..
[env:esp32doit-devkit-v1-i2s]
platform = espressif32@5.3.0
board = esp32dev
framework = arduino
..
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
..
I issue the commands:
rm -rf .pio
pio platform uninstall espressif32
pio platform install espressif32@5.3.0
pio run
when the system builds the environments, it doesn’t respect the platforms and does the following:
[env: doit-devkitesp32doit-devkit-v1]
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (5.3.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 8MB Flash
[env:esp32doit-devkit-v1-i2s]
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.5.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 8MB Flash
[env:esp32-s3-devkitc-1]
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitc-1.html
PLATFORM: Espressif 32 (6.5.0) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM)
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
That is it respects my initial installation of espressif32@5.3.0 for the first environment but then it installs the 6.5.0 although I stated 5.3.0.
After that the builds are unsuccesful because there are library incompatibilities.