Im using Platformio’s developement version in combination with Arduino Framework for the ESP8266. I just realized, that its not possible to update the framework manually any more (and readding the versions.txt) as I was used to do. The default framework version is 2.2 as far as I can see, which is from May '16. The issue is due to the changes in the plattform.txt starting with Use gcc-built LwIP by default (#1926) · esp8266/Arduino@a2b82ed · GitHub
Is there any way to make platformio work again with the github version or 2.3 ?
I did so. I even deinstalled everything and reinstalled fesh. Still version is 2.2.0
I would anyway rather like to use the github version. Any idea on that?
Yep, thats how I used to do it. Im loyally working with platformio since its compatible with ESP ;).
Its giving errors due to a changes in the plattforms.txt AFTER the stable release. Since then it not possible to use the github version.
I saw a discussion on the ESP8266 Gitter channel, but without any final solution/answer. I think @ivankravets joined the discussion.
Ok took me some time, but @me-no-dev helped me out on this!
How-to use latest github version with platformio :
Optional) I only tried with this, but can prob be let out!
Opt1) Clean everything
cd into firmware and “pio run -t clean”
“pip uninstall platformio” << NOT DEVELOPEMENT VERSION!
remove .platformio folder in home folder - linux: “rm -rf ~/.platformio”
Opt2) install fresh platformio
pip install platformio
Goto firmware folder and “pio run” and yes to all installations (dont care about the copile part, just to get the libraries)
remove .pioenv folder again
Upgrade arduino version to github version
Goto: ~/.platformio/packages/ and rename folder framework_arduinoespressif to something like framework_arduinoespressif_old
“git clone git@github.com:esp8266/Arduino.git framework-arduinoespressif”
copy “version.txt” from framework_arduinoespressif_old to framework_arduinoespressif
Fix linker scripts
Goto: http://pastebin.com/raw/KpiKg2FV
Copy that content 1:1 to ~/.platformio/packages/ldscripts/esp8266.flash.common.ld (should already exist!)
Clean
Goto firmware folder an remove .pioenv folder (if it exists)
Make sure you have the latest firmware version
pio run to confirm success
It’s the same. You will have espressif8266_stage development platform and new framework-arduinoespressif8266 package. Go to it, backup package.json, remove all files, clone here GIT repo, return back package.json.
is this also possible for atmelavr?
I have one project which works only for Arduino 1.0.1.
I would like to this with platformio, is this possible and where can I find the arduino-framwork 1.0.1?
Yes, i’m on OS X and renamed Arduino.app to Arduino_1.0.1.app so that i could use 2 versions.
Since i switched to platformio i have only the 1.0.1 Version of the Arduino ide.
Sorry, but I’m no member of PlatformIO Plus, I’m only a hobbyist with private projects and
I thought it could be done with the same way as espressif8266.
Thank you anyway for your answer and your perfect work.
Will keep with Arduino IDE for 1.0.1.
Please sorry for that. We are currently focused on PlatfomIO Plus and its features.
In any case, take a look at Custom Platform & Board — PlatformIO v6.1 documentation
It’s not difficult. Just clone “atmelavr” development platform, rename it to atmelavr_my and update core in framework-arduinoavr. Maybe, need to update build flags and etc in build platform. I don’t know that.
If I’ll have free time, I help you with that.
P.S: Why you don’t want to port that project to latest arduino?