Build inconsistency despite pinned versions (ESP32-S3 / Arduino framework)

Hi All,

This platformio.ini compiled 6 months ago with a fresh install, now with a fresh install it does not. (Some error deep in the Arduino wifi driver).

Can anyone give me some pointers on what other versions or config I can assign so that my build process is consistent? I’ve pinned all package and toolchain versions (see below), but apparently something else changed. Could anyone suggest additional steps or settings to fully lock down builds?

; PlatformIO Project Configuration File

[env:esp32dev]
monitor_speed = 115200
board = esp32-s3-devkitm-1

mowze_firmware_version = Wandv3.8

board_build.name = Espressif ESP32-S3-MINI-1U-N8
board_build.url = https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s3/esp32-s3-devkitm-1/index.html

board_build.extra_flags =
    -DARDUINO_ESP32S3_DEV
    -DARDUINO_USB_MODE=1
    -DARDUINO_RUNNING_CORE=1
    -DARDUINO_EVENT_RUNNING_CORE=1
    -DMOWZE_VERSION=\"${this.mowze_firmware_version}\"
;    -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
board_build.psram = enabled

extra_scripts = pre:extra_script.py

platform = espressif32 @ 6.7.0
framework = arduino
; Below are github packages but are frozen with a release.
platform_packages=
    framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32/releases/download/3.0.2/esp32-3.0.2.zip
    framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.2/esp32-arduino-libs-3.0.2.zip
    toolchain-riscv32-esp @ 12.2.0+20230208
    toolchain-xtensa-esp32s3 @ 12.2.0+20230208

lib_deps =
    ArduinoJson @ 7.1.0
    U8g2 @ 2.35.19
    alkonosst/ADS1115 @ 1.0.0
monitor_filters = esp32_exception_decoder

It looks like you’re trying to get Espressif Arduino Framework 3.0.2

Make your life easy by using pioarduino platform!
This provides a known working 3.x Arduino Framework.

Remove the platform_packages from above and choose your version simply by the platform setting. Example for 3.0.2

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

The latest available Espressif32 Arduino Framework version is 3.3.2:

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

For further details about the versions please see platform-espressif32 versions · GitHub and follow the links.

Thank you so much @sivar2311 !

Now I am compiling with pio run (a binary builds), but clion cannot find the compiler. So all of my intellisense doesn’t work. I don’t know why switching packages would cause this to break.

I added an issue on the pioarduino github, which is here.

Probably the wrong place.

This is about PlatformIO / VS Code Extension / CLION extension, not the espressif32-platform / pioarduino’s fork of the espressif32-platform.

Could be. But clion worked with a different platform, and not with pioarduino, so thats why I think the compatibility issue lies with them. If they ask me to open it elsewhere i will.