platformio / platform-espressif8266

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

Update core to 3.0.0 #249

Closed ISO-B closed 3 years ago

ISO-B commented 3 years ago

New core version has been released https://github.com/esp8266/Arduino/releases/tag/3.0.0

maxgerhardt commented 3 years ago

FYI until a core update is released (which I don't think will take very long), see this topic for some simple platformio.ini options and test to get the new 3.0.0 core and test out some new features (e.g. the +16Kbyte IRAM heap feature)

maxgerhardt commented 3 years ago

And what did I say? 4 minutes ago changes were pushed to support the latest 3.0.0 core. Waiting for release ^_^

valeros commented 3 years ago

Hi guys, the Arduino and toolchain packages have been updated to the latest 3.0 and 10.2.0 accordingly. Please retest your projects with the upstream version:

[env:d1]
platform = https://github.com/platformio/platform-espressif8266.git
framework = arduino
board = d1
sblantipodi commented 3 years ago

I love those guys! ehm, not in that sense. 😄

maxgerhardt commented 3 years ago

Works flawlessly for me! I also noted that you already extended the documentation with the new MMU features for increased heap, so that it will be displayed at https://docs.platformio.org/en/latest/platforms/espressif8266.html soon, great.

Testing my example linked above with the new platform

[env:d1]
platform = https://github.com/platformio/platform-espressif8266.git
framework = arduino
board = d1
build_flags = -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED
monitor_speed = 74880

Works exactly as before

IRAM free:  21592 bytes
DRAM free:  52336 bytes
sblantipodi commented 3 years ago

@valeros but is there some command to force the update? I'm using PlatformIO under CLion IDE and it still use 2.6.3

maxgerhardt commented 3 years ago

Remove C:\Users\<user>\.platformio\platforms\espressif8266@src-xxxxx if the folder exists, to force a redownload. You may have previously used a development version. I had to do this as well. And of course, you will need to use the platformio.ini instructions above with link to the git platform.

sblantipodi commented 3 years ago

@maxgerhardt done it but it redownload the old version:


====================[ Build | Production | glowwormluciferinfull_esp8266 ]======
C:\Users\sblantipodi\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\211.6693.114\bin\cmake\win\bin\cmake.exe --build C:\dev\dpsoftware\ArduinoRaspbery\PUBLIC\glow_worm_luciferin\cmake-build-glowwormluciferinfull_esp8266 --target Production -- -j 9
Processing glowwormluciferinfull_esp8266 (platform: espressif8266; board: d1_mini_lite; framework: arduino)
--------------------------------------------------------------------------------
Platform Manager: Installing espressif8266
Platform Manager: espressif8266 @ 2.6.3 has been installed!
The platform 'espressif8266' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Verbose mode can be enabled via `-v, --verbose` option
sblantipodi commented 3 years ago

but if you go here: https://github.com/platformio/platform-espressif8266/releases there is no new release.

how those things works? will we see a release soon?

sblantipodi commented 3 years ago

edit: I am trying core 3.0 on my projects, it broke most of the libs I use, most of them are very popular... it seems that core 3.0 will not be an easy transition...

maxgerhardt commented 3 years ago

how those things works? will we see a release soon?

They'll probably release it as a new stable new version after it has been tested for some while / no issue reported.

platform: espressif8266

If you want to test it you can't use platform = espressif8266 right now but platform = https://github.com/platformio/platform-espressif8266.git as @valeros said above.

it broke most of the libs I use

Which ones? Do the people at the Arduino core already know about this?

sblantipodi commented 3 years ago

Which ones? Do the people at the Arduino core already know about this?

FastLED is the most broken one

maxgerhardt commented 3 years ago

Yeah but per https://github.com/FastLED/FastLED/issues/1236 and https://github.com/FastLED/FastLED/issues/1237 they seem to have been informed about this.

sblantipodi commented 3 years ago

at this point how can I revert to a previous release if they release the 3.0? is it possible via the platformio.ini?

maxgerhardt commented 3 years ago

Yes as the documentation says you can use any platform-espressif8266 release at any time, like platform = espressif8266@2.6.3.

sblantipodi commented 3 years ago

3.0 broke so much things, I hope you'll not release it that soon :D

valeros commented 3 years ago

Updated in the latest release https://github.com/platformio/platform-espressif8266/releases/tag/v3.0.0