platformio / platform-espressif8266

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

Toolchain Bug #265

Closed bwjohns4 closed 2 years ago

bwjohns4 commented 2 years ago

Apparently there is a toolchain bug that was discovered and fixed in ESP8266/Arduino after the latest release that platform-espressif8266 points to. Here are the details:

GCC 10.3 had an issue with addressing constant literals which would result in crazy offsets being used and random crashes in production. Update with an upstream GCC 11 bugfix.

Link to the issue

Can this toolchain be added in PlatformIO as well?

bwjohns4 commented 2 years ago

For anyone else looking, it appears that using the below will fix this issue until a more official PIO release incorporates this:

platform_packages = mcspr/toolchain-xtensa @ ~5.100300.211127