platformio / platform-espressif8266

Espressif 8266: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif8266
Apache License 2.0
320 stars 218 forks source link

Prefer latest toolchain-xtensa #300

Closed mcspr closed 11 months ago

mcspr commented 11 months ago

See https://github.com/esp8266/Arduino/pull/8393

Missed when updating to Core 3.1.x b/c semver still prefers old version installed. Fix optimisation bug(s). Usually breaks on Windows, comes and goes at random so it is pretty annoying to debug

May be related to https://github.com/platformio/platform-espressif8266/issues/288, or any other 'this code sometimes works, but sometimes doesnt'

valeros commented 11 months ago

Hi @mcspr,

Missed when updating to Core 3.1.x b/c semver still prefers old version installed.

There is only one package v2.100300.220621 available at the moment, so when PlatformIO checks the ~2.100300.0 requirement it should download the latest package automatically, even if there is an old one installed in the system.

mcspr commented 11 months ago

Not unless updated manually, which may still pick up the old package

> cat platformio.ini
[env]
framework = arduino
platform = espressif8266@4.2.0

[env:d1_mini]
board = d1_mini

> pio run
Processing d1_mini (board: d1_mini; framework: arduino; platform: espressif8266@4.2.0)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 (4.2.0) > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
 - framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
 - tool-esptool @ 1.413.0 (4.13)
 - tool-esptoolpy @ 1.30000.201119 (3.0.0)
 - toolchain-xtensa @ 2.100300.210717 (10.3.0) <--- oops
...
valeros commented 11 months ago

Not unless updated manually, which may still pick up the old package

My bad, indeed it seems that PlatformIO won't update if not forced manually. Thanks for the PR, merged. A new release is coming shortly.