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.
opened 05:59PM - 30 Oct 25 UTC
### PROBLEM DESCRIPTION
running `pio run` runs successfully.
```
PS C:\Users\for… re\Projects\manualcontroller> pio run
Warning! Ignore unknown configuration option `mowze_firmware_version` in section [env:esp32dev]
Processing esp32dev (board: esp32-s3-devkitm-1; platform: https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: Installing package 'platformio' failed (exit code 2).
Error: Installing package 'platformio' failed (exit code 2).
Verbose mode can be enabled via `-v, --verbose` option
Error: Installing package 'platformio' failed (exit code 2).
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitm-1.html
PLATFORM: Espressif 32 (55.3.32) > Espressif ESP32-S3-DevKitM-1
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- contrib-piohome @ 3.4.4
- framework-arduinoespressif32 @ 3.3.2
- framework-arduinoespressif32-libs @ 5.5.0+sha.07e9bf4970
- tool-esptoolpy @ 5.1.0
- tool-mklittlefs @ 3.2.0
- toolchain-xtensa-esp-elf @ 14.2.0+20250730
*** WARNING: Windows Long Path Support is disabled ***
*** Enable it for better performance: ***
*** 1. Run as Administrator: gpedit.msc ***
*** 2. Navigate to: Computer Configuration > Administrative Templates > System > Filesystem ***
*** 3. Enable 'Enable Win32 long paths' ***
*** OR run PowerShell as Admin: ***
*** New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 -PropertyType DWORD -Force ***
*** Restart required after enabling ***
*** Applied include path shortening for 329 framework paths ***
*** Path length reduced from 38889 to ~13649 characters ***
*** Estimated savings: 24675 characters ***
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 46 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ArduinoJson @ 7.1.0
|-- U8g2 @ 2.35.19
|-- ADS1115 @ 1.0.0
|-- Networking @ 3.3.2
|-- SPI @ 3.3.2
|-- WiFi @ 3.3.2
|-- Wire @ 3.3.2
|-- Preferences @ 3.3.2
Building in release mode
Retrieving maximum program size .pio\build\esp32dev\firmware_Wandv3.8.elf
Checking size .pio\build\esp32dev\firmware_Wandv3.8.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 15.3% (used 50200 bytes from 327680 bytes)
Flash: [=== ] 31.0% (used 1036043 bytes from 3342336 bytes)
============================================================================= [SUCCESS] Took 38.11 seconds =============================================================================
PS C:\Users\forre\Projects\manualcontroller>
```
But clion fails to load the compiler.
<img width="432" height="99" alt="Image" src="https://github.com/user-attachments/assets/c68f7324-88ec-481d-aea7-638139e3bfa9" />
Here are those errors that are linked:
[clion failure.txt](https://github.com/user-attachments/files/23242350/clion.failure.txt)
### TO REPRODUCE
Curious if anyone has pioarduino working in clion.
### EXPECTED BEHAVIOUR
the compiler should load.
### SCREENSHOTS
see above
### ADDITIONAL CONTEXT
Mostly just that pio run works.
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.